diff --git a/proto-google-cloud-document-ai-v1beta3/clirr-ignored-differences.xml b/proto-google-cloud-document-ai-v1beta3/clirr-ignored-differences.xml
index b06ced3f..22b5a107 100644
--- a/proto-google-cloud-document-ai-v1beta3/clirr-ignored-differences.xml
+++ b/proto-google-cloud-document-ai-v1beta3/clirr-ignored-differences.xml
@@ -16,4 +16,19 @@
- * Provenance of the translation. - * Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta3.Document.text]. There can only be a - * single `TextAnchor.text_segments` element. If the start and - * end index of the text segment are the same, the text change is inserted - * before that index. - *- * - *
.google.cloud.documentai.v1beta3.Document.TextAnchor text_anchor = 1;
- *
- * @return Whether the textAnchor field is set.
- */
- boolean hasTextAnchor();
- /**
- *
- *
- * - * Provenance of the translation. - * Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta3.Document.text]. There can only be a - * single `TextAnchor.text_segments` element. If the start and - * end index of the text segment are the same, the text change is inserted - * before that index. - *- * - *
.google.cloud.documentai.v1beta3.Document.TextAnchor text_anchor = 1;
- *
- * @return The textAnchor.
- */
- com.google.cloud.documentai.v1beta3.Document.TextAnchor getTextAnchor();
- /**
- *
- *
- * - * Provenance of the translation. - * Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta3.Document.text]. There can only be a - * single `TextAnchor.text_segments` element. If the start and - * end index of the text segment are the same, the text change is inserted - * before that index. + * The text segments from the [Document.text][google.cloud.documentai.v1beta3.Document.text]. ** - *
.google.cloud.documentai.v1beta3.Document.TextAnchor text_anchor = 1;
+ *
+ * repeated .google.cloud.documentai.v1beta3.Document.TextAnchor.TextSegment text_segments = 1;
+ *
*/
- com.google.cloud.documentai.v1beta3.Document.TextAnchorOrBuilder getTextAnchorOrBuilder();
-
+ java.util.List- * The BCP-47 language code, such as "en-US" or "sr-Latn". For more - * information, see - * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. + * The text segments from the [Document.text][google.cloud.documentai.v1beta3.Document.text]. ** - *
string language_code = 2;
- *
- * @return The languageCode.
+ *
+ * repeated .google.cloud.documentai.v1beta3.Document.TextAnchor.TextSegment text_segments = 1;
+ *
*/
- java.lang.String getLanguageCode();
+ com.google.cloud.documentai.v1beta3.Document.TextAnchor.TextSegment getTextSegments(int index);
/**
*
*
* - * The BCP-47 language code, such as "en-US" or "sr-Latn". For more - * information, see - * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. + * The text segments from the [Document.text][google.cloud.documentai.v1beta3.Document.text]. ** - *
string language_code = 2;
- *
- * @return The bytes for languageCode.
+ *
+ * repeated .google.cloud.documentai.v1beta3.Document.TextAnchor.TextSegment text_segments = 1;
+ *
*/
- com.google.protobuf.ByteString getLanguageCodeBytes();
-
+ int getTextSegmentsCount();
/**
*
*
* - * Text translated into the target language. + * The text segments from the [Document.text][google.cloud.documentai.v1beta3.Document.text]. ** - *
string translated_text = 3;
- *
- * @return The translatedText.
+ *
+ * repeated .google.cloud.documentai.v1beta3.Document.TextAnchor.TextSegment text_segments = 1;
+ *
*/
- java.lang.String getTranslatedText();
+ java.util.List<
+ ? extends com.google.cloud.documentai.v1beta3.Document.TextAnchor.TextSegmentOrBuilder>
+ getTextSegmentsOrBuilderList();
/**
*
*
* - * Text translated into the target language. + * The text segments from the [Document.text][google.cloud.documentai.v1beta3.Document.text]. ** - *
string translated_text = 3;
- *
- * @return The bytes for translatedText.
+ *
+ * repeated .google.cloud.documentai.v1beta3.Document.TextAnchor.TextSegment text_segments = 1;
+ *
*/
- com.google.protobuf.ByteString getTranslatedTextBytes();
+ com.google.cloud.documentai.v1beta3.Document.TextAnchor.TextSegmentOrBuilder
+ getTextSegmentsOrBuilder(int index);
/**
*
*
* - * The history of this annotation. - *- * - *
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4;
- */
- java.util.List- * The history of this annotation. + * Contains the content of the text span so that users do + * not have to look it up in the text_segments. ** - *
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4;
- */
- com.google.cloud.documentai.v1beta3.Document.Provenance getProvenance(int index);
- /**
- *
- *
- * - * The history of this annotation. - *+ *
string content = 2;
*
- * repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4;
+ * @return The content.
*/
- int getProvenanceCount();
+ java.lang.String getContent();
/**
*
*
* - * The history of this annotation. + * Contains the content of the text span so that users do + * not have to look it up in the text_segments. ** - *
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4;
- */
- java.util.List extends com.google.cloud.documentai.v1beta3.Document.ProvenanceOrBuilder>
- getProvenanceOrBuilderList();
- /**
- *
- *
- * - * The history of this annotation. - *+ *
string content = 2;
*
- * repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4;
+ * @return The bytes for content.
*/
- com.google.cloud.documentai.v1beta3.Document.ProvenanceOrBuilder getProvenanceOrBuilder(
- int index);
+ com.google.protobuf.ByteString getContentBytes();
}
/**
*
*
* - * A translation of the text segment. + * Text reference indexing into the [Document.text][google.cloud.documentai.v1beta3.Document.text]. ** - * Protobuf type {@code google.cloud.documentai.v1beta3.Document.Translation} + * Protobuf type {@code google.cloud.documentai.v1beta3.Document.TextAnchor} */ - public static final class Translation extends com.google.protobuf.GeneratedMessageV3 + public static final class TextAnchor extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.documentai.v1beta3.Document.Translation) - TranslationOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.documentai.v1beta3.Document.TextAnchor) + TextAnchorOrBuilder { private static final long serialVersionUID = 0L; - // Use Translation.newBuilder() to construct. - private Translation(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + // Use TextAnchor.newBuilder() to construct. + private TextAnchor(com.google.protobuf.GeneratedMessageV3.Builder> builder) { super(builder); } - private Translation() { - languageCode_ = ""; - translatedText_ = ""; - provenance_ = java.util.Collections.emptyList(); + private TextAnchor() { + textSegments_ = java.util.Collections.emptyList(); + content_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Translation(); + return new TextAnchor(); } @java.lang.Override @@ -41366,7 +41285,7 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private Translation( + private TextAnchor( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -41387,47 +41306,24 @@ private Translation( break; case 10: { - com.google.cloud.documentai.v1beta3.Document.TextAnchor.Builder subBuilder = null; - if (textAnchor_ != null) { - subBuilder = textAnchor_.toBuilder(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + textSegments_ = + new java.util.ArrayList< + com.google.cloud.documentai.v1beta3.Document.TextAnchor.TextSegment>(); + mutable_bitField0_ |= 0x00000001; } - textAnchor_ = + textSegments_.add( input.readMessage( - com.google.cloud.documentai.v1beta3.Document.TextAnchor.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(textAnchor_); - textAnchor_ = subBuilder.buildPartial(); - } - + com.google.cloud.documentai.v1beta3.Document.TextAnchor.TextSegment + .parser(), + extensionRegistry)); break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); - languageCode_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - translatedText_ = s; - break; - } - case 34: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - provenance_ = - new java.util.ArrayList< - com.google.cloud.documentai.v1beta3.Document.Provenance>(); - mutable_bitField0_ |= 0x00000001; - } - provenance_.add( - input.readMessage( - com.google.cloud.documentai.v1beta3.Document.Provenance.parser(), - extensionRegistry)); + content_ = s; break; } default: @@ -41445,7 +41341,7 @@ private Translation( throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { - provenance_ = java.util.Collections.unmodifiableList(provenance_); + textSegments_ = java.util.Collections.unmodifiableList(textSegments_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); @@ -41454,1882 +41350,147 @@ private Translation( public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.documentai.v1beta3.DocumentProto - .internal_static_google_cloud_documentai_v1beta3_Document_Translation_descriptor; + .internal_static_google_cloud_documentai_v1beta3_Document_TextAnchor_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.documentai.v1beta3.DocumentProto - .internal_static_google_cloud_documentai_v1beta3_Document_Translation_fieldAccessorTable + .internal_static_google_cloud_documentai_v1beta3_Document_TextAnchor_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.documentai.v1beta3.Document.Translation.class, - com.google.cloud.documentai.v1beta3.Document.Translation.Builder.class); + com.google.cloud.documentai.v1beta3.Document.TextAnchor.class, + com.google.cloud.documentai.v1beta3.Document.TextAnchor.Builder.class); } - public static final int TEXT_ANCHOR_FIELD_NUMBER = 1; - private com.google.cloud.documentai.v1beta3.Document.TextAnchor textAnchor_; - /** - * - * - *
- * Provenance of the translation. - * Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta3.Document.text]. There can only be a - * single `TextAnchor.text_segments` element. If the start and - * end index of the text segment are the same, the text change is inserted - * before that index. - *- * - *
.google.cloud.documentai.v1beta3.Document.TextAnchor text_anchor = 1;
- *
- * @return Whether the textAnchor field is set.
- */
- @java.lang.Override
- public boolean hasTextAnchor() {
- return textAnchor_ != null;
- }
- /**
- *
- *
- * - * Provenance of the translation. - * Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta3.Document.text]. There can only be a - * single `TextAnchor.text_segments` element. If the start and - * end index of the text segment are the same, the text change is inserted - * before that index. - *- * - *
.google.cloud.documentai.v1beta3.Document.TextAnchor text_anchor = 1;
- *
- * @return The textAnchor.
- */
- @java.lang.Override
- public com.google.cloud.documentai.v1beta3.Document.TextAnchor getTextAnchor() {
- return textAnchor_ == null
- ? com.google.cloud.documentai.v1beta3.Document.TextAnchor.getDefaultInstance()
- : textAnchor_;
- }
- /**
- *
- *
- * - * Provenance of the translation. - * Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta3.Document.text]. There can only be a - * single `TextAnchor.text_segments` element. If the start and - * end index of the text segment are the same, the text change is inserted - * before that index. - *- * - *
.google.cloud.documentai.v1beta3.Document.TextAnchor text_anchor = 1;
- */
- @java.lang.Override
- public com.google.cloud.documentai.v1beta3.Document.TextAnchorOrBuilder
- getTextAnchorOrBuilder() {
- return getTextAnchor();
- }
+ public interface TextSegmentOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.documentai.v1beta3.Document.TextAnchor.TextSegment)
+ com.google.protobuf.MessageOrBuilder {
- public static final int LANGUAGE_CODE_FIELD_NUMBER = 2;
- private volatile java.lang.Object languageCode_;
- /**
- *
- *
- * - * The BCP-47 language code, such as "en-US" or "sr-Latn". For more - * information, see - * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. - *- * - *
string language_code = 2;
- *
- * @return The languageCode.
- */
- @java.lang.Override
- public java.lang.String getLanguageCode() {
- java.lang.Object ref = languageCode_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- languageCode_ = s;
- return s;
- }
- }
- /**
- *
- *
- * - * The BCP-47 language code, such as "en-US" or "sr-Latn". For more - * information, see - * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. - *- * - *
string language_code = 2;
- *
- * @return The bytes for languageCode.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getLanguageCodeBytes() {
- java.lang.Object ref = languageCode_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- languageCode_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
+ /**
+ *
+ *
+ * + * [TextSegment][google.cloud.documentai.v1beta3.Document.TextAnchor.TextSegment] start UTF-8 char index in the [Document.text][google.cloud.documentai.v1beta3.Document.text]. + *+ * + *
int64 start_index = 1;
+ *
+ * @return The startIndex.
+ */
+ long getStartIndex();
- public static final int TRANSLATED_TEXT_FIELD_NUMBER = 3;
- private volatile java.lang.Object translatedText_;
- /**
- *
- *
- * - * Text translated into the target language. - *- * - *
string translated_text = 3;
- *
- * @return The translatedText.
- */
- @java.lang.Override
- public java.lang.String getTranslatedText() {
- java.lang.Object ref = translatedText_;
- if (ref instanceof java.lang.String) {
- return (java.lang.String) ref;
- } else {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- translatedText_ = s;
- return s;
- }
+ /**
+ *
+ *
+ * + * [TextSegment][google.cloud.documentai.v1beta3.Document.TextAnchor.TextSegment] half open end UTF-8 char index in the + * [Document.text][google.cloud.documentai.v1beta3.Document.text]. + *+ * + *
int64 end_index = 2;
+ *
+ * @return The endIndex.
+ */
+ long getEndIndex();
}
/**
*
*
* - * Text translated into the target language. + * A text segment in the [Document.text][google.cloud.documentai.v1beta3.Document.text]. The indices may be out of bounds + * which indicate that the text extends into another document shard for + * large sharded documents. See [ShardInfo.text_offset][google.cloud.documentai.v1beta3.Document.ShardInfo.text_offset] ** - *
string translated_text = 3;
- *
- * @return The bytes for translatedText.
+ * Protobuf type {@code google.cloud.documentai.v1beta3.Document.TextAnchor.TextSegment}
*/
- @java.lang.Override
- public com.google.protobuf.ByteString getTranslatedTextBytes() {
- java.lang.Object ref = translatedText_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- translatedText_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
+ public static final class TextSegment extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.documentai.v1beta3.Document.TextAnchor.TextSegment)
+ TextSegmentOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use TextSegment.newBuilder() to construct.
+ private TextSegment(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
}
- }
-
- public static final int PROVENANCE_FIELD_NUMBER = 4;
- private java.util.List- * The history of this annotation. - *- * - *
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4;
- */
- @java.lang.Override
- public java.util.List- * The history of this annotation. - *- * - *
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4;
- */
- @java.lang.Override
- public java.util.List<
- ? extends com.google.cloud.documentai.v1beta3.Document.ProvenanceOrBuilder>
- getProvenanceOrBuilderList() {
- return provenance_;
- }
- /**
- *
- *
- * - * The history of this annotation. - *- * - *
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4;
- */
- @java.lang.Override
- public int getProvenanceCount() {
- return provenance_.size();
- }
- /**
- *
- *
- * - * The history of this annotation. - *- * - *
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4;
- */
- @java.lang.Override
- public com.google.cloud.documentai.v1beta3.Document.Provenance getProvenance(int index) {
- return provenance_.get(index);
- }
- /**
- *
- *
- * - * The history of this annotation. - *- * - *
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4;
- */
- @java.lang.Override
- public com.google.cloud.documentai.v1beta3.Document.ProvenanceOrBuilder getProvenanceOrBuilder(
- int index) {
- return provenance_.get(index);
- }
-
- private byte memoizedIsInitialized = -1;
-
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
- memoizedIsInitialized = 1;
- return true;
- }
+ private TextSegment() {}
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (textAnchor_ != null) {
- output.writeMessage(1, getTextAnchor());
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new TextSegment();
}
- if (!getLanguageCodeBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 2, languageCode_);
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
}
- if (!getTranslatedTextBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 3, translatedText_);
+
+ private TextSegment(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8:
+ {
+ startIndex_ = input.readInt64();
+ break;
+ }
+ case 16:
+ {
+ endIndex_ = input.readInt64();
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
}
- for (int i = 0; i < provenance_.size(); i++) {
- output.writeMessage(4, provenance_.get(i));
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.documentai.v1beta3.DocumentProto
+ .internal_static_google_cloud_documentai_v1beta3_Document_TextAnchor_TextSegment_descriptor;
}
- unknownFields.writeTo(output);
- }
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (textAnchor_ != null) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTextAnchor());
- }
- if (!getLanguageCodeBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, languageCode_);
- }
- if (!getTranslatedTextBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, translatedText_);
- }
- for (int i = 0; i < provenance_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, provenance_.get(i));
- }
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof com.google.cloud.documentai.v1beta3.Document.Translation)) {
- return super.equals(obj);
- }
- com.google.cloud.documentai.v1beta3.Document.Translation other =
- (com.google.cloud.documentai.v1beta3.Document.Translation) obj;
-
- if (hasTextAnchor() != other.hasTextAnchor()) return false;
- if (hasTextAnchor()) {
- if (!getTextAnchor().equals(other.getTextAnchor())) return false;
- }
- if (!getLanguageCode().equals(other.getLanguageCode())) return false;
- if (!getTranslatedText().equals(other.getTranslatedText())) return false;
- if (!getProvenanceList().equals(other.getProvenanceList())) return false;
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasTextAnchor()) {
- hash = (37 * hash) + TEXT_ANCHOR_FIELD_NUMBER;
- hash = (53 * hash) + getTextAnchor().hashCode();
- }
- hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER;
- hash = (53 * hash) + getLanguageCode().hashCode();
- hash = (37 * hash) + TRANSLATED_TEXT_FIELD_NUMBER;
- hash = (53 * hash) + getTranslatedText().hashCode();
- if (getProvenanceCount() > 0) {
- hash = (37 * hash) + PROVENANCE_FIELD_NUMBER;
- hash = (53 * hash) + getProvenanceList().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.google.cloud.documentai.v1beta3.Document.Translation parseFrom(
- java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.documentai.v1beta3.Document.Translation parseFrom(
- java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static com.google.cloud.documentai.v1beta3.Document.Translation parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.documentai.v1beta3.Document.Translation parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static com.google.cloud.documentai.v1beta3.Document.Translation parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.documentai.v1beta3.Document.Translation parseFrom(
- byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static com.google.cloud.documentai.v1beta3.Document.Translation parseFrom(
- java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.documentai.v1beta3.Document.Translation parseFrom(
- java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
- PARSER, input, extensionRegistry);
- }
-
- public static com.google.cloud.documentai.v1beta3.Document.Translation parseDelimitedFrom(
- java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.documentai.v1beta3.Document.Translation parseDelimitedFrom(
- java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
- PARSER, input, extensionRegistry);
- }
-
- public static com.google.cloud.documentai.v1beta3.Document.Translation parseFrom(
- com.google.protobuf.CodedInputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.cloud.documentai.v1beta3.Document.Translation parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
- PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() {
- return newBuilder();
- }
-
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
-
- public static Builder newBuilder(
- com.google.cloud.documentai.v1beta3.Document.Translation prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
-
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- *
- *
- * - * A translation of the text segment. - *- * - * Protobuf type {@code google.cloud.documentai.v1beta3.Document.Translation} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder
- * Provenance of the translation. - * Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta3.Document.text]. There can only be a - * single `TextAnchor.text_segments` element. If the start and - * end index of the text segment are the same, the text change is inserted - * before that index. - *- * - *
.google.cloud.documentai.v1beta3.Document.TextAnchor text_anchor = 1;
- *
- * @return Whether the textAnchor field is set.
- */
- public boolean hasTextAnchor() {
- return textAnchorBuilder_ != null || textAnchor_ != null;
- }
- /**
- *
- *
- * - * Provenance of the translation. - * Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta3.Document.text]. There can only be a - * single `TextAnchor.text_segments` element. If the start and - * end index of the text segment are the same, the text change is inserted - * before that index. - *- * - *
.google.cloud.documentai.v1beta3.Document.TextAnchor text_anchor = 1;
- *
- * @return The textAnchor.
- */
- public com.google.cloud.documentai.v1beta3.Document.TextAnchor getTextAnchor() {
- if (textAnchorBuilder_ == null) {
- return textAnchor_ == null
- ? com.google.cloud.documentai.v1beta3.Document.TextAnchor.getDefaultInstance()
- : textAnchor_;
- } else {
- return textAnchorBuilder_.getMessage();
- }
- }
- /**
- *
- *
- * - * Provenance of the translation. - * Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta3.Document.text]. There can only be a - * single `TextAnchor.text_segments` element. If the start and - * end index of the text segment are the same, the text change is inserted - * before that index. - *- * - *
.google.cloud.documentai.v1beta3.Document.TextAnchor text_anchor = 1;
- */
- public Builder setTextAnchor(com.google.cloud.documentai.v1beta3.Document.TextAnchor value) {
- if (textAnchorBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- textAnchor_ = value;
- onChanged();
- } else {
- textAnchorBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- *
- *
- * - * Provenance of the translation. - * Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta3.Document.text]. There can only be a - * single `TextAnchor.text_segments` element. If the start and - * end index of the text segment are the same, the text change is inserted - * before that index. - *- * - *
.google.cloud.documentai.v1beta3.Document.TextAnchor text_anchor = 1;
- */
- public Builder setTextAnchor(
- com.google.cloud.documentai.v1beta3.Document.TextAnchor.Builder builderForValue) {
- if (textAnchorBuilder_ == null) {
- textAnchor_ = builderForValue.build();
- onChanged();
- } else {
- textAnchorBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- *
- *
- * - * Provenance of the translation. - * Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta3.Document.text]. There can only be a - * single `TextAnchor.text_segments` element. If the start and - * end index of the text segment are the same, the text change is inserted - * before that index. - *- * - *
.google.cloud.documentai.v1beta3.Document.TextAnchor text_anchor = 1;
- */
- public Builder mergeTextAnchor(
- com.google.cloud.documentai.v1beta3.Document.TextAnchor value) {
- if (textAnchorBuilder_ == null) {
- if (textAnchor_ != null) {
- textAnchor_ =
- com.google.cloud.documentai.v1beta3.Document.TextAnchor.newBuilder(textAnchor_)
- .mergeFrom(value)
- .buildPartial();
- } else {
- textAnchor_ = value;
- }
- onChanged();
- } else {
- textAnchorBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- *
- *
- * - * Provenance of the translation. - * Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta3.Document.text]. There can only be a - * single `TextAnchor.text_segments` element. If the start and - * end index of the text segment are the same, the text change is inserted - * before that index. - *- * - *
.google.cloud.documentai.v1beta3.Document.TextAnchor text_anchor = 1;
- */
- public Builder clearTextAnchor() {
- if (textAnchorBuilder_ == null) {
- textAnchor_ = null;
- onChanged();
- } else {
- textAnchor_ = null;
- textAnchorBuilder_ = null;
- }
-
- return this;
- }
- /**
- *
- *
- * - * Provenance of the translation. - * Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta3.Document.text]. There can only be a - * single `TextAnchor.text_segments` element. If the start and - * end index of the text segment are the same, the text change is inserted - * before that index. - *- * - *
.google.cloud.documentai.v1beta3.Document.TextAnchor text_anchor = 1;
- */
- public com.google.cloud.documentai.v1beta3.Document.TextAnchor.Builder
- getTextAnchorBuilder() {
-
- onChanged();
- return getTextAnchorFieldBuilder().getBuilder();
- }
- /**
- *
- *
- * - * Provenance of the translation. - * Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta3.Document.text]. There can only be a - * single `TextAnchor.text_segments` element. If the start and - * end index of the text segment are the same, the text change is inserted - * before that index. - *- * - *
.google.cloud.documentai.v1beta3.Document.TextAnchor text_anchor = 1;
- */
- public com.google.cloud.documentai.v1beta3.Document.TextAnchorOrBuilder
- getTextAnchorOrBuilder() {
- if (textAnchorBuilder_ != null) {
- return textAnchorBuilder_.getMessageOrBuilder();
- } else {
- return textAnchor_ == null
- ? com.google.cloud.documentai.v1beta3.Document.TextAnchor.getDefaultInstance()
- : textAnchor_;
- }
- }
- /**
- *
- *
- * - * Provenance of the translation. - * Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta3.Document.text]. There can only be a - * single `TextAnchor.text_segments` element. If the start and - * end index of the text segment are the same, the text change is inserted - * before that index. - *- * - *
.google.cloud.documentai.v1beta3.Document.TextAnchor text_anchor = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.documentai.v1beta3.Document.TextAnchor,
- com.google.cloud.documentai.v1beta3.Document.TextAnchor.Builder,
- com.google.cloud.documentai.v1beta3.Document.TextAnchorOrBuilder>
- getTextAnchorFieldBuilder() {
- if (textAnchorBuilder_ == null) {
- textAnchorBuilder_ =
- new com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.documentai.v1beta3.Document.TextAnchor,
- com.google.cloud.documentai.v1beta3.Document.TextAnchor.Builder,
- com.google.cloud.documentai.v1beta3.Document.TextAnchorOrBuilder>(
- getTextAnchor(), getParentForChildren(), isClean());
- textAnchor_ = null;
- }
- return textAnchorBuilder_;
- }
-
- private java.lang.Object languageCode_ = "";
- /**
- *
- *
- * - * The BCP-47 language code, such as "en-US" or "sr-Latn". For more - * information, see - * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. - *- * - *
string language_code = 2;
- *
- * @return The languageCode.
- */
- public java.lang.String getLanguageCode() {
- java.lang.Object ref = languageCode_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- languageCode_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- *
- *
- * - * The BCP-47 language code, such as "en-US" or "sr-Latn". For more - * information, see - * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. - *- * - *
string language_code = 2;
- *
- * @return The bytes for languageCode.
- */
- public com.google.protobuf.ByteString getLanguageCodeBytes() {
- java.lang.Object ref = languageCode_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- languageCode_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- *
- *
- * - * The BCP-47 language code, such as "en-US" or "sr-Latn". For more - * information, see - * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. - *- * - *
string language_code = 2;
- *
- * @param value The languageCode to set.
- * @return This builder for chaining.
- */
- public Builder setLanguageCode(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- languageCode_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * The BCP-47 language code, such as "en-US" or "sr-Latn". For more - * information, see - * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. - *- * - *
string language_code = 2;
- *
- * @return This builder for chaining.
- */
- public Builder clearLanguageCode() {
-
- languageCode_ = getDefaultInstance().getLanguageCode();
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * The BCP-47 language code, such as "en-US" or "sr-Latn". For more - * information, see - * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. - *- * - *
string language_code = 2;
- *
- * @param value The bytes for languageCode to set.
- * @return This builder for chaining.
- */
- public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- languageCode_ = value;
- onChanged();
- return this;
- }
-
- private java.lang.Object translatedText_ = "";
- /**
- *
- *
- * - * Text translated into the target language. - *- * - *
string translated_text = 3;
- *
- * @return The translatedText.
- */
- public java.lang.String getTranslatedText() {
- java.lang.Object ref = translatedText_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- translatedText_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- *
- *
- * - * Text translated into the target language. - *- * - *
string translated_text = 3;
- *
- * @return The bytes for translatedText.
- */
- public com.google.protobuf.ByteString getTranslatedTextBytes() {
- java.lang.Object ref = translatedText_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- translatedText_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- *
- *
- * - * Text translated into the target language. - *- * - *
string translated_text = 3;
- *
- * @param value The translatedText to set.
- * @return This builder for chaining.
- */
- public Builder setTranslatedText(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- translatedText_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * Text translated into the target language. - *- * - *
string translated_text = 3;
- *
- * @return This builder for chaining.
- */
- public Builder clearTranslatedText() {
-
- translatedText_ = getDefaultInstance().getTranslatedText();
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * Text translated into the target language. - *- * - *
string translated_text = 3;
- *
- * @param value The bytes for translatedText to set.
- * @return This builder for chaining.
- */
- public Builder setTranslatedTextBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- translatedText_ = value;
- onChanged();
- return this;
- }
-
- private java.util.List- * The history of this annotation. - *- * - *
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4;
- */
- public java.util.List- * The history of this annotation. - *- * - *
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4;
- */
- public int getProvenanceCount() {
- if (provenanceBuilder_ == null) {
- return provenance_.size();
- } else {
- return provenanceBuilder_.getCount();
- }
- }
- /**
- *
- *
- * - * The history of this annotation. - *- * - *
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4;
- */
- public com.google.cloud.documentai.v1beta3.Document.Provenance getProvenance(int index) {
- if (provenanceBuilder_ == null) {
- return provenance_.get(index);
- } else {
- return provenanceBuilder_.getMessage(index);
- }
- }
- /**
- *
- *
- * - * The history of this annotation. - *- * - *
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4;
- */
- public Builder setProvenance(
- int index, com.google.cloud.documentai.v1beta3.Document.Provenance value) {
- if (provenanceBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureProvenanceIsMutable();
- provenance_.set(index, value);
- onChanged();
- } else {
- provenanceBuilder_.setMessage(index, value);
- }
- return this;
- }
- /**
- *
- *
- * - * The history of this annotation. - *- * - *
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4;
- */
- public Builder setProvenance(
- int index,
- com.google.cloud.documentai.v1beta3.Document.Provenance.Builder builderForValue) {
- if (provenanceBuilder_ == null) {
- ensureProvenanceIsMutable();
- provenance_.set(index, builderForValue.build());
- onChanged();
- } else {
- provenanceBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- *
- *
- * - * The history of this annotation. - *- * - *
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4;
- */
- public Builder addProvenance(com.google.cloud.documentai.v1beta3.Document.Provenance value) {
- if (provenanceBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureProvenanceIsMutable();
- provenance_.add(value);
- onChanged();
- } else {
- provenanceBuilder_.addMessage(value);
- }
- return this;
- }
- /**
- *
- *
- * - * The history of this annotation. - *- * - *
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4;
- */
- public Builder addProvenance(
- int index, com.google.cloud.documentai.v1beta3.Document.Provenance value) {
- if (provenanceBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureProvenanceIsMutable();
- provenance_.add(index, value);
- onChanged();
- } else {
- provenanceBuilder_.addMessage(index, value);
- }
- return this;
- }
- /**
- *
- *
- * - * The history of this annotation. - *- * - *
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4;
- */
- public Builder addProvenance(
- com.google.cloud.documentai.v1beta3.Document.Provenance.Builder builderForValue) {
- if (provenanceBuilder_ == null) {
- ensureProvenanceIsMutable();
- provenance_.add(builderForValue.build());
- onChanged();
- } else {
- provenanceBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
- /**
- *
- *
- * - * The history of this annotation. - *- * - *
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4;
- */
- public Builder addProvenance(
- int index,
- com.google.cloud.documentai.v1beta3.Document.Provenance.Builder builderForValue) {
- if (provenanceBuilder_ == null) {
- ensureProvenanceIsMutable();
- provenance_.add(index, builderForValue.build());
- onChanged();
- } else {
- provenanceBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- *
- *
- * - * The history of this annotation. - *- * - *
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4;
- */
- public Builder addAllProvenance(
- java.lang.Iterable extends com.google.cloud.documentai.v1beta3.Document.Provenance>
- values) {
- if (provenanceBuilder_ == null) {
- ensureProvenanceIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(values, provenance_);
- onChanged();
- } else {
- provenanceBuilder_.addAllMessages(values);
- }
- return this;
- }
- /**
- *
- *
- * - * The history of this annotation. - *- * - *
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4;
- */
- public Builder clearProvenance() {
- if (provenanceBuilder_ == null) {
- provenance_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
- onChanged();
- } else {
- provenanceBuilder_.clear();
- }
- return this;
- }
- /**
- *
- *
- * - * The history of this annotation. - *- * - *
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4;
- */
- public Builder removeProvenance(int index) {
- if (provenanceBuilder_ == null) {
- ensureProvenanceIsMutable();
- provenance_.remove(index);
- onChanged();
- } else {
- provenanceBuilder_.remove(index);
- }
- return this;
- }
- /**
- *
- *
- * - * The history of this annotation. - *- * - *
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4;
- */
- public com.google.cloud.documentai.v1beta3.Document.Provenance.Builder getProvenanceBuilder(
- int index) {
- return getProvenanceFieldBuilder().getBuilder(index);
- }
- /**
- *
- *
- * - * The history of this annotation. - *- * - *
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4;
- */
- public com.google.cloud.documentai.v1beta3.Document.ProvenanceOrBuilder
- getProvenanceOrBuilder(int index) {
- if (provenanceBuilder_ == null) {
- return provenance_.get(index);
- } else {
- return provenanceBuilder_.getMessageOrBuilder(index);
- }
- }
- /**
- *
- *
- * - * The history of this annotation. - *- * - *
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4;
- */
- public java.util.List<
- ? extends com.google.cloud.documentai.v1beta3.Document.ProvenanceOrBuilder>
- getProvenanceOrBuilderList() {
- if (provenanceBuilder_ != null) {
- return provenanceBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(provenance_);
- }
- }
- /**
- *
- *
- * - * The history of this annotation. - *- * - *
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4;
- */
- public com.google.cloud.documentai.v1beta3.Document.Provenance.Builder
- addProvenanceBuilder() {
- return getProvenanceFieldBuilder()
- .addBuilder(
- com.google.cloud.documentai.v1beta3.Document.Provenance.getDefaultInstance());
- }
- /**
- *
- *
- * - * The history of this annotation. - *- * - *
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4;
- */
- public com.google.cloud.documentai.v1beta3.Document.Provenance.Builder addProvenanceBuilder(
- int index) {
- return getProvenanceFieldBuilder()
- .addBuilder(
- index,
- com.google.cloud.documentai.v1beta3.Document.Provenance.getDefaultInstance());
- }
- /**
- *
- *
- * - * The history of this annotation. - *- * - *
repeated .google.cloud.documentai.v1beta3.Document.Provenance provenance = 4;
- */
- public java.util.List- * The text segments from the [Document.text][google.cloud.documentai.v1beta3.Document.text]. - *- * - *
- * repeated .google.cloud.documentai.v1beta3.Document.TextAnchor.TextSegment text_segments = 1;
- *
- */
- java.util.List- * The text segments from the [Document.text][google.cloud.documentai.v1beta3.Document.text]. - *- * - *
- * repeated .google.cloud.documentai.v1beta3.Document.TextAnchor.TextSegment text_segments = 1;
- *
- */
- com.google.cloud.documentai.v1beta3.Document.TextAnchor.TextSegment getTextSegments(int index);
- /**
- *
- *
- * - * The text segments from the [Document.text][google.cloud.documentai.v1beta3.Document.text]. - *- * - *
- * repeated .google.cloud.documentai.v1beta3.Document.TextAnchor.TextSegment text_segments = 1;
- *
- */
- int getTextSegmentsCount();
- /**
- *
- *
- * - * The text segments from the [Document.text][google.cloud.documentai.v1beta3.Document.text]. - *- * - *
- * repeated .google.cloud.documentai.v1beta3.Document.TextAnchor.TextSegment text_segments = 1;
- *
- */
- java.util.List<
- ? extends com.google.cloud.documentai.v1beta3.Document.TextAnchor.TextSegmentOrBuilder>
- getTextSegmentsOrBuilderList();
- /**
- *
- *
- * - * The text segments from the [Document.text][google.cloud.documentai.v1beta3.Document.text]. - *- * - *
- * repeated .google.cloud.documentai.v1beta3.Document.TextAnchor.TextSegment text_segments = 1;
- *
- */
- com.google.cloud.documentai.v1beta3.Document.TextAnchor.TextSegmentOrBuilder
- getTextSegmentsOrBuilder(int index);
-
- /**
- *
- *
- * - * Contains the content of the text span so that users do - * not have to look it up in the text_segments. - *- * - *
string content = 2;
- *
- * @return The content.
- */
- java.lang.String getContent();
- /**
- *
- *
- * - * Contains the content of the text span so that users do - * not have to look it up in the text_segments. - *- * - *
string content = 2;
- *
- * @return The bytes for content.
- */
- com.google.protobuf.ByteString getContentBytes();
- }
- /**
- *
- *
- * - * Text reference indexing into the [Document.text][google.cloud.documentai.v1beta3.Document.text]. - *- * - * Protobuf type {@code google.cloud.documentai.v1beta3.Document.TextAnchor} - */ - public static final class TextAnchor extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.documentai.v1beta3.Document.TextAnchor) - TextAnchorOrBuilder { - private static final long serialVersionUID = 0L; - // Use TextAnchor.newBuilder() to construct. - private TextAnchor(com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - - private TextAnchor() { - textSegments_ = java.util.Collections.emptyList(); - content_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new TextAnchor(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private TextAnchor( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - textSegments_ = - new java.util.ArrayList< - com.google.cloud.documentai.v1beta3.Document.TextAnchor.TextSegment>(); - mutable_bitField0_ |= 0x00000001; - } - textSegments_.add( - input.readMessage( - com.google.cloud.documentai.v1beta3.Document.TextAnchor.TextSegment - .parser(), - extensionRegistry)); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - content_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - textSegments_ = java.util.Collections.unmodifiableList(textSegments_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.documentai.v1beta3.DocumentProto - .internal_static_google_cloud_documentai_v1beta3_Document_TextAnchor_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.documentai.v1beta3.DocumentProto - .internal_static_google_cloud_documentai_v1beta3_Document_TextAnchor_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.documentai.v1beta3.Document.TextAnchor.class, - com.google.cloud.documentai.v1beta3.Document.TextAnchor.Builder.class); - } - - public interface TextSegmentOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.documentai.v1beta3.Document.TextAnchor.TextSegment) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
- * [TextSegment][google.cloud.documentai.v1beta3.Document.TextAnchor.TextSegment] start UTF-8 char index in the [Document.text][google.cloud.documentai.v1beta3.Document.text]. - *- * - *
int64 start_index = 1;
- *
- * @return The startIndex.
- */
- long getStartIndex();
-
- /**
- *
- *
- * - * [TextSegment][google.cloud.documentai.v1beta3.Document.TextAnchor.TextSegment] half open end UTF-8 char index in the - * [Document.text][google.cloud.documentai.v1beta3.Document.text]. - *- * - *
int64 end_index = 2;
- *
- * @return The endIndex.
- */
- long getEndIndex();
- }
- /**
- *
- *
- * - * A text segment in the [Document.text][google.cloud.documentai.v1beta3.Document.text]. The indices may be out of bounds - * which indicate that the text extends into another document shard for - * large sharded documents. See [ShardInfo.text_offset][google.cloud.documentai.v1beta3.Document.ShardInfo.text_offset] - *- * - * Protobuf type {@code google.cloud.documentai.v1beta3.Document.TextAnchor.TextSegment} - */ - public static final class TextSegment extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.documentai.v1beta3.Document.TextAnchor.TextSegment) - TextSegmentOrBuilder { - private static final long serialVersionUID = 0L; - // Use TextSegment.newBuilder() to construct. - private TextSegment(com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - - private TextSegment() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new TextSegment(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private TextSegment( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - startIndex_ = input.readInt64(); - break; - } - case 16: - { - endIndex_ = input.readInt64(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.documentai.v1beta3.DocumentProto - .internal_static_google_cloud_documentai_v1beta3_Document_TextAnchor_TextSegment_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.documentai.v1beta3.DocumentProto - .internal_static_google_cloud_documentai_v1beta3_Document_TextAnchor_TextSegment_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.documentai.v1beta3.Document.TextAnchor.TextSegment.class, - com.google.cloud.documentai.v1beta3.Document.TextAnchor.TextSegment.Builder.class); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.documentai.v1beta3.DocumentProto + .internal_static_google_cloud_documentai_v1beta3_Document_TextAnchor_TextSegment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.documentai.v1beta3.Document.TextAnchor.TextSegment.class, + com.google.cloud.documentai.v1beta3.Document.TextAnchor.TextSegment.Builder.class); + } public static final int START_INDEX_FIELD_NUMBER = 1; private long startIndex_; @@ -55297,82 +53458,6 @@ public com.google.cloud.documentai.v1beta3.Document.EntityRelation getEntityRela return entityRelations_.get(index); } - public static final int TRANSLATIONS_FIELD_NUMBER = 12; - private java.util.List
- * A list of translations on [Document.text][google.cloud.documentai.v1beta3.Document.text]. For document shards, - * translations in this list may cross shard boundaries. - *- * - *
repeated .google.cloud.documentai.v1beta3.Document.Translation translations = 12;
- */
- @java.lang.Override
- public java.util.List- * A list of translations on [Document.text][google.cloud.documentai.v1beta3.Document.text]. For document shards, - * translations in this list may cross shard boundaries. - *- * - *
repeated .google.cloud.documentai.v1beta3.Document.Translation translations = 12;
- */
- @java.lang.Override
- public java.util.List extends com.google.cloud.documentai.v1beta3.Document.TranslationOrBuilder>
- getTranslationsOrBuilderList() {
- return translations_;
- }
- /**
- *
- *
- * - * A list of translations on [Document.text][google.cloud.documentai.v1beta3.Document.text]. For document shards, - * translations in this list may cross shard boundaries. - *- * - *
repeated .google.cloud.documentai.v1beta3.Document.Translation translations = 12;
- */
- @java.lang.Override
- public int getTranslationsCount() {
- return translations_.size();
- }
- /**
- *
- *
- * - * A list of translations on [Document.text][google.cloud.documentai.v1beta3.Document.text]. For document shards, - * translations in this list may cross shard boundaries. - *- * - *
repeated .google.cloud.documentai.v1beta3.Document.Translation translations = 12;
- */
- @java.lang.Override
- public com.google.cloud.documentai.v1beta3.Document.Translation getTranslations(int index) {
- return translations_.get(index);
- }
- /**
- *
- *
- * - * A list of translations on [Document.text][google.cloud.documentai.v1beta3.Document.text]. For document shards, - * translations in this list may cross shard boundaries. - *- * - *
repeated .google.cloud.documentai.v1beta3.Document.Translation translations = 12;
- */
- @java.lang.Override
- public com.google.cloud.documentai.v1beta3.Document.TranslationOrBuilder getTranslationsOrBuilder(
- int index) {
- return translations_.get(index);
- }
-
public static final int TEXT_CHANGES_FIELD_NUMBER = 14;
private java.util.List- * A list of translations on [Document.text][google.cloud.documentai.v1beta3.Document.text]. For document shards, - * translations in this list may cross shard boundaries. - *- * - *
repeated .google.cloud.documentai.v1beta3.Document.Translation translations = 12;
- *
- */
- public java.util.List- * A list of translations on [Document.text][google.cloud.documentai.v1beta3.Document.text]. For document shards, - * translations in this list may cross shard boundaries. - *- * - *
repeated .google.cloud.documentai.v1beta3.Document.Translation translations = 12;
- *
- */
- public int getTranslationsCount() {
- if (translationsBuilder_ == null) {
- return translations_.size();
- } else {
- return translationsBuilder_.getCount();
- }
- }
- /**
- *
- *
- * - * A list of translations on [Document.text][google.cloud.documentai.v1beta3.Document.text]. For document shards, - * translations in this list may cross shard boundaries. - *- * - *
repeated .google.cloud.documentai.v1beta3.Document.Translation translations = 12;
- *
- */
- public com.google.cloud.documentai.v1beta3.Document.Translation getTranslations(int index) {
- if (translationsBuilder_ == null) {
- return translations_.get(index);
- } else {
- return translationsBuilder_.getMessage(index);
- }
- }
- /**
- *
- *
- * - * A list of translations on [Document.text][google.cloud.documentai.v1beta3.Document.text]. For document shards, - * translations in this list may cross shard boundaries. - *- * - *
repeated .google.cloud.documentai.v1beta3.Document.Translation translations = 12;
- *
- */
- public Builder setTranslations(
- int index, com.google.cloud.documentai.v1beta3.Document.Translation value) {
- if (translationsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureTranslationsIsMutable();
- translations_.set(index, value);
- onChanged();
- } else {
- translationsBuilder_.setMessage(index, value);
- }
- return this;
- }
- /**
- *
- *
- * - * A list of translations on [Document.text][google.cloud.documentai.v1beta3.Document.text]. For document shards, - * translations in this list may cross shard boundaries. - *- * - *
repeated .google.cloud.documentai.v1beta3.Document.Translation translations = 12;
- *
- */
- public Builder setTranslations(
- int index,
- com.google.cloud.documentai.v1beta3.Document.Translation.Builder builderForValue) {
- if (translationsBuilder_ == null) {
- ensureTranslationsIsMutable();
- translations_.set(index, builderForValue.build());
- onChanged();
- } else {
- translationsBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- *
- *
- * - * A list of translations on [Document.text][google.cloud.documentai.v1beta3.Document.text]. For document shards, - * translations in this list may cross shard boundaries. - *- * - *
repeated .google.cloud.documentai.v1beta3.Document.Translation translations = 12;
- *
- */
- public Builder addTranslations(com.google.cloud.documentai.v1beta3.Document.Translation value) {
- if (translationsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureTranslationsIsMutable();
- translations_.add(value);
- onChanged();
- } else {
- translationsBuilder_.addMessage(value);
- }
- return this;
- }
- /**
- *
- *
- * - * A list of translations on [Document.text][google.cloud.documentai.v1beta3.Document.text]. For document shards, - * translations in this list may cross shard boundaries. - *- * - *
repeated .google.cloud.documentai.v1beta3.Document.Translation translations = 12;
- *
- */
- public Builder addTranslations(
- int index, com.google.cloud.documentai.v1beta3.Document.Translation value) {
- if (translationsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureTranslationsIsMutable();
- translations_.add(index, value);
- onChanged();
- } else {
- translationsBuilder_.addMessage(index, value);
- }
- return this;
- }
- /**
- *
- *
- * - * A list of translations on [Document.text][google.cloud.documentai.v1beta3.Document.text]. For document shards, - * translations in this list may cross shard boundaries. - *- * - *
repeated .google.cloud.documentai.v1beta3.Document.Translation translations = 12;
- *
- */
- public Builder addTranslations(
- com.google.cloud.documentai.v1beta3.Document.Translation.Builder builderForValue) {
- if (translationsBuilder_ == null) {
- ensureTranslationsIsMutable();
- translations_.add(builderForValue.build());
- onChanged();
- } else {
- translationsBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
- /**
- *
- *
- * - * A list of translations on [Document.text][google.cloud.documentai.v1beta3.Document.text]. For document shards, - * translations in this list may cross shard boundaries. - *- * - *
repeated .google.cloud.documentai.v1beta3.Document.Translation translations = 12;
- *
- */
- public Builder addTranslations(
- int index,
- com.google.cloud.documentai.v1beta3.Document.Translation.Builder builderForValue) {
- if (translationsBuilder_ == null) {
- ensureTranslationsIsMutable();
- translations_.add(index, builderForValue.build());
- onChanged();
- } else {
- translationsBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- *
- *
- * - * A list of translations on [Document.text][google.cloud.documentai.v1beta3.Document.text]. For document shards, - * translations in this list may cross shard boundaries. - *- * - *
repeated .google.cloud.documentai.v1beta3.Document.Translation translations = 12;
- *
- */
- public Builder addAllTranslations(
- java.lang.Iterable extends com.google.cloud.documentai.v1beta3.Document.Translation>
- values) {
- if (translationsBuilder_ == null) {
- ensureTranslationsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(values, translations_);
- onChanged();
- } else {
- translationsBuilder_.addAllMessages(values);
- }
- return this;
- }
- /**
- *
- *
- * - * A list of translations on [Document.text][google.cloud.documentai.v1beta3.Document.text]. For document shards, - * translations in this list may cross shard boundaries. - *- * - *
repeated .google.cloud.documentai.v1beta3.Document.Translation translations = 12;
- *
- */
- public Builder clearTranslations() {
- if (translationsBuilder_ == null) {
- translations_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000010);
- onChanged();
- } else {
- translationsBuilder_.clear();
- }
- return this;
- }
- /**
- *
- *
- * - * A list of translations on [Document.text][google.cloud.documentai.v1beta3.Document.text]. For document shards, - * translations in this list may cross shard boundaries. - *- * - *
repeated .google.cloud.documentai.v1beta3.Document.Translation translations = 12;
- *
- */
- public Builder removeTranslations(int index) {
- if (translationsBuilder_ == null) {
- ensureTranslationsIsMutable();
- translations_.remove(index);
- onChanged();
- } else {
- translationsBuilder_.remove(index);
- }
- return this;
- }
- /**
- *
- *
- * - * A list of translations on [Document.text][google.cloud.documentai.v1beta3.Document.text]. For document shards, - * translations in this list may cross shard boundaries. - *- * - *
repeated .google.cloud.documentai.v1beta3.Document.Translation translations = 12;
- *
- */
- public com.google.cloud.documentai.v1beta3.Document.Translation.Builder getTranslationsBuilder(
- int index) {
- return getTranslationsFieldBuilder().getBuilder(index);
- }
- /**
- *
- *
- * - * A list of translations on [Document.text][google.cloud.documentai.v1beta3.Document.text]. For document shards, - * translations in this list may cross shard boundaries. - *- * - *
repeated .google.cloud.documentai.v1beta3.Document.Translation translations = 12;
- *
- */
- public com.google.cloud.documentai.v1beta3.Document.TranslationOrBuilder
- getTranslationsOrBuilder(int index) {
- if (translationsBuilder_ == null) {
- return translations_.get(index);
- } else {
- return translationsBuilder_.getMessageOrBuilder(index);
- }
- }
- /**
- *
- *
- * - * A list of translations on [Document.text][google.cloud.documentai.v1beta3.Document.text]. For document shards, - * translations in this list may cross shard boundaries. - *- * - *
repeated .google.cloud.documentai.v1beta3.Document.Translation translations = 12;
- *
- */
- public java.util.List<
- ? extends com.google.cloud.documentai.v1beta3.Document.TranslationOrBuilder>
- getTranslationsOrBuilderList() {
- if (translationsBuilder_ != null) {
- return translationsBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(translations_);
- }
- }
- /**
- *
- *
- * - * A list of translations on [Document.text][google.cloud.documentai.v1beta3.Document.text]. For document shards, - * translations in this list may cross shard boundaries. - *- * - *
repeated .google.cloud.documentai.v1beta3.Document.Translation translations = 12;
- *
- */
- public com.google.cloud.documentai.v1beta3.Document.Translation.Builder
- addTranslationsBuilder() {
- return getTranslationsFieldBuilder()
- .addBuilder(
- com.google.cloud.documentai.v1beta3.Document.Translation.getDefaultInstance());
- }
- /**
- *
- *
- * - * A list of translations on [Document.text][google.cloud.documentai.v1beta3.Document.text]. For document shards, - * translations in this list may cross shard boundaries. - *- * - *
repeated .google.cloud.documentai.v1beta3.Document.Translation translations = 12;
- *
- */
- public com.google.cloud.documentai.v1beta3.Document.Translation.Builder addTranslationsBuilder(
- int index) {
- return getTranslationsFieldBuilder()
- .addBuilder(
- index, com.google.cloud.documentai.v1beta3.Document.Translation.getDefaultInstance());
- }
- /**
- *
- *
- * - * A list of translations on [Document.text][google.cloud.documentai.v1beta3.Document.text]. For document shards, - * translations in this list may cross shard boundaries. - *- * - *
repeated .google.cloud.documentai.v1beta3.Document.Translation translations = 12;
- *
- */
- public java.util.List- * A list of translations on [Document.text][google.cloud.documentai.v1beta3.Document.text]. For document shards, - * translations in this list may cross shard boundaries. - *- * - *
repeated .google.cloud.documentai.v1beta3.Document.Translation translations = 12;
- */
- java.util.List- * A list of translations on [Document.text][google.cloud.documentai.v1beta3.Document.text]. For document shards, - * translations in this list may cross shard boundaries. - *- * - *
repeated .google.cloud.documentai.v1beta3.Document.Translation translations = 12;
- */
- com.google.cloud.documentai.v1beta3.Document.Translation getTranslations(int index);
- /**
- *
- *
- * - * A list of translations on [Document.text][google.cloud.documentai.v1beta3.Document.text]. For document shards, - * translations in this list may cross shard boundaries. - *- * - *
repeated .google.cloud.documentai.v1beta3.Document.Translation translations = 12;
- */
- int getTranslationsCount();
- /**
- *
- *
- * - * A list of translations on [Document.text][google.cloud.documentai.v1beta3.Document.text]. For document shards, - * translations in this list may cross shard boundaries. - *- * - *
repeated .google.cloud.documentai.v1beta3.Document.Translation translations = 12;
- */
- java.util.List extends com.google.cloud.documentai.v1beta3.Document.TranslationOrBuilder>
- getTranslationsOrBuilderList();
- /**
- *
- *
- * - * A list of translations on [Document.text][google.cloud.documentai.v1beta3.Document.text]. For document shards, - * translations in this list may cross shard boundaries. - *- * - *
repeated .google.cloud.documentai.v1beta3.Document.Translation translations = 12;
- */
- com.google.cloud.documentai.v1beta3.Document.TranslationOrBuilder getTranslationsOrBuilder(
- int index);
-
/**
*
*
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 ab154508..eda9a85d 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
@@ -119,10 +119,6 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_cloud_documentai_v1beta3_Document_EntityRelation_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_cloud_documentai_v1beta3_Document_EntityRelation_fieldAccessorTable;
- static final com.google.protobuf.Descriptors.Descriptor
- internal_static_google_cloud_documentai_v1beta3_Document_Translation_descriptor;
- static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_google_cloud_documentai_v1beta3_Document_Translation_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_cloud_documentai_v1beta3_Document_TextAnchor_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@@ -177,7 +173,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\"\303<\n\010Document\022"
+ + "ogle/api/annotations.proto\"\241:\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"
@@ -186,198 +182,191 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "B\n\010entities\030\007 \003(\01320.google.cloud.documen"
+ "tai.v1beta3.Document.Entity\022R\n\020entity_re"
+ "lations\030\010 \003(\01328.google.cloud.documentai."
- + "v1beta3.Document.EntityRelation\022K\n\014trans"
- + "lations\030\014 \003(\01325.google.cloud.documentai."
- + "v1beta3.Document.Translation\022J\n\014text_cha"
- + "nges\030\016 \003(\01324.google.cloud.documentai.v1b"
- + "eta3.Document.TextChange\022G\n\nshard_info\030\t"
- + " \001(\01323.google.cloud.documentai.v1beta3.D"
- + "ocument.ShardInfo\022!\n\005error\030\n \001(\0132\022.googl"
- + "e.rpc.Status\022E\n\trevisions\030\r \003(\01322.google"
- + ".cloud.documentai.v1beta3.Document.Revis"
- + "ion\032J\n\tShardInfo\022\023\n\013shard_index\030\001 \001(\003\022\023\n"
- + "\013shard_count\030\002 \001(\003\022\023\n\013text_offset\030\003 \001(\003\032"
- + "\332\002\n\005Style\022I\n\013text_anchor\030\001 \001(\01324.google."
- + "cloud.documentai.v1beta3.Document.TextAn"
- + "chor\022!\n\005color\030\002 \001(\0132\022.google.type.Color\022"
- + ",\n\020background_color\030\003 \001(\0132\022.google.type."
- + "Color\022\023\n\013font_weight\030\004 \001(\t\022\022\n\ntext_style"
- + "\030\005 \001(\t\022\027\n\017text_decoration\030\006 \001(\t\022K\n\tfont_"
- + "size\030\007 \001(\01328.google.cloud.documentai.v1b"
- + "eta3.Document.Style.FontSize\032&\n\010FontSize"
- + "\022\014\n\004size\030\001 \001(\002\022\014\n\004unit\030\002 \001(\t\032\320\037\n\004Page\022\023\n"
- + "\013page_number\030\001 \001(\005\022C\n\005image\030\r \001(\01324.goog"
- + "le.cloud.documentai.v1beta3.Document.Pag"
- + "e.Image\022I\n\ntransforms\030\016 \003(\01325.google.clo"
- + "ud.documentai.v1beta3.Document.Page.Matr"
- + "ix\022K\n\tdimension\030\002 \001(\01328.google.cloud.doc"
- + "umentai.v1beta3.Document.Page.Dimension\022"
- + "E\n\006layout\030\003 \001(\01325.google.cloud.documenta"
- + "i.v1beta3.Document.Page.Layout\022[\n\022detect"
- + "ed_languages\030\004 \003(\0132?.google.cloud.docume"
- + "ntai.v1beta3.Document.Page.DetectedLangu"
- + "age\022D\n\006blocks\030\005 \003(\01324.google.cloud.docum"
- + "entai.v1beta3.Document.Page.Block\022L\n\npar"
- + "agraphs\030\006 \003(\01328.google.cloud.documentai."
- + "v1beta3.Document.Page.Paragraph\022B\n\005lines"
- + "\030\007 \003(\01323.google.cloud.documentai.v1beta3"
- + ".Document.Page.Line\022D\n\006tokens\030\010 \003(\01324.go"
- + "ogle.cloud.documentai.v1beta3.Document.P"
- + "age.Token\022U\n\017visual_elements\030\t \003(\0132<.goo"
- + "gle.cloud.documentai.v1beta3.Document.Pa"
- + "ge.VisualElement\022D\n\006tables\030\n \003(\01324.googl"
- + "e.cloud.documentai.v1beta3.Document.Page"
- + ".Table\022M\n\013form_fields\030\013 \003(\01328.google.clo"
- + "ud.documentai.v1beta3.Document.Page.Form"
- + "Field\0328\n\tDimension\022\r\n\005width\030\001 \001(\002\022\016\n\006hei"
- + "ght\030\002 \001(\002\022\014\n\004unit\030\003 \001(\t\032J\n\005Image\022\017\n\007cont"
- + "ent\030\001 \001(\014\022\021\n\tmime_type\030\002 \001(\t\022\r\n\005width\030\003 "
- + "\001(\005\022\016\n\006height\030\004 \001(\005\032@\n\006Matrix\022\014\n\004rows\030\001 "
- + "\001(\005\022\014\n\004cols\030\002 \001(\005\022\014\n\004type\030\003 \001(\005\022\014\n\004data\030"
- + "\004 \001(\014\032\354\002\n\006Layout\022I\n\013text_anchor\030\001 \001(\01324."
- + "google.cloud.documentai.v1beta3.Document"
- + ".TextAnchor\022\022\n\nconfidence\030\002 \001(\002\022D\n\rbound"
- + "ing_poly\030\003 \001(\0132-.google.cloud.documentai"
- + ".v1beta3.BoundingPoly\022V\n\013orientation\030\004 \001"
- + "(\0162A.google.cloud.documentai.v1beta3.Doc"
- + "ument.Page.Layout.Orientation\"e\n\013Orienta"
- + "tion\022\033\n\027ORIENTATION_UNSPECIFIED\020\000\022\013\n\007PAG"
- + "E_UP\020\001\022\016\n\nPAGE_RIGHT\020\002\022\r\n\tPAGE_DOWN\020\003\022\r\n"
- + "\tPAGE_LEFT\020\004\032\365\001\n\005Block\022E\n\006layout\030\001 \001(\01325"
+ + "v1beta3.Document.EntityRelation\022J\n\014text_"
+ + "changes\030\016 \003(\01324.google.cloud.documentai."
+ + "v1beta3.Document.TextChange\022G\n\nshard_inf"
+ + "o\030\t \001(\01323.google.cloud.documentai.v1beta"
+ + "3.Document.ShardInfo\022!\n\005error\030\n \001(\0132\022.go"
+ + "ogle.rpc.Status\022E\n\trevisions\030\r \003(\01322.goo"
+ + "gle.cloud.documentai.v1beta3.Document.Re"
+ + "vision\032J\n\tShardInfo\022\023\n\013shard_index\030\001 \001(\003"
+ + "\022\023\n\013shard_count\030\002 \001(\003\022\023\n\013text_offset\030\003 \001"
+ + "(\003\032\332\002\n\005Style\022I\n\013text_anchor\030\001 \001(\01324.goog"
+ + "le.cloud.documentai.v1beta3.Document.Tex"
+ + "tAnchor\022!\n\005color\030\002 \001(\0132\022.google.type.Col"
+ + "or\022,\n\020background_color\030\003 \001(\0132\022.google.ty"
+ + "pe.Color\022\023\n\013font_weight\030\004 \001(\t\022\022\n\ntext_st"
+ + "yle\030\005 \001(\t\022\027\n\017text_decoration\030\006 \001(\t\022K\n\tfo"
+ + "nt_size\030\007 \001(\01328.google.cloud.documentai."
+ + "v1beta3.Document.Style.FontSize\032&\n\010FontS"
+ + "ize\022\014\n\004size\030\001 \001(\002\022\014\n\004unit\030\002 \001(\t\032\320\037\n\004Page"
+ + "\022\023\n\013page_number\030\001 \001(\005\022C\n\005image\030\r \001(\01324.g"
+ + "oogle.cloud.documentai.v1beta3.Document."
+ + "Page.Image\022I\n\ntransforms\030\016 \003(\01325.google."
+ + "cloud.documentai.v1beta3.Document.Page.M"
+ + "atrix\022K\n\tdimension\030\002 \001(\01328.google.cloud."
+ + "documentai.v1beta3.Document.Page.Dimensi"
+ + "on\022E\n\006layout\030\003 \001(\01325.google.cloud.docume"
+ + "ntai.v1beta3.Document.Page.Layout\022[\n\022det"
+ + "ected_languages\030\004 \003(\0132?.google.cloud.doc"
+ + "umentai.v1beta3.Document.Page.DetectedLa"
+ + "nguage\022D\n\006blocks\030\005 \003(\01324.google.cloud.do"
+ + "cumentai.v1beta3.Document.Page.Block\022L\n\n"
+ + "paragraphs\030\006 \003(\01328.google.cloud.document"
+ + "ai.v1beta3.Document.Page.Paragraph\022B\n\005li"
+ + "nes\030\007 \003(\01323.google.cloud.documentai.v1be"
+ + "ta3.Document.Page.Line\022D\n\006tokens\030\010 \003(\01324"
+ ".google.cloud.documentai.v1beta3.Documen"
- + "t.Page.Layout\022[\n\022detected_languages\030\002 \003("
- + "\0132?.google.cloud.documentai.v1beta3.Docu"
- + "ment.Page.DetectedLanguage\022H\n\nprovenance"
- + "\030\003 \001(\01324.google.cloud.documentai.v1beta3"
- + ".Document.Provenance\032\371\001\n\tParagraph\022E\n\006la"
- + "yout\030\001 \001(\01325.google.cloud.documentai.v1b"
- + "eta3.Document.Page.Layout\022[\n\022detected_la"
- + "nguages\030\002 \003(\0132?.google.cloud.documentai."
- + "v1beta3.Document.Page.DetectedLanguage\022H"
- + "\n\nprovenance\030\003 \001(\01324.google.cloud.docume"
- + "ntai.v1beta3.Document.Provenance\032\364\001\n\004Lin"
- + "e\022E\n\006layout\030\001 \001(\01325.google.cloud.documen"
- + "tai.v1beta3.Document.Page.Layout\022[\n\022dete"
- + "cted_languages\030\002 \003(\0132?.google.cloud.docu"
- + "mentai.v1beta3.Document.Page.DetectedLan"
- + "guage\022H\n\nprovenance\030\003 \001(\01324.google.cloud"
- + ".documentai.v1beta3.Document.Provenance\032"
- + "\377\003\n\005Token\022E\n\006layout\030\001 \001(\01325.google.cloud"
- + ".documentai.v1beta3.Document.Page.Layout"
- + "\022Z\n\016detected_break\030\002 \001(\0132B.google.cloud."
- + "documentai.v1beta3.Document.Page.Token.D"
- + "etectedBreak\022[\n\022detected_languages\030\003 \003(\013"
- + "2?.google.cloud.documentai.v1beta3.Docum"
- + "ent.Page.DetectedLanguage\022H\n\nprovenance\030"
- + "\004 \001(\01324.google.cloud.documentai.v1beta3."
- + "Document.Provenance\032\253\001\n\rDetectedBreak\022U\n"
- + "\004type\030\001 \001(\0162G.google.cloud.documentai.v1"
- + "beta3.Document.Page.Token.DetectedBreak."
- + "Type\"C\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\t\n\005SP"
- + "ACE\020\001\022\016\n\nWIDE_SPACE\020\002\022\n\n\006HYPHEN\020\003\032\301\001\n\rVi"
- + "sualElement\022E\n\006layout\030\001 \001(\01325.google.clo"
- + "ud.documentai.v1beta3.Document.Page.Layo"
- + "ut\022\014\n\004type\030\002 \001(\t\022[\n\022detected_languages\030\003"
+ + "t.Page.Token\022U\n\017visual_elements\030\t \003(\0132<."
+ + "google.cloud.documentai.v1beta3.Document"
+ + ".Page.VisualElement\022D\n\006tables\030\n \003(\01324.go"
+ + "ogle.cloud.documentai.v1beta3.Document.P"
+ + "age.Table\022M\n\013form_fields\030\013 \003(\01328.google."
+ + "cloud.documentai.v1beta3.Document.Page.F"
+ + "ormField\0328\n\tDimension\022\r\n\005width\030\001 \001(\002\022\016\n\006"
+ + "height\030\002 \001(\002\022\014\n\004unit\030\003 \001(\t\032J\n\005Image\022\017\n\007c"
+ + "ontent\030\001 \001(\014\022\021\n\tmime_type\030\002 \001(\t\022\r\n\005width"
+ + "\030\003 \001(\005\022\016\n\006height\030\004 \001(\005\032@\n\006Matrix\022\014\n\004rows"
+ + "\030\001 \001(\005\022\014\n\004cols\030\002 \001(\005\022\014\n\004type\030\003 \001(\005\022\014\n\004da"
+ + "ta\030\004 \001(\014\032\354\002\n\006Layout\022I\n\013text_anchor\030\001 \001(\013"
+ + "24.google.cloud.documentai.v1beta3.Docum"
+ + "ent.TextAnchor\022\022\n\nconfidence\030\002 \001(\002\022D\n\rbo"
+ + "unding_poly\030\003 \001(\0132-.google.cloud.documen"
+ + "tai.v1beta3.BoundingPoly\022V\n\013orientation\030"
+ + "\004 \001(\0162A.google.cloud.documentai.v1beta3."
+ + "Document.Page.Layout.Orientation\"e\n\013Orie"
+ + "ntation\022\033\n\027ORIENTATION_UNSPECIFIED\020\000\022\013\n\007"
+ + "PAGE_UP\020\001\022\016\n\nPAGE_RIGHT\020\002\022\r\n\tPAGE_DOWN\020\003"
+ + "\022\r\n\tPAGE_LEFT\020\004\032\365\001\n\005Block\022E\n\006layout\030\001 \001("
+ + "\01325.google.cloud.documentai.v1beta3.Docu"
+ + "ment.Page.Layout\022[\n\022detected_languages\030\002"
+ " \003(\0132?.google.cloud.documentai.v1beta3.D"
- + "ocument.Page.DetectedLanguage\032\202\005\n\005Table\022"
- + "E\n\006layout\030\001 \001(\01325.google.cloud.documenta"
- + "i.v1beta3.Document.Page.Layout\022R\n\013header"
- + "_rows\030\002 \003(\0132=.google.cloud.documentai.v1"
- + "beta3.Document.Page.Table.TableRow\022P\n\tbo"
- + "dy_rows\030\003 \003(\0132=.google.cloud.documentai."
- + "v1beta3.Document.Page.Table.TableRow\022[\n\022"
- + "detected_languages\030\004 \003(\0132?.google.cloud."
- + "documentai.v1beta3.Document.Page.Detecte"
- + "dLanguage\032Y\n\010TableRow\022M\n\005cells\030\001 \003(\0132>.g"
- + "oogle.cloud.documentai.v1beta3.Document."
- + "Page.Table.TableCell\032\323\001\n\tTableCell\022E\n\006la"
- + "yout\030\001 \001(\01325.google.cloud.documentai.v1b"
- + "eta3.Document.Page.Layout\022\020\n\010row_span\030\002 "
- + "\001(\005\022\020\n\010col_span\030\003 \001(\005\022[\n\022detected_langua"
- + "ges\030\004 \003(\0132?.google.cloud.documentai.v1be"
- + "ta3.Document.Page.DetectedLanguage\032\373\002\n\tF"
- + "ormField\022I\n\nfield_name\030\001 \001(\01325.google.cl"
+ + "ocument.Page.DetectedLanguage\022H\n\nprovena"
+ + "nce\030\003 \001(\01324.google.cloud.documentai.v1be"
+ + "ta3.Document.Provenance\032\371\001\n\tParagraph\022E\n"
+ + "\006layout\030\001 \001(\01325.google.cloud.documentai."
+ + "v1beta3.Document.Page.Layout\022[\n\022detected"
+ + "_languages\030\002 \003(\0132?.google.cloud.document"
+ + "ai.v1beta3.Document.Page.DetectedLanguag"
+ + "e\022H\n\nprovenance\030\003 \001(\01324.google.cloud.doc"
+ + "umentai.v1beta3.Document.Provenance\032\364\001\n\004"
+ + "Line\022E\n\006layout\030\001 \001(\01325.google.cloud.docu"
+ + "mentai.v1beta3.Document.Page.Layout\022[\n\022d"
+ + "etected_languages\030\002 \003(\0132?.google.cloud.d"
+ + "ocumentai.v1beta3.Document.Page.Detected"
+ + "Language\022H\n\nprovenance\030\003 \001(\01324.google.cl"
+ + "oud.documentai.v1beta3.Document.Provenan"
+ + "ce\032\377\003\n\005Token\022E\n\006layout\030\001 \001(\01325.google.cl"
+ "oud.documentai.v1beta3.Document.Page.Lay"
- + "out\022J\n\013field_value\030\002 \001(\01325.google.cloud."
- + "documentai.v1beta3.Document.Page.Layout\022"
- + "`\n\027name_detected_languages\030\003 \003(\0132?.googl"
- + "e.cloud.documentai.v1beta3.Document.Page"
- + ".DetectedLanguage\022a\n\030value_detected_lang"
- + "uages\030\004 \003(\0132?.google.cloud.documentai.v1"
- + "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"
- + "\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\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"
+ + "out\022Z\n\016detected_break\030\002 \001(\0132B.google.clo"
+ + "ud.documentai.v1beta3.Document.Page.Toke"
+ + "n.DetectedBreak\022[\n\022detected_languages\030\003 "
+ + "\003(\0132?.google.cloud.documentai.v1beta3.Do"
+ + "cument.Page.DetectedLanguage\022H\n\nprovenan"
+ + "ce\030\004 \001(\01324.google.cloud.documentai.v1bet"
+ + "a3.Document.Provenance\032\253\001\n\rDetectedBreak"
+ + "\022U\n\004type\030\001 \001(\0162G.google.cloud.documentai"
+ + ".v1beta3.Document.Page.Token.DetectedBre"
+ + "ak.Type\"C\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\t\n"
+ + "\005SPACE\020\001\022\016\n\nWIDE_SPACE\020\002\022\n\n\006HYPHEN\020\003\032\301\001\n"
+ + "\rVisualElement\022E\n\006layout\030\001 \001(\01325.google."
+ + "cloud.documentai.v1beta3.Document.Page.L"
+ + "ayout\022\014\n\004type\030\002 \001(\t\022[\n\022detected_language"
+ + "s\030\003 \003(\0132?.google.cloud.documentai.v1beta"
+ + "3.Document.Page.DetectedLanguage\032\202\005\n\005Tab"
+ + "le\022E\n\006layout\030\001 \001(\01325.google.cloud.docume"
+ + "ntai.v1beta3.Document.Page.Layout\022R\n\013hea"
+ + "der_rows\030\002 \003(\0132=.google.cloud.documentai"
+ + ".v1beta3.Document.Page.Table.TableRow\022P\n"
+ + "\tbody_rows\030\003 \003(\0132=.google.cloud.document"
+ + "ai.v1beta3.Document.Page.Table.TableRow\022"
+ + "[\n\022detected_languages\030\004 \003(\0132?.google.clo"
+ + "ud.documentai.v1beta3.Document.Page.Dete"
+ + "ctedLanguage\032Y\n\010TableRow\022M\n\005cells\030\001 \003(\0132"
+ + ">.google.cloud.documentai.v1beta3.Docume"
+ + "nt.Page.Table.TableCell\032\323\001\n\tTableCell\022E\n"
+ + "\006layout\030\001 \001(\01325.google.cloud.documentai."
+ + "v1beta3.Document.Page.Layout\022\020\n\010row_span"
+ + "\030\002 \001(\005\022\020\n\010col_span\030\003 \001(\005\022[\n\022detected_lan"
+ + "guages\030\004 \003(\0132?.google.cloud.documentai.v"
+ + "1beta3.Document.Page.DetectedLanguage\032\373\002"
+ + "\n\tFormField\022I\n\nfield_name\030\001 \001(\01325.google"
+ + ".cloud.documentai.v1beta3.Document.Page."
+ + "Layout\022J\n\013field_value\030\002 \001(\01325.google.clo"
+ + "ud.documentai.v1beta3.Document.Page.Layo"
+ + "ut\022`\n\027name_detected_languages\030\003 \003(\0132?.go"
+ + "ogle.cloud.documentai.v1beta3.Document.P"
+ + "age.DetectedLanguage\022a\n\030value_detected_l"
+ + "anguages\030\004 \003(\0132?.google.cloud.documentai"
+ + ".v1beta3.Document.Page.DetectedLanguage\022"
+ + "\022\n\nvalue_type\030\005 \001(\t\032=\n\020DetectedLanguage\022"
+ + "\025\n\rlanguage_code\030\001 \001(\t\022\022\n\nconfidence\030\002 \001"
+ + "(\002\032\245\006\n\006Entity\022I\n\013text_anchor\030\001 \001(\01324.goo"
+ + "gle.cloud.documentai.v1beta3.Document.Te"
+ + "xtAnchor\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."
+ + "cloud.documentai.v1beta3.Document.PageAn"
+ + "chorB\003\340A\001\022\017\n\002id\030\007 \001(\tB\003\340A\001\022_\n\020normalized"
+ + "_value\030\t \001(\0132@.google.cloud.documentai.v"
+ + "1beta3.Document.Entity.NormalizedValueB\003"
+ + "\340A\001\022I\n\nproperties\030\n \003(\01320.google.cloud.d"
+ + "ocumentai.v1beta3.Document.EntityB\003\340A\001\022M"
+ + "\n\nprovenance\030\013 \001(\01324.google.cloud.docume"
+ + "ntai.v1beta3.Document.ProvenanceB\003\340A\001\022\025\n"
+ + "\010redacted\030\014 \001(\010B\003\340A\001\032\213\002\n\017NormalizedValue"
+ + "\022)\n\013money_value\030\002 \001(\0132\022.google.type.Mone"
+ + "yH\000\022\'\n\ndate_value\030\003 \001(\0132\021.google.type.Da"
+ + "teH\000\022/\n\016datetime_value\030\004 \001(\0132\025.google.ty"
+ + "pe.DateTimeH\000\0223\n\raddress_value\030\005 \001(\0132\032.g"
+ + "oogle.type.PostalAddressH\000\022\027\n\rboolean_va"
+ + "lue\030\006 \001(\010H\000\022\021\n\004text\030\001 \001(\tB\003\340A\002B\022\n\020struct"
+ + "ured_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\255\001\n\nTextAnchor\022W\n\rtext_segments\030\001 "
+ + "\003(\0132@.google.cloud.documentai.v1beta3.Do"
+ + "cument.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\nPageAnchor\022O\n\t"
+ + "page_refs\030\001 \003(\0132<.google.cloud.documenta"
+ + "i.v1beta3.Document.PageAnchor.PageRef\032\356\002"
+ + "\n\007PageRef\022\021\n\004page\030\001 \001(\003B\003\340A\002\022a\n\013layout_t"
+ + "ype\030\002 \001(\0162G.google.cloud.documentai.v1be"
+ + "ta3.Document.PageAnchor.PageRef.LayoutTy"
+ + "peB\003\340A\001\022\030\n\tlayout_id\030\003 \001(\tB\005\030\001\340A\001\022I\n\rbou"
+ + "nding_poly\030\004 \001(\0132-.google.cloud.document"
+ + "ai.v1beta3.BoundingPolyB\003\340A\001\"\207\001\n\nLayoutT"
+ + "ype\022\033\n\027LAYOUT_TYPE_UNSPECIFIED\020\000\022\t\n\005BLOC"
+ + "K\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_F"
+ + "IELD\020\007\032\354\002\n\nProvenance\022\020\n\010revision\030\001 \001(\005\022"
+ + "\n\n\002id\030\002 \001(\005\022L\n\007parents\030\003 \003(\0132;.google.cl"
+ + "oud.documentai.v1beta3.Document.Provenan"
+ + "ce.Parent\022P\n\004type\030\004 \001(\0162B.google.cloud.d"
+ + "ocumentai.v1beta3.Document.Provenance.Op"
+ + "erationType\032&\n\006Parent\022\020\n\010revision\030\001 \001(\005\022"
+ + "\n\n\002id\030\002 \001(\005\"x\n\rOperationType\022\036\n\032OPERATIO"
+ + "N_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_REQUESTED\020\004\022\021\n\rEV"
+ + "AL_APPROVED\020\005\032\222\002\n\010Revision\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\006"
+ + "parent\030\002 \003(\005\022/\n\013create_time\030\003 \001(\0132\032.goog"
+ + "le.protobuf.Timestamp\022T\n\014human_review\030\006 "
+ + "\001(\0132>.google.cloud.documentai.v1beta3.Do"
+ + "cument.Revision.HumanReview\0323\n\013HumanRevi"
+ + "ew\022\r\n\005state\030\001 \001(\t\022\025\n\rstate_message\030\002 \001(\t"
+ + "B\010\n\006source\032\267\001\n\nTextChange\022I\n\013text_anchor"
+ + "\030\001 \001(\01324.google.cloud.documentai.v1beta3"
+ + ".Document.TextAnchor\022\024\n\014changed_text\030\002 \001"
+ + "(\t\022H\n\nprovenance\030\003 \003(\01324.google.cloud.do"
+ + "cumentai.v1beta3.Document.ProvenanceB\010\n\006"
+ + "sourceB\352\001\n#com.google.cloud.documentai.v"
+ + "1beta3B\rDocumentProtoP\001ZIgoogle.golang.o"
+ + "rg/genproto/googleapis/cloud/documentai/"
+ + "v1beta3;documentai\252\002\037Google.Cloud.Docume"
+ + "ntAI.V1Beta3\312\002\037Google\\Cloud\\DocumentAI\\V"
+ + "1beta3\352\002\"Google::Cloud::DocumentAI::V1be"
+ + "ta3b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -408,7 +397,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Pages",
"Entities",
"EntityRelations",
- "Translations",
"TextChanges",
"ShardInfo",
"Error",
@@ -663,16 +651,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new java.lang.String[] {
"SubjectId", "ObjectId", "Relation",
});
- internal_static_google_cloud_documentai_v1beta3_Document_Translation_descriptor =
- internal_static_google_cloud_documentai_v1beta3_Document_descriptor.getNestedTypes().get(5);
- internal_static_google_cloud_documentai_v1beta3_Document_Translation_fieldAccessorTable =
- new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_google_cloud_documentai_v1beta3_Document_Translation_descriptor,
- new java.lang.String[] {
- "TextAnchor", "LanguageCode", "TranslatedText", "Provenance",
- });
internal_static_google_cloud_documentai_v1beta3_Document_TextAnchor_descriptor =
- internal_static_google_cloud_documentai_v1beta3_Document_descriptor.getNestedTypes().get(6);
+ internal_static_google_cloud_documentai_v1beta3_Document_descriptor.getNestedTypes().get(5);
internal_static_google_cloud_documentai_v1beta3_Document_TextAnchor_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_documentai_v1beta3_Document_TextAnchor_descriptor,
@@ -690,7 +670,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"StartIndex", "EndIndex",
});
internal_static_google_cloud_documentai_v1beta3_Document_PageAnchor_descriptor =
- internal_static_google_cloud_documentai_v1beta3_Document_descriptor.getNestedTypes().get(7);
+ internal_static_google_cloud_documentai_v1beta3_Document_descriptor.getNestedTypes().get(6);
internal_static_google_cloud_documentai_v1beta3_Document_PageAnchor_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_documentai_v1beta3_Document_PageAnchor_descriptor,
@@ -708,7 +688,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Page", "LayoutType", "LayoutId", "BoundingPoly",
});
internal_static_google_cloud_documentai_v1beta3_Document_Provenance_descriptor =
- internal_static_google_cloud_documentai_v1beta3_Document_descriptor.getNestedTypes().get(8);
+ internal_static_google_cloud_documentai_v1beta3_Document_descriptor.getNestedTypes().get(7);
internal_static_google_cloud_documentai_v1beta3_Document_Provenance_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_documentai_v1beta3_Document_Provenance_descriptor,
@@ -726,7 +706,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Revision", "Id",
});
internal_static_google_cloud_documentai_v1beta3_Document_Revision_descriptor =
- internal_static_google_cloud_documentai_v1beta3_Document_descriptor.getNestedTypes().get(9);
+ internal_static_google_cloud_documentai_v1beta3_Document_descriptor.getNestedTypes().get(8);
internal_static_google_cloud_documentai_v1beta3_Document_Revision_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_documentai_v1beta3_Document_Revision_descriptor,
@@ -744,9 +724,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"State", "StateMessage",
});
internal_static_google_cloud_documentai_v1beta3_Document_TextChange_descriptor =
- internal_static_google_cloud_documentai_v1beta3_Document_descriptor
- .getNestedTypes()
- .get(10);
+ internal_static_google_cloud_documentai_v1beta3_Document_descriptor.getNestedTypes().get(9);
internal_static_google_cloud_documentai_v1beta3_Document_TextChange_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_documentai_v1beta3_Document_TextChange_descriptor,
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 2c790cbb..0e14be61 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
@@ -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.
@@ -487,27 +487,6 @@ message Document {
string relation = 3;
}
- // A translation of the text segment.
- message Translation {
- // Provenance of the translation.
- // Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta3.Document.text]. There can only be a
- // single `TextAnchor.text_segments` element. If the start and
- // end index of the text segment are the same, the text change is inserted
- // before that index.
- TextAnchor text_anchor = 1;
-
- // The BCP-47 language code, such as "en-US" or "sr-Latn". For more
- // information, see
- // http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
- string language_code = 2;
-
- // Text translated into the target language.
- string translated_text = 3;
-
- // The history of this annotation.
- repeated Provenance provenance = 4;
- }
-
// Text reference indexing into the [Document.text][google.cloud.documentai.v1beta3.Document.text].
message TextAnchor {
// A text segment in the [Document.text][google.cloud.documentai.v1beta3.Document.text]. The indices may be out of bounds
@@ -724,10 +703,6 @@ message Document {
// Relationship among [Document.entities][google.cloud.documentai.v1beta3.Document.entities].
repeated EntityRelation entity_relations = 8;
- // A list of translations on [Document.text][google.cloud.documentai.v1beta3.Document.text]. For document shards,
- // translations in this list may cross shard boundaries.
- repeated Translation translations = 12;
-
// A list of text corrections made to [Document.text]. This is usually
// used for annotating corrections to OCR mistakes. Text changes for a given
// revision may not overlap with each other.
diff --git a/synth.metadata b/synth.metadata
index 616780a3..4904ea66 100644
--- a/synth.metadata
+++ b/synth.metadata
@@ -4,31 +4,31 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/java-document-ai.git",
- "sha": "495b17716b7a580360902f4e9a1ff4dd0c6330c1"
+ "sha": "4c5a3473f39957fa65e3e4eb3d11d38592a0c7b7"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
- "sha": "0e915217fb5261c1e57bfaf0e16ee5c7feaaba89",
- "internalRef": "361377784"
+ "sha": "0c6dd7aa98ebee634ec62568237f7ee17034ad08",
+ "internalRef": "361590205"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
- "sha": "0e915217fb5261c1e57bfaf0e16ee5c7feaaba89",
- "internalRef": "361377784"
+ "sha": "0c6dd7aa98ebee634ec62568237f7ee17034ad08",
+ "internalRef": "361590205"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
- "sha": "0e915217fb5261c1e57bfaf0e16ee5c7feaaba89",
- "internalRef": "361377784"
+ "sha": "0c6dd7aa98ebee634ec62568237f7ee17034ad08",
+ "internalRef": "361590205"
}
},
{