repeated .DocumentPage documentPages = 1;
- */
- java.util.Listrepeated .DocumentPage documentPages = 1;
- */
- DocumentPageProto.DocumentPage getDocumentPages(int index);
-
-
- /**
- * repeated .DocumentPage documentPages = 1;
- */
- int getDocumentPagesCount();
-
-
- /**
- * repeated .DocumentPage documentPages = 1;
- */
- java.util.List extends DocumentPageProto.DocumentPageOrBuilder> getDocumentPagesOrBuilderList();
-
-
- /**
- * repeated .DocumentPage documentPages = 1;
- */
- DocumentPageProto.DocumentPageOrBuilder getDocumentPagesOrBuilder(int index);
-
- }
-
- /**
- * Protobuf type {@code AllDocumentPages}
- */
- public static final class AllDocumentPages extends com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:AllDocumentPages)
- AllDocumentPagesOrBuilder {
-
- private static final long serialVersionUID = 0L;
-
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 27,
- /* patch= */ 1,
- /* suffix= */ "", AllDocumentPages.class.getName());
- }
-
- // Use AllDocumentPages.newBuilder() to construct.
- private AllDocumentPages(com.google.protobuf.GeneratedMessage.Builder> builder) {
-
- super(builder);
- }
-
-
- private AllDocumentPages() {
-
- documentPages_ = java.util.Collections.emptyList();
- }
-
-
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-
- return DocumentPageProto.internal_static_AllDocumentPages_descriptor;
- }
-
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
-
- return DocumentPageProto.internal_static_AllDocumentPages_fieldAccessorTable.ensureFieldAccessorsInitialized(DocumentPageProto.AllDocumentPages.class,
- DocumentPageProto.AllDocumentPages.Builder.class);
- }
-
-
- public static final int DOCUMENTPAGES_FIELD_NUMBER = 1;
- @SuppressWarnings("serial")
- private java.util.Listrepeated .DocumentPage documentPages = 1;
- */
- @java.lang.Override
- public java.util.Listrepeated .DocumentPage documentPages = 1;
- */
- @java.lang.Override
- public java.util.List extends DocumentPageProto.DocumentPageOrBuilder> getDocumentPagesOrBuilderList() {
-
- return documentPages_;
- }
-
-
- /**
- * repeated .DocumentPage documentPages = 1;
- */
- @java.lang.Override
- public int getDocumentPagesCount() {
-
- return documentPages_.size();
- }
-
-
- /**
- * repeated .DocumentPage documentPages = 1;
- */
- @java.lang.Override
- public DocumentPageProto.DocumentPage getDocumentPages(int index) {
-
- return documentPages_.get(index);
- }
-
-
- /**
- * repeated .DocumentPage documentPages = 1;
- */
- @java.lang.Override
- public DocumentPageProto.DocumentPageOrBuilder getDocumentPagesOrBuilder(int index) {
-
- return documentPages_.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;
- }
-
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-
- for (int i = 0; i < documentPages_.size(); i++) {
- output.writeMessage(1, documentPages_.get(i));
- }
- getUnknownFields().writeTo(output);
- }
-
-
- @java.lang.Override
- public int getSerializedSize() {
-
- int size = memoizedSize;
- if (size != -1) {
- return size;
- }
-
- size = 0;
- for (int i = 0; i < documentPages_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, documentPages_.get(i));
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
-
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof DocumentPageProto.AllDocumentPages)) {
- return super.equals(obj);
- }
- DocumentPageProto.AllDocumentPages other = (DocumentPageProto.AllDocumentPages) obj;
-
- if (!getDocumentPagesList().equals(other.getDocumentPagesList())) {
- return false;
- }
- if (!getUnknownFields().equals(other.getUnknownFields())) {
- return false;
- }
- return true;
- }
-
-
- @java.lang.Override
- public int hashCode() {
-
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (getDocumentPagesCount() > 0) {
- hash = (37 * hash) + DOCUMENTPAGES_FIELD_NUMBER;
- hash = (53 * hash) + getDocumentPagesList().hashCode();
- }
- hash = (29 * hash) + getUnknownFields().hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
-
- public static DocumentPageProto.AllDocumentPages parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
-
- return PARSER.parseFrom(data);
- }
-
-
- public static DocumentPageProto.AllDocumentPages parseFrom(java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
-
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
-
- public static DocumentPageProto.AllDocumentPages parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException {
-
- return PARSER.parseFrom(data);
- }
-
-
- public static DocumentPageProto.AllDocumentPages parseFrom(com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
-
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
-
- public static DocumentPageProto.AllDocumentPages parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
-
- return PARSER.parseFrom(data);
- }
-
-
- public static DocumentPageProto.AllDocumentPages parseFrom(byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
-
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
-
- public static DocumentPageProto.AllDocumentPages parseFrom(java.io.InputStream input) throws java.io.IOException {
-
- return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
- }
-
-
- public static DocumentPageProto.AllDocumentPages parseFrom(java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
-
- return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input, extensionRegistry);
- }
-
-
- public static DocumentPageProto.AllDocumentPages parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
-
- return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
- }
-
-
- public static DocumentPageProto.AllDocumentPages parseDelimitedFrom(java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
-
- return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
-
-
- public static DocumentPageProto.AllDocumentPages parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-
- return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
- }
-
-
- public static DocumentPageProto.AllDocumentPages parseFrom(com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
-
- return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input, extensionRegistry);
- }
-
-
- @java.lang.Override
- public Builder newBuilderForType() {return newBuilder();}
-
-
- public static Builder newBuilder() {
-
- return DEFAULT_INSTANCE.toBuilder();
- }
-
-
- public static Builder newBuilder(DocumentPageProto.AllDocumentPages 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.GeneratedMessage.BuilderParent parent) {
-
- Builder builder = new Builder(parent);
- return builder;
- }
-
-
- /**
- * Protobuf type {@code AllDocumentPages}
- */
- public static final class Builder extends com.google.protobuf.GeneratedMessage.Builderrepeated .DocumentPage documentPages = 1;
- */
- public java.util.Listrepeated .DocumentPage documentPages = 1;
- */
- public int getDocumentPagesCount() {
-
- if (documentPagesBuilder_ == null) {
- return documentPages_.size();
- } else {
- return documentPagesBuilder_.getCount();
- }
- }
-
-
- /**
- * repeated .DocumentPage documentPages = 1;
- */
- public DocumentPageProto.DocumentPage getDocumentPages(int index) {
-
- if (documentPagesBuilder_ == null) {
- return documentPages_.get(index);
- } else {
- return documentPagesBuilder_.getMessage(index);
- }
- }
-
-
- /**
- * repeated .DocumentPage documentPages = 1;
- */
- public Builder setDocumentPages(int index, DocumentPageProto.DocumentPage value) {
-
- if (documentPagesBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureDocumentPagesIsMutable();
- documentPages_.set(index, value);
- onChanged();
- } else {
- documentPagesBuilder_.setMessage(index, value);
- }
- return this;
- }
-
-
- /**
- * repeated .DocumentPage documentPages = 1;
- */
- public Builder setDocumentPages(int index, DocumentPageProto.DocumentPage.Builder builderForValue) {
-
- if (documentPagesBuilder_ == null) {
- ensureDocumentPagesIsMutable();
- documentPages_.set(index, builderForValue.build());
- onChanged();
- } else {
- documentPagesBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
-
-
- /**
- * repeated .DocumentPage documentPages = 1;
- */
- public Builder addDocumentPages(DocumentPageProto.DocumentPage value) {
-
- if (documentPagesBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureDocumentPagesIsMutable();
- documentPages_.add(value);
- onChanged();
- } else {
- documentPagesBuilder_.addMessage(value);
- }
- return this;
- }
-
-
- /**
- * repeated .DocumentPage documentPages = 1;
- */
- public Builder addDocumentPages(int index, DocumentPageProto.DocumentPage value) {
-
- if (documentPagesBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureDocumentPagesIsMutable();
- documentPages_.add(index, value);
- onChanged();
- } else {
- documentPagesBuilder_.addMessage(index, value);
- }
- return this;
- }
-
-
- /**
- * repeated .DocumentPage documentPages = 1;
- */
- public Builder addDocumentPages(DocumentPageProto.DocumentPage.Builder builderForValue) {
-
- if (documentPagesBuilder_ == null) {
- ensureDocumentPagesIsMutable();
- documentPages_.add(builderForValue.build());
- onChanged();
- } else {
- documentPagesBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
-
-
- /**
- * repeated .DocumentPage documentPages = 1;
- */
- public Builder addDocumentPages(int index, DocumentPageProto.DocumentPage.Builder builderForValue) {
-
- if (documentPagesBuilder_ == null) {
- ensureDocumentPagesIsMutable();
- documentPages_.add(index, builderForValue.build());
- onChanged();
- } else {
- documentPagesBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
-
-
- /**
- * repeated .DocumentPage documentPages = 1;
- */
- public Builder addAllDocumentPages(java.lang.Iterable extends DocumentPageProto.DocumentPage> values) {
-
- if (documentPagesBuilder_ == null) {
- ensureDocumentPagesIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(values, documentPages_);
- onChanged();
- } else {
- documentPagesBuilder_.addAllMessages(values);
- }
- return this;
- }
-
-
- /**
- * repeated .DocumentPage documentPages = 1;
- */
- public Builder clearDocumentPages() {
-
- if (documentPagesBuilder_ == null) {
- documentPages_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
- onChanged();
- } else {
- documentPagesBuilder_.clear();
- }
- return this;
- }
-
-
- /**
- * repeated .DocumentPage documentPages = 1;
- */
- public Builder removeDocumentPages(int index) {
-
- if (documentPagesBuilder_ == null) {
- ensureDocumentPagesIsMutable();
- documentPages_.remove(index);
- onChanged();
- } else {
- documentPagesBuilder_.remove(index);
- }
- return this;
- }
-
-
- /**
- * repeated .DocumentPage documentPages = 1;
- */
- public DocumentPageProto.DocumentPage.Builder getDocumentPagesBuilder(int index) {
-
- return getDocumentPagesFieldBuilder().getBuilder(index);
- }
-
-
- /**
- * repeated .DocumentPage documentPages = 1;
- */
- public DocumentPageProto.DocumentPageOrBuilder getDocumentPagesOrBuilder(int index) {
-
- if (documentPagesBuilder_ == null) {
- return documentPages_.get(index);
- } else {
- return documentPagesBuilder_.getMessageOrBuilder(index);
- }
- }
-
-
- /**
- * repeated .DocumentPage documentPages = 1;
- */
- public java.util.List extends DocumentPageProto.DocumentPageOrBuilder> getDocumentPagesOrBuilderList() {
-
- if (documentPagesBuilder_ != null) {
- return documentPagesBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(documentPages_);
- }
- }
-
-
- /**
- * repeated .DocumentPage documentPages = 1;
- */
- public DocumentPageProto.DocumentPage.Builder addDocumentPagesBuilder() {
-
- return getDocumentPagesFieldBuilder().addBuilder(DocumentPageProto.DocumentPage.getDefaultInstance());
- }
-
-
- /**
- * repeated .DocumentPage documentPages = 1;
- */
- public DocumentPageProto.DocumentPage.Builder addDocumentPagesBuilder(int index) {
-
- return getDocumentPagesFieldBuilder().addBuilder(index, DocumentPageProto.DocumentPage.getDefaultInstance());
- }
-
-
- /**
- * repeated .DocumentPage documentPages = 1;
- */
- public java.util.List- * The page number, starting with 1. - *- * - *
int32 number = 1;
- *
- * @return The number.
- */
- int getNumber();
-
-
- /**
- * - * The page height in PDF user units. - *- * - *
int32 height = 2;
- *
- * @return The height.
- */
- int getHeight();
-
-
- /**
- * - * The page width in PDF user units. - *- * - *
int32 width = 3;
- *
- * @return The width.
- */
- int getWidth();
-
-
- /**
- * - * The page rotation as specified by the PDF. - *- * - *
int32 rotation = 4;
- *
- * @return The rotation.
- */
- int getRotation();
-
- }
-
- /**
- * Protobuf type {@code DocumentPage}
- */
- public static final class DocumentPage extends com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:DocumentPage)
- DocumentPageOrBuilder {
-
- private static final long serialVersionUID = 0L;
-
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 27,
- /* patch= */ 1,
- /* suffix= */ "", DocumentPage.class.getName());
- }
-
- // Use DocumentPage.newBuilder() to construct.
- private DocumentPage(com.google.protobuf.GeneratedMessage.Builder> builder) {
-
- super(builder);
- }
-
-
- private DocumentPage() {
-
- }
-
-
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-
- return DocumentPageProto.internal_static_DocumentPage_descriptor;
- }
-
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
-
- return DocumentPageProto.internal_static_DocumentPage_fieldAccessorTable.ensureFieldAccessorsInitialized(DocumentPageProto.DocumentPage.class,
- DocumentPageProto.DocumentPage.Builder.class);
- }
-
-
- public static final int NUMBER_FIELD_NUMBER = 1;
- private int number_ = 0;
-
-
- /**
- * - * The page number, starting with 1. - *- * - *
int32 number = 1;
- *
- * @return The number.
- */
- @java.lang.Override
- public int getNumber() {
-
- return number_;
- }
-
-
- public static final int HEIGHT_FIELD_NUMBER = 2;
- private int height_ = 0;
-
-
- /**
- * - * The page height in PDF user units. - *- * - *
int32 height = 2;
- *
- * @return The height.
- */
- @java.lang.Override
- public int getHeight() {
-
- return height_;
- }
-
-
- public static final int WIDTH_FIELD_NUMBER = 3;
- private int width_ = 0;
-
-
- /**
- * - * The page width in PDF user units. - *- * - *
int32 width = 3;
- *
- * @return The width.
- */
- @java.lang.Override
- public int getWidth() {
-
- return width_;
- }
-
-
- public static final int ROTATION_FIELD_NUMBER = 4;
- private int rotation_ = 0;
-
-
- /**
- * - * The page rotation as specified by the PDF. - *- * - *
int32 rotation = 4;
- *
- * @return The rotation.
- */
- @java.lang.Override
- public int getRotation() {
-
- return rotation_;
- }
-
-
- 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;
- }
-
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-
- if (number_ != 0) {
- output.writeInt32(1, number_);
- }
- if (height_ != 0) {
- output.writeInt32(2, height_);
- }
- if (width_ != 0) {
- output.writeInt32(3, width_);
- }
- if (rotation_ != 0) {
- output.writeInt32(4, rotation_);
- }
- getUnknownFields().writeTo(output);
- }
-
-
- @java.lang.Override
- public int getSerializedSize() {
-
- int size = memoizedSize;
- if (size != -1) {
- return size;
- }
-
- size = 0;
- if (number_ != 0) {
- size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, number_);
- }
- if (height_ != 0) {
- size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, height_);
- }
- if (width_ != 0) {
- size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, width_);
- }
- if (rotation_ != 0) {
- size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, rotation_);
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
-
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof DocumentPageProto.DocumentPage)) {
- return super.equals(obj);
- }
- DocumentPageProto.DocumentPage other = (DocumentPageProto.DocumentPage) obj;
-
- if (getNumber() != other.getNumber()) {
- return false;
- }
- if (getHeight() != other.getHeight()) {
- return false;
- }
- if (getWidth() != other.getWidth()) {
- return false;
- }
- if (getRotation() != other.getRotation()) {
- return false;
- }
- if (!getUnknownFields().equals(other.getUnknownFields())) {
- return false;
- }
- return true;
- }
-
-
- @java.lang.Override
- public int hashCode() {
-
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- hash = (37 * hash) + NUMBER_FIELD_NUMBER;
- hash = (53 * hash) + getNumber();
- hash = (37 * hash) + HEIGHT_FIELD_NUMBER;
- hash = (53 * hash) + getHeight();
- hash = (37 * hash) + WIDTH_FIELD_NUMBER;
- hash = (53 * hash) + getWidth();
- hash = (37 * hash) + ROTATION_FIELD_NUMBER;
- hash = (53 * hash) + getRotation();
- hash = (29 * hash) + getUnknownFields().hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
-
- public static DocumentPageProto.DocumentPage parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
-
- return PARSER.parseFrom(data);
- }
-
-
- public static DocumentPageProto.DocumentPage parseFrom(java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
-
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
-
- public static DocumentPageProto.DocumentPage parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException {
-
- return PARSER.parseFrom(data);
- }
-
-
- public static DocumentPageProto.DocumentPage parseFrom(com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
-
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
-
- public static DocumentPageProto.DocumentPage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
-
- return PARSER.parseFrom(data);
- }
-
-
- public static DocumentPageProto.DocumentPage parseFrom(byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
-
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
-
- public static DocumentPageProto.DocumentPage parseFrom(java.io.InputStream input) throws java.io.IOException {
-
- return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
- }
-
-
- public static DocumentPageProto.DocumentPage parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
-
- return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input, extensionRegistry);
- }
-
-
- public static DocumentPageProto.DocumentPage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
-
- return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
- }
-
-
- public static DocumentPageProto.DocumentPage parseDelimitedFrom(java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
-
- return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
-
-
- public static DocumentPageProto.DocumentPage parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-
- return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
- }
-
-
- public static DocumentPageProto.DocumentPage parseFrom(com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
-
- return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input, extensionRegistry);
- }
-
-
- @java.lang.Override
- public Builder newBuilderForType() {return newBuilder();}
-
-
- public static Builder newBuilder() {
-
- return DEFAULT_INSTANCE.toBuilder();
- }
-
-
- public static Builder newBuilder(DocumentPageProto.DocumentPage 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.GeneratedMessage.BuilderParent parent) {
-
- Builder builder = new Builder(parent);
- return builder;
- }
-
-
- /**
- * Protobuf type {@code DocumentPage}
- */
- public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder- * The page number, starting with 1. - *- * - *
int32 number = 1;
- *
- * @return The number.
- */
- @java.lang.Override
- public int getNumber() {
-
- return number_;
- }
-
-
- /**
- * - * The page number, starting with 1. - *- * - *
int32 number = 1;
- *
- * @param value The number to set.
- * @return This builder for chaining.
- */
- public Builder setNumber(int value) {
-
- number_ = value;
- bitField0_ |= 0x00000001;
- onChanged();
- return this;
- }
-
-
- /**
- * - * The page number, starting with 1. - *- * - *
int32 number = 1;
- *
- * @return This builder for chaining.
- */
- public Builder clearNumber() {
-
- bitField0_ = (bitField0_ & ~0x00000001);
- number_ = 0;
- onChanged();
- return this;
- }
-
-
- private int height_;
-
-
- /**
- * - * The page height in PDF user units. - *- * - *
int32 height = 2;
- *
- * @return The height.
- */
- @java.lang.Override
- public int getHeight() {
-
- return height_;
- }
-
-
- /**
- * - * The page height in PDF user units. - *- * - *
int32 height = 2;
- *
- * @param value The height to set.
- * @return This builder for chaining.
- */
- public Builder setHeight(int value) {
-
- height_ = value;
- bitField0_ |= 0x00000002;
- onChanged();
- return this;
- }
-
-
- /**
- * - * The page height in PDF user units. - *- * - *
int32 height = 2;
- *
- * @return This builder for chaining.
- */
- public Builder clearHeight() {
-
- bitField0_ = (bitField0_ & ~0x00000002);
- height_ = 0;
- onChanged();
- return this;
- }
-
-
- private int width_;
-
-
- /**
- * - * The page width in PDF user units. - *- * - *
int32 width = 3;
- *
- * @return The width.
- */
- @java.lang.Override
- public int getWidth() {
-
- return width_;
- }
-
-
- /**
- * - * The page width in PDF user units. - *- * - *
int32 width = 3;
- *
- * @param value The width to set.
- * @return This builder for chaining.
- */
- public Builder setWidth(int value) {
-
- width_ = value;
- bitField0_ |= 0x00000004;
- onChanged();
- return this;
- }
-
-
- /**
- * - * The page width in PDF user units. - *- * - *
int32 width = 3;
- *
- * @return This builder for chaining.
- */
- public Builder clearWidth() {
-
- bitField0_ = (bitField0_ & ~0x00000004);
- width_ = 0;
- onChanged();
- return this;
- }
-
-
- private int rotation_;
-
-
- /**
- * - * The page rotation as specified by the PDF. - *- * - *
int32 rotation = 4;
- *
- * @return The rotation.
- */
- @java.lang.Override
- public int getRotation() {
-
- return rotation_;
- }
-
-
- /**
- * - * The page rotation as specified by the PDF. - *- * - *
int32 rotation = 4;
- *
- * @param value The rotation to set.
- * @return This builder for chaining.
- */
- public Builder setRotation(int value) {
-
- rotation_ = value;
- bitField0_ |= 0x00000008;
- onChanged();
- return this;
- }
-
-
- /**
- * - * The page rotation as specified by the PDF. - *- * - *
int32 rotation = 4;
- *
- * @return This builder for chaining.
- */
- public Builder clearRotation() {
-
- bitField0_ = (bitField0_ & ~0x00000008);
- rotation_ = 0;
- onChanged();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:DocumentPage)
- }
-
- // @@protoc_insertion_point(class_scope:DocumentPage)
- private static final DocumentPageProto.DocumentPage DEFAULT_INSTANCE;
-
- static {
- DEFAULT_INSTANCE = new DocumentPageProto.DocumentPage();
- }
-
- public static DocumentPageProto.DocumentPage getDefaultInstance() {
-
- return DEFAULT_INSTANCE;
- }
-
-
- private static final com.google.protobuf.Parserrepeated .DocumentPositionData documentPositionData = 1;
- */
- java.util.Listrepeated .DocumentPositionData documentPositionData = 1;
- */
- DocumentPositionData getDocumentPositionData(int index);
-
-
- /**
- * repeated .DocumentPositionData documentPositionData = 1;
- */
- int getDocumentPositionDataCount();
-
-
- /**
- * repeated .DocumentPositionData documentPositionData = 1;
- */
- java.util.List extends DocumentPositionDataOrBuilder> getDocumentPositionDataOrBuilderList();
-
-
- /**
- * repeated .DocumentPositionData documentPositionData = 1;
- */
- DocumentPositionDataOrBuilder getDocumentPositionDataOrBuilder(int index);
-
- }
-
- /**
- * Protobuf type {@code AllDocumentPositionData}
- */
- public static final class AllDocumentPositionData extends com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:AllDocumentPositionData)
- AllDocumentPositionDataOrBuilder {
-
- private static final long serialVersionUID = 0L;
-
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 27,
- /* patch= */ 1,
- /* suffix= */ "", AllDocumentPositionData.class.getName());
- }
-
- // Use AllDocumentPositionData.newBuilder() to construct.
- private AllDocumentPositionData(com.google.protobuf.GeneratedMessage.Builder> builder) {
-
- super(builder);
- }
-
-
- private AllDocumentPositionData() {
-
- documentPositionData_ = java.util.Collections.emptyList();
- }
-
-
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-
- return DocumentPositionDataProto.internal_static_AllDocumentPositionData_descriptor;
- }
-
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
-
- return DocumentPositionDataProto.internal_static_AllDocumentPositionData_fieldAccessorTable.ensureFieldAccessorsInitialized(AllDocumentPositionData.class,
- AllDocumentPositionData.Builder.class);
- }
-
-
- public static final int DOCUMENTPOSITIONDATA_FIELD_NUMBER = 1;
- @SuppressWarnings("serial")
- private java.util.Listrepeated .DocumentPositionData documentPositionData = 1;
- */
- @java.lang.Override
- public java.util.Listrepeated .DocumentPositionData documentPositionData = 1;
- */
- @java.lang.Override
- public java.util.List extends DocumentPositionDataOrBuilder> getDocumentPositionDataOrBuilderList() {
-
- return documentPositionData_;
- }
-
-
- /**
- * repeated .DocumentPositionData documentPositionData = 1;
- */
- @java.lang.Override
- public int getDocumentPositionDataCount() {
-
- return documentPositionData_.size();
- }
-
-
- /**
- * repeated .DocumentPositionData documentPositionData = 1;
- */
- @java.lang.Override
- public DocumentPositionData getDocumentPositionData(int index) {
-
- return documentPositionData_.get(index);
- }
-
-
- /**
- * repeated .DocumentPositionData documentPositionData = 1;
- */
- @java.lang.Override
- public DocumentPositionDataOrBuilder getDocumentPositionDataOrBuilder(int index) {
-
- return documentPositionData_.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;
- }
-
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-
- for (int i = 0; i < documentPositionData_.size(); i++) {
- output.writeMessage(1, documentPositionData_.get(i));
- }
- getUnknownFields().writeTo(output);
- }
-
-
- @java.lang.Override
- public int getSerializedSize() {
-
- int size = memoizedSize;
- if (size != -1) {
- return size;
- }
-
- size = 0;
- for (int i = 0; i < documentPositionData_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, documentPositionData_.get(i));
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
-
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof AllDocumentPositionData)) {
- return super.equals(obj);
- }
- AllDocumentPositionData other = (AllDocumentPositionData) obj;
-
- if (!getDocumentPositionDataList().equals(other.getDocumentPositionDataList())) {
- return false;
- }
- if (!getUnknownFields().equals(other.getUnknownFields())) {
- return false;
- }
- return true;
- }
-
-
- @java.lang.Override
- public int hashCode() {
-
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (getDocumentPositionDataCount() > 0) {
- hash = (37 * hash) + DOCUMENTPOSITIONDATA_FIELD_NUMBER;
- hash = (53 * hash) + getDocumentPositionDataList().hashCode();
- }
- hash = (29 * hash) + getUnknownFields().hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
-
- public static AllDocumentPositionData parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
-
- return PARSER.parseFrom(data);
- }
-
-
- public static AllDocumentPositionData parseFrom(java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
-
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
-
- public static AllDocumentPositionData parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException {
-
- return PARSER.parseFrom(data);
- }
-
-
- public static AllDocumentPositionData parseFrom(com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
-
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
-
- public static AllDocumentPositionData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
-
- return PARSER.parseFrom(data);
- }
-
-
- public static AllDocumentPositionData parseFrom(byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
-
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
-
- public static AllDocumentPositionData parseFrom(java.io.InputStream input) throws java.io.IOException {
-
- return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
- }
-
-
- public static AllDocumentPositionData parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
-
- return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input, extensionRegistry);
- }
-
-
- public static AllDocumentPositionData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
-
- return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
- }
-
-
- public static AllDocumentPositionData parseDelimitedFrom(java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
-
- return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
-
-
- public static AllDocumentPositionData parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-
- return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
- }
-
-
- public static AllDocumentPositionData parseFrom(com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
-
- return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input, extensionRegistry);
- }
-
-
- @java.lang.Override
- public Builder newBuilderForType() {return newBuilder();}
-
-
- public static Builder newBuilder() {
-
- return DEFAULT_INSTANCE.toBuilder();
- }
-
-
- public static Builder newBuilder(AllDocumentPositionData 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.GeneratedMessage.BuilderParent parent) {
-
- Builder builder = new Builder(parent);
- return builder;
- }
-
-
- /**
- * Protobuf type {@code AllDocumentPositionData}
- */
- public static final class Builder extends com.google.protobuf.GeneratedMessage.Builderrepeated .DocumentPositionData documentPositionData = 1;
- */
- public java.util.Listrepeated .DocumentPositionData documentPositionData = 1;
- */
- public int getDocumentPositionDataCount() {
-
- if (documentPositionDataBuilder_ == null) {
- return documentPositionData_.size();
- } else {
- return documentPositionDataBuilder_.getCount();
- }
- }
-
-
- /**
- * repeated .DocumentPositionData documentPositionData = 1;
- */
- public DocumentPositionData getDocumentPositionData(int index) {
-
- if (documentPositionDataBuilder_ == null) {
- return documentPositionData_.get(index);
- } else {
- return documentPositionDataBuilder_.getMessage(index);
- }
- }
-
-
- /**
- * repeated .DocumentPositionData documentPositionData = 1;
- */
- public Builder setDocumentPositionData(int index, DocumentPositionData value) {
-
- if (documentPositionDataBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureDocumentPositionDataIsMutable();
- documentPositionData_.set(index, value);
- onChanged();
- } else {
- documentPositionDataBuilder_.setMessage(index, value);
- }
- return this;
- }
-
-
- /**
- * repeated .DocumentPositionData documentPositionData = 1;
- */
- public Builder setDocumentPositionData(int index, DocumentPositionData.Builder builderForValue) {
-
- if (documentPositionDataBuilder_ == null) {
- ensureDocumentPositionDataIsMutable();
- documentPositionData_.set(index, builderForValue.build());
- onChanged();
- } else {
- documentPositionDataBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
-
-
- /**
- * repeated .DocumentPositionData documentPositionData = 1;
- */
- public Builder addDocumentPositionData(DocumentPositionData value) {
-
- if (documentPositionDataBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureDocumentPositionDataIsMutable();
- documentPositionData_.add(value);
- onChanged();
- } else {
- documentPositionDataBuilder_.addMessage(value);
- }
- return this;
- }
-
-
- /**
- * repeated .DocumentPositionData documentPositionData = 1;
- */
- public Builder addDocumentPositionData(int index, DocumentPositionData value) {
-
- if (documentPositionDataBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureDocumentPositionDataIsMutable();
- documentPositionData_.add(index, value);
- onChanged();
- } else {
- documentPositionDataBuilder_.addMessage(index, value);
- }
- return this;
- }
-
-
- /**
- * repeated .DocumentPositionData documentPositionData = 1;
- */
- public Builder addDocumentPositionData(DocumentPositionData.Builder builderForValue) {
-
- if (documentPositionDataBuilder_ == null) {
- ensureDocumentPositionDataIsMutable();
- documentPositionData_.add(builderForValue.build());
- onChanged();
- } else {
- documentPositionDataBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
-
-
- /**
- * repeated .DocumentPositionData documentPositionData = 1;
- */
- public Builder addDocumentPositionData(int index, DocumentPositionData.Builder builderForValue) {
-
- if (documentPositionDataBuilder_ == null) {
- ensureDocumentPositionDataIsMutable();
- documentPositionData_.add(index, builderForValue.build());
- onChanged();
- } else {
- documentPositionDataBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
-
-
- /**
- * repeated .DocumentPositionData documentPositionData = 1;
- */
- public Builder addAllDocumentPositionData(java.lang.Iterable extends DocumentPositionData> values) {
-
- if (documentPositionDataBuilder_ == null) {
- ensureDocumentPositionDataIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(values, documentPositionData_);
- onChanged();
- } else {
- documentPositionDataBuilder_.addAllMessages(values);
- }
- return this;
- }
-
-
- /**
- * repeated .DocumentPositionData documentPositionData = 1;
- */
- public Builder clearDocumentPositionData() {
-
- if (documentPositionDataBuilder_ == null) {
- documentPositionData_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
- onChanged();
- } else {
- documentPositionDataBuilder_.clear();
- }
- return this;
- }
-
-
- /**
- * repeated .DocumentPositionData documentPositionData = 1;
- */
- public Builder removeDocumentPositionData(int index) {
-
- if (documentPositionDataBuilder_ == null) {
- ensureDocumentPositionDataIsMutable();
- documentPositionData_.remove(index);
- onChanged();
- } else {
- documentPositionDataBuilder_.remove(index);
- }
- return this;
- }
-
-
- /**
- * repeated .DocumentPositionData documentPositionData = 1;
- */
- public DocumentPositionData.Builder getDocumentPositionDataBuilder(int index) {
-
- return getDocumentPositionDataFieldBuilder().getBuilder(index);
- }
-
-
- /**
- * repeated .DocumentPositionData documentPositionData = 1;
- */
- public DocumentPositionDataOrBuilder getDocumentPositionDataOrBuilder(int index) {
-
- if (documentPositionDataBuilder_ == null) {
- return documentPositionData_.get(index);
- } else {
- return documentPositionDataBuilder_.getMessageOrBuilder(index);
- }
- }
-
-
- /**
- * repeated .DocumentPositionData documentPositionData = 1;
- */
- public java.util.List extends DocumentPositionDataOrBuilder> getDocumentPositionDataOrBuilderList() {
-
- if (documentPositionDataBuilder_ != null) {
- return documentPositionDataBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(documentPositionData_);
- }
- }
-
-
- /**
- * repeated .DocumentPositionData documentPositionData = 1;
- */
- public DocumentPositionData.Builder addDocumentPositionDataBuilder() {
-
- return getDocumentPositionDataFieldBuilder().addBuilder(DocumentPositionData.getDefaultInstance());
- }
-
-
- /**
- * repeated .DocumentPositionData documentPositionData = 1;
- */
- public DocumentPositionData.Builder addDocumentPositionDataBuilder(int index) {
-
- return getDocumentPositionDataFieldBuilder().addBuilder(index, DocumentPositionData.getDefaultInstance());
- }
-
-
- /**
- * repeated .DocumentPositionData documentPositionData = 1;
- */
- public java.util.List- * Identifier of the text block. - *- * - *
int64 id = 1;
- *
- * @return The id.
- */
- long getId();
-
-
- /**
- * - * For each string coordinate in the search text of the text block, the array contains an entry relating the string coordinate to the position coordinate. - * This is required due to the text and position coordinates not being equal. - *- * - *
repeated int32 stringIdxToPositionIdx = 2;
- *
- * @return A list containing the stringIdxToPositionIdx.
- */
- java.util.List- * For each string coordinate in the search text of the text block, the array contains an entry relating the string coordinate to the position coordinate. - * This is required due to the text and position coordinates not being equal. - *- * - *
repeated int32 stringIdxToPositionIdx = 2;
- *
- * @return The count of stringIdxToPositionIdx.
- */
- int getStringIdxToPositionIdxCount();
-
-
- /**
- * - * For each string coordinate in the search text of the text block, the array contains an entry relating the string coordinate to the position coordinate. - * This is required due to the text and position coordinates not being equal. - *- * - *
repeated int32 stringIdxToPositionIdx = 2;
- *
- * @param index The index of the element to return.
- * @return The stringIdxToPositionIdx at the given index.
- */
- int getStringIdxToPositionIdx(int index);
-
-
- /**
- * - * The bounding box for each glyph as a rectangle. This matrix is of size (n,4), where n is the number of glyphs in the text block. - * The second dimension specifies the rectangle with the value x, y, width, height, with x, y specifying the lower left corner. - * In order to access this information, the stringIdxToPositionIdx array must be used to transform the coordinates. - *- * - *
repeated .DocumentPositionData.Position positions = 3;
- */
- java.util.List- * The bounding box for each glyph as a rectangle. This matrix is of size (n,4), where n is the number of glyphs in the text block. - * The second dimension specifies the rectangle with the value x, y, width, height, with x, y specifying the lower left corner. - * In order to access this information, the stringIdxToPositionIdx array must be used to transform the coordinates. - *- * - *
repeated .DocumentPositionData.Position positions = 3;
- */
- DocumentPositionData.Position getPositions(int index);
-
-
- /**
- * - * The bounding box for each glyph as a rectangle. This matrix is of size (n,4), where n is the number of glyphs in the text block. - * The second dimension specifies the rectangle with the value x, y, width, height, with x, y specifying the lower left corner. - * In order to access this information, the stringIdxToPositionIdx array must be used to transform the coordinates. - *- * - *
repeated .DocumentPositionData.Position positions = 3;
- */
- int getPositionsCount();
-
-
- /**
- * - * The bounding box for each glyph as a rectangle. This matrix is of size (n,4), where n is the number of glyphs in the text block. - * The second dimension specifies the rectangle with the value x, y, width, height, with x, y specifying the lower left corner. - * In order to access this information, the stringIdxToPositionIdx array must be used to transform the coordinates. - *- * - *
repeated .DocumentPositionData.Position positions = 3;
- */
- java.util.List extends DocumentPositionData.PositionOrBuilder> getPositionsOrBuilderList();
-
-
- /**
- * - * The bounding box for each glyph as a rectangle. This matrix is of size (n,4), where n is the number of glyphs in the text block. - * The second dimension specifies the rectangle with the value x, y, width, height, with x, y specifying the lower left corner. - * In order to access this information, the stringIdxToPositionIdx array must be used to transform the coordinates. - *- * - *
repeated .DocumentPositionData.Position positions = 3;
- */
- DocumentPositionData.PositionOrBuilder getPositionsOrBuilder(int index);
-
- }
-
- /**
- * Protobuf type {@code DocumentPositionData}
- */
- public static final class DocumentPositionData extends com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:DocumentPositionData)
- DocumentPositionDataOrBuilder {
-
- private static final long serialVersionUID = 0L;
-
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 27,
- /* patch= */ 1,
- /* suffix= */ "", DocumentPositionData.class.getName());
- }
-
- // Use DocumentPositionData.newBuilder() to construct.
- private DocumentPositionData(com.google.protobuf.GeneratedMessage.Builder> builder) {
-
- super(builder);
- }
-
-
- private DocumentPositionData() {
-
- stringIdxToPositionIdx_ = emptyIntList();
- positions_ = java.util.Collections.emptyList();
- }
-
-
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-
- return DocumentPositionDataProto.internal_static_DocumentPositionData_descriptor;
- }
-
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
-
- return DocumentPositionDataProto.internal_static_DocumentPositionData_fieldAccessorTable.ensureFieldAccessorsInitialized(DocumentPositionData.class,
- DocumentPositionData.Builder.class);
- }
-
-
- public interface PositionOrBuilder extends
- // @@protoc_insertion_point(interface_extends:DocumentPositionData.Position)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * repeated float value = 1;
- *
- * @return A list containing the value.
- */
- java.util.Listrepeated float value = 1;
- *
- * @return The count of value.
- */
- int getValueCount();
-
-
- /**
- * repeated float value = 1;
- *
- * @param index The index of the element to return.
- * @return The value at the given index.
- */
- float getValue(int index);
-
- }
-
- /**
- * - * Definition of a BoundingBox that contains x, y, width, and height. - *- *
- * Protobuf type {@code DocumentPositionData.Position}
- */
- public static final class Position extends com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:DocumentPositionData.Position)
- PositionOrBuilder {
-
- private static final long serialVersionUID = 0L;
-
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 27,
- /* patch= */ 1,
- /* suffix= */ "", Position.class.getName());
- }
-
- // Use Position.newBuilder() to construct.
- private Position(com.google.protobuf.GeneratedMessage.Builder> builder) {
-
- super(builder);
- }
-
-
- private Position() {
-
- value_ = emptyFloatList();
- }
-
-
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-
- return DocumentPositionDataProto.internal_static_DocumentPositionData_Position_descriptor;
- }
-
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
-
- return DocumentPositionDataProto.internal_static_DocumentPositionData_Position_fieldAccessorTable.ensureFieldAccessorsInitialized(DocumentPositionData.Position.class,
- DocumentPositionData.Position.Builder.class);
- }
-
-
- public static final int VALUE_FIELD_NUMBER = 1;
- @SuppressWarnings("serial")
- private com.google.protobuf.Internal.FloatList value_ = emptyFloatList();
-
-
- /**
- *
- * Protobuf type {@code DocumentPositionData.Position}
- */
- public static final class Builder extends com.google.protobuf.GeneratedMessage.Builderrepeated float value = 1;
- *
- * @return A list containing the value.
- */
- @java.lang.Override
- public java.util.Listrepeated float value = 1;
- *
- * @return The count of value.
- */
- public int getValueCount() {
-
- return value_.size();
- }
-
-
- /**
- * repeated float value = 1;
- *
- * @param index The index of the element to return.
- * @return The value at the given index.
- */
- public float getValue(int index) {
-
- return value_.getFloat(index);
- }
-
-
- private int valueMemoizedSerializedSize = -1;
-
- 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;
- }
-
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-
- getSerializedSize();
- if (getValueList().size() > 0) {
- output.writeUInt32NoTag(10);
- output.writeUInt32NoTag(valueMemoizedSerializedSize);
- }
- for (int i = 0; i < value_.size(); i++) {
- output.writeFloatNoTag(value_.getFloat(i));
- }
- getUnknownFields().writeTo(output);
- }
-
-
- @java.lang.Override
- public int getSerializedSize() {
-
- int size = memoizedSize;
- if (size != -1) {
- return size;
- }
-
- size = 0;
- {
- int dataSize = 0;
- dataSize = 4 * getValueList().size();
- size += dataSize;
- if (!getValueList().isEmpty()) {
- size += 1;
- size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize);
- }
- valueMemoizedSerializedSize = dataSize;
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
-
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof DocumentPositionData.Position)) {
- return super.equals(obj);
- }
- DocumentPositionData.Position other = (DocumentPositionData.Position) obj;
-
- if (!getValueList().equals(other.getValueList())) {
- return false;
- }
- if (!getUnknownFields().equals(other.getUnknownFields())) {
- return false;
- }
- return true;
- }
-
-
- @java.lang.Override
- public int hashCode() {
-
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (getValueCount() > 0) {
- hash = (37 * hash) + VALUE_FIELD_NUMBER;
- hash = (53 * hash) + getValueList().hashCode();
- }
- hash = (29 * hash) + getUnknownFields().hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
-
- public static DocumentPositionData.Position parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
-
- return PARSER.parseFrom(data);
- }
-
-
- public static DocumentPositionData.Position parseFrom(java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
-
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
-
- public static DocumentPositionData.Position parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException {
-
- return PARSER.parseFrom(data);
- }
-
-
- public static DocumentPositionData.Position parseFrom(com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
-
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
-
- public static DocumentPositionData.Position parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
-
- return PARSER.parseFrom(data);
- }
-
-
- public static DocumentPositionData.Position parseFrom(byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
-
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
-
- public static DocumentPositionData.Position parseFrom(java.io.InputStream input) throws java.io.IOException {
-
- return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
- }
-
-
- public static DocumentPositionData.Position parseFrom(java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
-
- return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input, extensionRegistry);
- }
-
-
- public static DocumentPositionData.Position parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
-
- return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
- }
-
-
- public static DocumentPositionData.Position parseDelimitedFrom(java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
-
- return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
-
-
- public static DocumentPositionData.Position parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-
- return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
- }
-
-
- public static DocumentPositionData.Position parseFrom(com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
-
- return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input, extensionRegistry);
- }
-
-
- @java.lang.Override
- public Builder newBuilderForType() {return newBuilder();}
-
-
- public static Builder newBuilder() {
-
- return DEFAULT_INSTANCE.toBuilder();
- }
-
-
- public static Builder newBuilder(DocumentPositionData.Position 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.GeneratedMessage.BuilderParent parent) {
-
- Builder builder = new Builder(parent);
- return builder;
- }
-
-
- /**
- *
- * Definition of a BoundingBox that contains x, y, width, and height.
- *
- * repeated float value = 1;
- *
- * @return A list containing the value.
- */
- public java.util.Listrepeated float value = 1;
- *
- * @return The count of value.
- */
- public int getValueCount() {
-
- return value_.size();
- }
-
-
- /**
- * repeated float value = 1;
- *
- * @param index The index of the element to return.
- * @return The value at the given index.
- */
- public float getValue(int index) {
-
- return value_.getFloat(index);
- }
-
-
- /**
- * repeated float value = 1;
- *
- * @param index The index to set the value at.
- * @param value The value to set.
- * @return This builder for chaining.
- */
- public Builder setValue(int index, float value) {
-
- ensureValueIsMutable();
- value_.setFloat(index, value);
- bitField0_ |= 0x00000001;
- onChanged();
- return this;
- }
-
-
- /**
- * repeated float value = 1;
- *
- * @param value The value to add.
- * @return This builder for chaining.
- */
- public Builder addValue(float value) {
-
- ensureValueIsMutable();
- value_.addFloat(value);
- bitField0_ |= 0x00000001;
- onChanged();
- return this;
- }
-
-
- /**
- * repeated float value = 1;
- *
- * @param values The value to add.
- * @return This builder for chaining.
- */
- public Builder addAllValue(java.lang.Iterable extends java.lang.Float> values) {
-
- ensureValueIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(values, value_);
- bitField0_ |= 0x00000001;
- onChanged();
- return this;
- }
-
-
- /**
- * repeated float value = 1;
- *
- * @return This builder for chaining.
- */
- public Builder clearValue() {
-
- value_ = emptyFloatList();
- bitField0_ = (bitField0_ & ~0x00000001);
- onChanged();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:DocumentPositionData.Position)
- }
-
- // @@protoc_insertion_point(class_scope:DocumentPositionData.Position)
- private static final DocumentPositionData.Position DEFAULT_INSTANCE;
-
- static {
- DEFAULT_INSTANCE = new DocumentPositionData.Position();
- }
-
- public static DocumentPositionData.Position getDefaultInstance() {
-
- return DEFAULT_INSTANCE;
- }
-
-
- private static final com.google.protobuf.Parser
- * Identifier of the text block.
- *
- *
- * int64 id = 1;
- *
- * @return The id.
- */
- @java.lang.Override
- public long getId() {
-
- return id_;
- }
-
-
- public static final int STRINGIDXTOPOSITIONIDX_FIELD_NUMBER = 2;
- @SuppressWarnings("serial")
- private com.google.protobuf.Internal.IntList stringIdxToPositionIdx_ = emptyIntList();
-
-
- /**
- *
- * For each string coordinate in the search text of the text block, the array contains an entry relating the string coordinate to the position coordinate.
- * This is required due to the text and position coordinates not being equal.
- *
- *
- * repeated int32 stringIdxToPositionIdx = 2;
- *
- * @return A list containing the stringIdxToPositionIdx.
- */
- @java.lang.Override
- public java.util.List
- * For each string coordinate in the search text of the text block, the array contains an entry relating the string coordinate to the position coordinate.
- * This is required due to the text and position coordinates not being equal.
- *
- *
- * repeated int32 stringIdxToPositionIdx = 2;
- *
- * @return The count of stringIdxToPositionIdx.
- */
- public int getStringIdxToPositionIdxCount() {
-
- return stringIdxToPositionIdx_.size();
- }
-
-
- /**
- *
- * For each string coordinate in the search text of the text block, the array contains an entry relating the string coordinate to the position coordinate.
- * This is required due to the text and position coordinates not being equal.
- *
- *
- * repeated int32 stringIdxToPositionIdx = 2;
- *
- * @param index The index of the element to return.
- * @return The stringIdxToPositionIdx at the given index.
- */
- public int getStringIdxToPositionIdx(int index) {
-
- return stringIdxToPositionIdx_.getInt(index);
- }
-
-
- private int stringIdxToPositionIdxMemoizedSerializedSize = -1;
-
- public static final int POSITIONS_FIELD_NUMBER = 3;
- @SuppressWarnings("serial")
- private java.util.List
- * The bounding box for each glyph as a rectangle. This matrix is of size (n,4), where n is the number of glyphs in the text block.
- * The second dimension specifies the rectangle with the value x, y, width, height, with x, y specifying the lower left corner.
- * In order to access this information, the stringIdxToPositionIdx array must be used to transform the coordinates.
- *
- *
- * repeated .DocumentPositionData.Position positions = 3;
- */
- @java.lang.Override
- public java.util.List
- * The bounding box for each glyph as a rectangle. This matrix is of size (n,4), where n is the number of glyphs in the text block.
- * The second dimension specifies the rectangle with the value x, y, width, height, with x, y specifying the lower left corner.
- * In order to access this information, the stringIdxToPositionIdx array must be used to transform the coordinates.
- *
- *
- * repeated .DocumentPositionData.Position positions = 3;
- */
- @java.lang.Override
- public java.util.List extends DocumentPositionData.PositionOrBuilder> getPositionsOrBuilderList() {
-
- return positions_;
- }
-
-
- /**
- *
- * The bounding box for each glyph as a rectangle. This matrix is of size (n,4), where n is the number of glyphs in the text block.
- * The second dimension specifies the rectangle with the value x, y, width, height, with x, y specifying the lower left corner.
- * In order to access this information, the stringIdxToPositionIdx array must be used to transform the coordinates.
- *
- *
- * repeated .DocumentPositionData.Position positions = 3;
- */
- @java.lang.Override
- public int getPositionsCount() {
-
- return positions_.size();
- }
-
-
- /**
- *
- * The bounding box for each glyph as a rectangle. This matrix is of size (n,4), where n is the number of glyphs in the text block.
- * The second dimension specifies the rectangle with the value x, y, width, height, with x, y specifying the lower left corner.
- * In order to access this information, the stringIdxToPositionIdx array must be used to transform the coordinates.
- *
- *
- * repeated .DocumentPositionData.Position positions = 3;
- */
- @java.lang.Override
- public DocumentPositionData.Position getPositions(int index) {
-
- return positions_.get(index);
- }
-
-
- /**
- *
- * The bounding box for each glyph as a rectangle. This matrix is of size (n,4), where n is the number of glyphs in the text block.
- * The second dimension specifies the rectangle with the value x, y, width, height, with x, y specifying the lower left corner.
- * In order to access this information, the stringIdxToPositionIdx array must be used to transform the coordinates.
- *
- *
- * repeated .DocumentPositionData.Position positions = 3;
- */
- @java.lang.Override
- public DocumentPositionData.PositionOrBuilder getPositionsOrBuilder(int index) {
-
- return positions_.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;
- }
-
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-
- getSerializedSize();
- if (id_ != 0L) {
- output.writeInt64(1, id_);
- }
- if (getStringIdxToPositionIdxList().size() > 0) {
- output.writeUInt32NoTag(18);
- output.writeUInt32NoTag(stringIdxToPositionIdxMemoizedSerializedSize);
- }
- for (int i = 0; i < stringIdxToPositionIdx_.size(); i++) {
- output.writeInt32NoTag(stringIdxToPositionIdx_.getInt(i));
- }
- for (int i = 0; i < positions_.size(); i++) {
- output.writeMessage(3, positions_.get(i));
- }
- getUnknownFields().writeTo(output);
- }
-
-
- @java.lang.Override
- public int getSerializedSize() {
-
- int size = memoizedSize;
- if (size != -1) {
- return size;
- }
-
- size = 0;
- if (id_ != 0L) {
- size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, id_);
- }
- {
- int dataSize = 0;
- for (int i = 0; i < stringIdxToPositionIdx_.size(); i++) {
- dataSize += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(stringIdxToPositionIdx_.getInt(i));
- }
- size += dataSize;
- if (!getStringIdxToPositionIdxList().isEmpty()) {
- size += 1;
- size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize);
- }
- stringIdxToPositionIdxMemoizedSerializedSize = dataSize;
- }
- for (int i = 0; i < positions_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, positions_.get(i));
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
-
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof DocumentPositionData)) {
- return super.equals(obj);
- }
- DocumentPositionData other = (DocumentPositionData) obj;
-
- if (getId() != other.getId()) {
- return false;
- }
- if (!getStringIdxToPositionIdxList().equals(other.getStringIdxToPositionIdxList())) {
- return false;
- }
- if (!getPositionsList().equals(other.getPositionsList())) {
- return false;
- }
- if (!getUnknownFields().equals(other.getUnknownFields())) {
- return false;
- }
- return true;
- }
-
-
- @java.lang.Override
- public int hashCode() {
-
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- hash = (37 * hash) + ID_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getId());
- if (getStringIdxToPositionIdxCount() > 0) {
- hash = (37 * hash) + STRINGIDXTOPOSITIONIDX_FIELD_NUMBER;
- hash = (53 * hash) + getStringIdxToPositionIdxList().hashCode();
- }
- if (getPositionsCount() > 0) {
- hash = (37 * hash) + POSITIONS_FIELD_NUMBER;
- hash = (53 * hash) + getPositionsList().hashCode();
- }
- hash = (29 * hash) + getUnknownFields().hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
-
- public static DocumentPositionData parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
-
- return PARSER.parseFrom(data);
- }
-
-
- public static DocumentPositionData parseFrom(java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
-
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
-
- public static DocumentPositionData parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException {
-
- return PARSER.parseFrom(data);
- }
-
-
- public static DocumentPositionData parseFrom(com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
-
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
-
- public static DocumentPositionData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
-
- return PARSER.parseFrom(data);
- }
-
-
- public static DocumentPositionData parseFrom(byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
-
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
-
- public static DocumentPositionData parseFrom(java.io.InputStream input) throws java.io.IOException {
-
- return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
- }
-
-
- public static DocumentPositionData parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
-
- return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input, extensionRegistry);
- }
-
-
- public static DocumentPositionData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
-
- return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
- }
-
-
- public static DocumentPositionData parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
-
- return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
-
-
- public static DocumentPositionData parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-
- return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
- }
-
-
- public static DocumentPositionData parseFrom(com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
-
- return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input, extensionRegistry);
- }
-
-
- @java.lang.Override
- public Builder newBuilderForType() {return newBuilder();}
-
-
- public static Builder newBuilder() {
-
- return DEFAULT_INSTANCE.toBuilder();
- }
-
-
- public static Builder newBuilder(DocumentPositionData 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.GeneratedMessage.BuilderParent parent) {
-
- Builder builder = new Builder(parent);
- return builder;
- }
-
-
- /**
- * Protobuf type {@code DocumentPositionData}
- */
- public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
- * Identifier of the text block.
- *
- *
- * int64 id = 1;
- *
- * @return The id.
- */
- @java.lang.Override
- public long getId() {
-
- return id_;
- }
-
-
- /**
- *
- * Identifier of the text block.
- *
- *
- * int64 id = 1;
- *
- * @param value The id to set.
- * @return This builder for chaining.
- */
- public Builder setId(long value) {
-
- id_ = value;
- bitField0_ |= 0x00000001;
- onChanged();
- return this;
- }
-
-
- /**
- *
- * Identifier of the text block.
- *
- *
- * int64 id = 1;
- *
- * @return This builder for chaining.
- */
- public Builder clearId() {
-
- bitField0_ = (bitField0_ & ~0x00000001);
- id_ = 0L;
- onChanged();
- return this;
- }
-
-
- private com.google.protobuf.Internal.IntList stringIdxToPositionIdx_ = emptyIntList();
-
-
- private void ensureStringIdxToPositionIdxIsMutable() {
-
- if (!stringIdxToPositionIdx_.isModifiable()) {
- stringIdxToPositionIdx_ = makeMutableCopy(stringIdxToPositionIdx_);
- }
- bitField0_ |= 0x00000002;
- }
-
-
- /**
- *
- * For each string coordinate in the search text of the text block, the array contains an entry relating the string coordinate to the position coordinate.
- * This is required due to the text and position coordinates not being equal.
- *
- *
- * repeated int32 stringIdxToPositionIdx = 2;
- *
- * @return A list containing the stringIdxToPositionIdx.
- */
- public java.util.List
- * For each string coordinate in the search text of the text block, the array contains an entry relating the string coordinate to the position coordinate.
- * This is required due to the text and position coordinates not being equal.
- *
- *
- * repeated int32 stringIdxToPositionIdx = 2;
- *
- * @return The count of stringIdxToPositionIdx.
- */
- public int getStringIdxToPositionIdxCount() {
-
- return stringIdxToPositionIdx_.size();
- }
-
-
- /**
- *
- * For each string coordinate in the search text of the text block, the array contains an entry relating the string coordinate to the position coordinate.
- * This is required due to the text and position coordinates not being equal.
- *
- *
- * repeated int32 stringIdxToPositionIdx = 2;
- *
- * @param index The index of the element to return.
- * @return The stringIdxToPositionIdx at the given index.
- */
- public int getStringIdxToPositionIdx(int index) {
-
- return stringIdxToPositionIdx_.getInt(index);
- }
-
-
- /**
- *
- * For each string coordinate in the search text of the text block, the array contains an entry relating the string coordinate to the position coordinate.
- * This is required due to the text and position coordinates not being equal.
- *
- *
- * repeated int32 stringIdxToPositionIdx = 2;
- *
- * @param index The index to set the value at.
- * @param value The stringIdxToPositionIdx to set.
- * @return This builder for chaining.
- */
- public Builder setStringIdxToPositionIdx(int index, int value) {
-
- ensureStringIdxToPositionIdxIsMutable();
- stringIdxToPositionIdx_.setInt(index, value);
- bitField0_ |= 0x00000002;
- onChanged();
- return this;
- }
-
-
- /**
- *
- * For each string coordinate in the search text of the text block, the array contains an entry relating the string coordinate to the position coordinate.
- * This is required due to the text and position coordinates not being equal.
- *
- *
- * repeated int32 stringIdxToPositionIdx = 2;
- *
- * @param value The stringIdxToPositionIdx to add.
- * @return This builder for chaining.
- */
- public Builder addStringIdxToPositionIdx(int value) {
-
- ensureStringIdxToPositionIdxIsMutable();
- stringIdxToPositionIdx_.addInt(value);
- bitField0_ |= 0x00000002;
- onChanged();
- return this;
- }
-
-
- /**
- *
- * For each string coordinate in the search text of the text block, the array contains an entry relating the string coordinate to the position coordinate.
- * This is required due to the text and position coordinates not being equal.
- *
- *
- * repeated int32 stringIdxToPositionIdx = 2;
- *
- * @param values The stringIdxToPositionIdx to add.
- * @return This builder for chaining.
- */
- public Builder addAllStringIdxToPositionIdx(java.lang.Iterable extends java.lang.Integer> values) {
-
- ensureStringIdxToPositionIdxIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(values, stringIdxToPositionIdx_);
- bitField0_ |= 0x00000002;
- onChanged();
- return this;
- }
-
-
- /**
- *
- * For each string coordinate in the search text of the text block, the array contains an entry relating the string coordinate to the position coordinate.
- * This is required due to the text and position coordinates not being equal.
- *
- *
- * repeated int32 stringIdxToPositionIdx = 2;
- *
- * @return This builder for chaining.
- */
- public Builder clearStringIdxToPositionIdx() {
-
- stringIdxToPositionIdx_ = emptyIntList();
- bitField0_ = (bitField0_ & ~0x00000002);
- onChanged();
- return this;
- }
-
-
- private java.util.List
- * The bounding box for each glyph as a rectangle. This matrix is of size (n,4), where n is the number of glyphs in the text block.
- * The second dimension specifies the rectangle with the value x, y, width, height, with x, y specifying the lower left corner.
- * In order to access this information, the stringIdxToPositionIdx array must be used to transform the coordinates.
- *
- *
- * repeated .DocumentPositionData.Position positions = 3;
- */
- public java.util.List
- * The bounding box for each glyph as a rectangle. This matrix is of size (n,4), where n is the number of glyphs in the text block.
- * The second dimension specifies the rectangle with the value x, y, width, height, with x, y specifying the lower left corner.
- * In order to access this information, the stringIdxToPositionIdx array must be used to transform the coordinates.
- *
- *
- * repeated .DocumentPositionData.Position positions = 3;
- */
- public int getPositionsCount() {
-
- if (positionsBuilder_ == null) {
- return positions_.size();
- } else {
- return positionsBuilder_.getCount();
- }
- }
-
-
- /**
- *
- * The bounding box for each glyph as a rectangle. This matrix is of size (n,4), where n is the number of glyphs in the text block.
- * The second dimension specifies the rectangle with the value x, y, width, height, with x, y specifying the lower left corner.
- * In order to access this information, the stringIdxToPositionIdx array must be used to transform the coordinates.
- *
- *
- * repeated .DocumentPositionData.Position positions = 3;
- */
- public DocumentPositionData.Position getPositions(int index) {
-
- if (positionsBuilder_ == null) {
- return positions_.get(index);
- } else {
- return positionsBuilder_.getMessage(index);
- }
- }
-
-
- /**
- *
- * The bounding box for each glyph as a rectangle. This matrix is of size (n,4), where n is the number of glyphs in the text block.
- * The second dimension specifies the rectangle with the value x, y, width, height, with x, y specifying the lower left corner.
- * In order to access this information, the stringIdxToPositionIdx array must be used to transform the coordinates.
- *
- *
- * repeated .DocumentPositionData.Position positions = 3;
- */
- public Builder setPositions(int index, DocumentPositionData.Position value) {
-
- if (positionsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensurePositionsIsMutable();
- positions_.set(index, value);
- onChanged();
- } else {
- positionsBuilder_.setMessage(index, value);
- }
- return this;
- }
-
-
- /**
- *
- * The bounding box for each glyph as a rectangle. This matrix is of size (n,4), where n is the number of glyphs in the text block.
- * The second dimension specifies the rectangle with the value x, y, width, height, with x, y specifying the lower left corner.
- * In order to access this information, the stringIdxToPositionIdx array must be used to transform the coordinates.
- *
- *
- * repeated .DocumentPositionData.Position positions = 3;
- */
- public Builder setPositions(int index, DocumentPositionData.Position.Builder builderForValue) {
-
- if (positionsBuilder_ == null) {
- ensurePositionsIsMutable();
- positions_.set(index, builderForValue.build());
- onChanged();
- } else {
- positionsBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
-
-
- /**
- *
- * The bounding box for each glyph as a rectangle. This matrix is of size (n,4), where n is the number of glyphs in the text block.
- * The second dimension specifies the rectangle with the value x, y, width, height, with x, y specifying the lower left corner.
- * In order to access this information, the stringIdxToPositionIdx array must be used to transform the coordinates.
- *
- *
- * repeated .DocumentPositionData.Position positions = 3;
- */
- public Builder addPositions(DocumentPositionData.Position value) {
-
- if (positionsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensurePositionsIsMutable();
- positions_.add(value);
- onChanged();
- } else {
- positionsBuilder_.addMessage(value);
- }
- return this;
- }
-
-
- /**
- *
- * The bounding box for each glyph as a rectangle. This matrix is of size (n,4), where n is the number of glyphs in the text block.
- * The second dimension specifies the rectangle with the value x, y, width, height, with x, y specifying the lower left corner.
- * In order to access this information, the stringIdxToPositionIdx array must be used to transform the coordinates.
- *
- *
- * repeated .DocumentPositionData.Position positions = 3;
- */
- public Builder addPositions(int index, DocumentPositionData.Position value) {
-
- if (positionsBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensurePositionsIsMutable();
- positions_.add(index, value);
- onChanged();
- } else {
- positionsBuilder_.addMessage(index, value);
- }
- return this;
- }
-
-
- /**
- *
- * The bounding box for each glyph as a rectangle. This matrix is of size (n,4), where n is the number of glyphs in the text block.
- * The second dimension specifies the rectangle with the value x, y, width, height, with x, y specifying the lower left corner.
- * In order to access this information, the stringIdxToPositionIdx array must be used to transform the coordinates.
- *
- *
- * repeated .DocumentPositionData.Position positions = 3;
- */
- public Builder addPositions(DocumentPositionData.Position.Builder builderForValue) {
-
- if (positionsBuilder_ == null) {
- ensurePositionsIsMutable();
- positions_.add(builderForValue.build());
- onChanged();
- } else {
- positionsBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
-
-
- /**
- *
- * The bounding box for each glyph as a rectangle. This matrix is of size (n,4), where n is the number of glyphs in the text block.
- * The second dimension specifies the rectangle with the value x, y, width, height, with x, y specifying the lower left corner.
- * In order to access this information, the stringIdxToPositionIdx array must be used to transform the coordinates.
- *
- *
- * repeated .DocumentPositionData.Position positions = 3;
- */
- public Builder addPositions(int index, DocumentPositionData.Position.Builder builderForValue) {
-
- if (positionsBuilder_ == null) {
- ensurePositionsIsMutable();
- positions_.add(index, builderForValue.build());
- onChanged();
- } else {
- positionsBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
-
-
- /**
- *
- * The bounding box for each glyph as a rectangle. This matrix is of size (n,4), where n is the number of glyphs in the text block.
- * The second dimension specifies the rectangle with the value x, y, width, height, with x, y specifying the lower left corner.
- * In order to access this information, the stringIdxToPositionIdx array must be used to transform the coordinates.
- *
- *
- * repeated .DocumentPositionData.Position positions = 3;
- */
- public Builder addAllPositions(java.lang.Iterable extends DocumentPositionData.Position> values) {
-
- if (positionsBuilder_ == null) {
- ensurePositionsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(values, positions_);
- onChanged();
- } else {
- positionsBuilder_.addAllMessages(values);
- }
- return this;
- }
-
-
- /**
- *
- * The bounding box for each glyph as a rectangle. This matrix is of size (n,4), where n is the number of glyphs in the text block.
- * The second dimension specifies the rectangle with the value x, y, width, height, with x, y specifying the lower left corner.
- * In order to access this information, the stringIdxToPositionIdx array must be used to transform the coordinates.
- *
- *
- * repeated .DocumentPositionData.Position positions = 3;
- */
- public Builder clearPositions() {
-
- if (positionsBuilder_ == null) {
- positions_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000004);
- onChanged();
- } else {
- positionsBuilder_.clear();
- }
- return this;
- }
-
-
- /**
- *
- * The bounding box for each glyph as a rectangle. This matrix is of size (n,4), where n is the number of glyphs in the text block.
- * The second dimension specifies the rectangle with the value x, y, width, height, with x, y specifying the lower left corner.
- * In order to access this information, the stringIdxToPositionIdx array must be used to transform the coordinates.
- *
- *
- * repeated .DocumentPositionData.Position positions = 3;
- */
- public Builder removePositions(int index) {
-
- if (positionsBuilder_ == null) {
- ensurePositionsIsMutable();
- positions_.remove(index);
- onChanged();
- } else {
- positionsBuilder_.remove(index);
- }
- return this;
- }
-
-
- /**
- *
- * The bounding box for each glyph as a rectangle. This matrix is of size (n,4), where n is the number of glyphs in the text block.
- * The second dimension specifies the rectangle with the value x, y, width, height, with x, y specifying the lower left corner.
- * In order to access this information, the stringIdxToPositionIdx array must be used to transform the coordinates.
- *
- *
- * repeated .DocumentPositionData.Position positions = 3;
- */
- public DocumentPositionData.Position.Builder getPositionsBuilder(int index) {
-
- return getPositionsFieldBuilder().getBuilder(index);
- }
-
-
- /**
- *
- * The bounding box for each glyph as a rectangle. This matrix is of size (n,4), where n is the number of glyphs in the text block.
- * The second dimension specifies the rectangle with the value x, y, width, height, with x, y specifying the lower left corner.
- * In order to access this information, the stringIdxToPositionIdx array must be used to transform the coordinates.
- *
- *
- * repeated .DocumentPositionData.Position positions = 3;
- */
- public DocumentPositionData.PositionOrBuilder getPositionsOrBuilder(int index) {
-
- if (positionsBuilder_ == null) {
- return positions_.get(index);
- } else {
- return positionsBuilder_.getMessageOrBuilder(index);
- }
- }
-
-
- /**
- *
- * The bounding box for each glyph as a rectangle. This matrix is of size (n,4), where n is the number of glyphs in the text block.
- * The second dimension specifies the rectangle with the value x, y, width, height, with x, y specifying the lower left corner.
- * In order to access this information, the stringIdxToPositionIdx array must be used to transform the coordinates.
- *
- *
- * repeated .DocumentPositionData.Position positions = 3;
- */
- public java.util.List extends DocumentPositionData.PositionOrBuilder> getPositionsOrBuilderList() {
-
- if (positionsBuilder_ != null) {
- return positionsBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(positions_);
- }
- }
-
-
- /**
- *
- * The bounding box for each glyph as a rectangle. This matrix is of size (n,4), where n is the number of glyphs in the text block.
- * The second dimension specifies the rectangle with the value x, y, width, height, with x, y specifying the lower left corner.
- * In order to access this information, the stringIdxToPositionIdx array must be used to transform the coordinates.
- *
- *
- * repeated .DocumentPositionData.Position positions = 3;
- */
- public DocumentPositionData.Position.Builder addPositionsBuilder() {
-
- return getPositionsFieldBuilder().addBuilder(DocumentPositionData.Position.getDefaultInstance());
- }
-
-
- /**
- *
- * The bounding box for each glyph as a rectangle. This matrix is of size (n,4), where n is the number of glyphs in the text block.
- * The second dimension specifies the rectangle with the value x, y, width, height, with x, y specifying the lower left corner.
- * In order to access this information, the stringIdxToPositionIdx array must be used to transform the coordinates.
- *
- *
- * repeated .DocumentPositionData.Position positions = 3;
- */
- public DocumentPositionData.Position.Builder addPositionsBuilder(int index) {
-
- return getPositionsFieldBuilder().addBuilder(index, DocumentPositionData.Position.getDefaultInstance());
- }
-
-
- /**
- *
- * The bounding box for each glyph as a rectangle. This matrix is of size (n,4), where n is the number of glyphs in the text block.
- * The second dimension specifies the rectangle with the value x, y, width, height, with x, y specifying the lower left corner.
- * In order to access this information, the stringIdxToPositionIdx array must be used to transform the coordinates.
- *
- *
- * repeated .DocumentPositionData.Position positions = 3;
- */
- public java.util.List
- * The root EntryData represents the Document.
- *
- *
- * .EntryData root = 1;
- *
- * @return Whether the root field is set.
- */
- boolean hasRoot();
-
-
- /**
- *
- * The root EntryData represents the Document.
- *
- *
- * .EntryData root = 1;
- *
- * @return The root.
- */
- EntryDataProto.EntryData getRoot();
-
-
- /**
- *
- * The root EntryData represents the Document.
- *
- *
- * .EntryData root = 1;
- */
- EntryDataProto.EntryDataOrBuilder getRootOrBuilder();
-
- }
-
- /**
- * Protobuf type {@code DocumentStructure}
- */
- public static final class DocumentStructure extends com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:DocumentStructure)
- DocumentStructureOrBuilder {
-
- private static final long serialVersionUID = 0L;
-
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 27,
- /* patch= */ 1,
- /* suffix= */ "", DocumentStructure.class.getName());
- }
-
- // Use DocumentStructure.newBuilder() to construct.
- private DocumentStructure(com.google.protobuf.GeneratedMessage.Builder> builder) {
-
- super(builder);
- }
-
-
- private DocumentStructure() {
-
- }
-
-
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-
- return DocumentStructureProto.internal_static_DocumentStructure_descriptor;
- }
-
-
- @Override
- protected FieldAccessorTable internalGetFieldAccessorTable() {
-
- return DocumentStructureProto.internal_static_DocumentStructure_fieldAccessorTable.ensureFieldAccessorsInitialized(DocumentStructure.class, Builder.class);
- }
-
-
- private int bitField0_;
- public static final int ROOT_FIELD_NUMBER = 1;
- private EntryDataProto.EntryData root_;
-
-
- /**
- *
- * The root EntryData represents the Document.
- *
- *
- * .EntryData root = 1;
- *
- * @return Whether the root field is set.
- */
- @Override
- public boolean hasRoot() {
-
- return ((bitField0_ & 0x00000001) != 0);
- }
-
-
- /**
- *
- * The root EntryData represents the Document.
- *
- *
- * .EntryData root = 1;
- *
- * @return The root.
- */
- @Override
- public EntryDataProto.EntryData getRoot() {
-
- return root_ == null ? EntryDataProto.EntryData.getDefaultInstance() : root_;
- }
-
-
- /**
- *
- * The root EntryData represents the Document.
- *
- *
- * .EntryData root = 1;
- */
- @Override
- public EntryDataProto.EntryDataOrBuilder getRootOrBuilder() {
-
- return root_ == null ? EntryDataProto.EntryData.getDefaultInstance() : root_;
- }
-
-
- private byte memoizedIsInitialized = -1;
-
-
- @Override
- public final boolean isInitialized() {
-
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) {
- return true;
- }
- if (isInitialized == 0) {
- return false;
- }
-
- memoizedIsInitialized = 1;
- return true;
- }
-
-
- @Override
- public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-
- if (((bitField0_ & 0x00000001) != 0)) {
- output.writeMessage(1, getRoot());
- }
- getUnknownFields().writeTo(output);
- }
-
-
- @Override
- public int getSerializedSize() {
-
- int size = memoizedSize;
- if (size != -1) {
- return size;
- }
-
- size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRoot());
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
-
- @Override
- public boolean equals(final Object obj) {
-
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof DocumentStructure)) {
- return super.equals(obj);
- }
- DocumentStructure other = (DocumentStructure) obj;
-
- if (hasRoot() != other.hasRoot()) {
- return false;
- }
- if (hasRoot()) {
- if (!getRoot().equals(other.getRoot())) {
- return false;
- }
- }
- if (!getUnknownFields().equals(other.getUnknownFields())) {
- return false;
- }
- return true;
- }
-
-
- @Override
- public int hashCode() {
-
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasRoot()) {
- hash = (37 * hash) + ROOT_FIELD_NUMBER;
- hash = (53 * hash) + getRoot().hashCode();
- }
- hash = (29 * hash) + getUnknownFields().hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
-
- public static DocumentStructure parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
-
- return PARSER.parseFrom(data);
- }
-
-
- public static DocumentStructure parseFrom(java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
-
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
-
- public static DocumentStructure parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException {
-
- return PARSER.parseFrom(data);
- }
-
-
- public static DocumentStructure parseFrom(com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
-
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
-
- public static DocumentStructure parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
-
- return PARSER.parseFrom(data);
- }
-
-
- public static DocumentStructure parseFrom(byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
-
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
-
- public static DocumentStructure parseFrom(java.io.InputStream input) throws java.io.IOException {
-
- return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
- }
-
-
- public static DocumentStructure parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
-
- return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input, extensionRegistry);
- }
-
-
- public static DocumentStructure parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
-
- return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
- }
-
-
- public static DocumentStructure parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
-
- return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
-
-
- public static DocumentStructure parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-
- return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
- }
-
-
- public static DocumentStructure parseFrom(com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
-
- return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input, extensionRegistry);
- }
-
-
- @Override
- public Builder newBuilderForType() {return newBuilder();}
-
-
- public static Builder newBuilder() {
-
- return DEFAULT_INSTANCE.toBuilder();
- }
-
-
- public static Builder newBuilder(DocumentStructure prototype) {
-
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
-
-
- @Override
- public Builder toBuilder() {
-
- return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
- }
-
-
- @Override
- protected Builder newBuilderForType(BuilderParent parent) {
-
- Builder builder = new Builder(parent);
- return builder;
- }
-
-
- /**
- * Protobuf type {@code DocumentStructure}
- */
- public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
- * The root EntryData represents the Document.
- *
- *
- * .EntryData root = 1;
- *
- * @return Whether the root field is set.
- */
- public boolean hasRoot() {
-
- return ((bitField0_ & 0x00000001) != 0);
- }
-
-
- /**
- *
- * The root EntryData represents the Document.
- *
- *
- * .EntryData root = 1;
- *
- * @return The root.
- */
- public EntryDataProto.EntryData getRoot() {
-
- if (rootBuilder_ == null) {
- return root_ == null ? EntryDataProto.EntryData.getDefaultInstance() : root_;
- } else {
- return rootBuilder_.getMessage();
- }
- }
-
-
- /**
- *
- * The root EntryData represents the Document.
- *
- *
- * .EntryData root = 1;
- */
- public Builder setRoot(EntryDataProto.EntryData value) {
-
- if (rootBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- root_ = value;
- } else {
- rootBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00000001;
- onChanged();
- return this;
- }
-
-
- /**
- *
- * The root EntryData represents the Document.
- *
- *
- * .EntryData root = 1;
- */
- public Builder setRoot(EntryDataProto.EntryData.Builder builderForValue) {
-
- if (rootBuilder_ == null) {
- root_ = builderForValue.build();
- } else {
- rootBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00000001;
- onChanged();
- return this;
- }
-
-
- /**
- *
- * The root EntryData represents the Document.
- *
- *
- * .EntryData root = 1;
- */
- public Builder mergeRoot(EntryDataProto.EntryData value) {
-
- if (rootBuilder_ == null) {
- if (((bitField0_ & 0x00000001) != 0) && root_ != null && root_ != EntryDataProto.EntryData.getDefaultInstance()) {
- getRootBuilder().mergeFrom(value);
- } else {
- root_ = value;
- }
- } else {
- rootBuilder_.mergeFrom(value);
- }
- if (root_ != null) {
- bitField0_ |= 0x00000001;
- onChanged();
- }
- return this;
- }
-
-
- /**
- *
- * The root EntryData represents the Document.
- *
- *
- * .EntryData root = 1;
- */
- public Builder clearRoot() {
-
- bitField0_ = (bitField0_ & ~0x00000001);
- root_ = null;
- if (rootBuilder_ != null) {
- rootBuilder_.dispose();
- rootBuilder_ = null;
- }
- onChanged();
- return this;
- }
-
-
- /**
- *
- * The root EntryData represents the Document.
- *
- *
- * .EntryData root = 1;
- */
- public EntryDataProto.EntryData.Builder getRootBuilder() {
-
- bitField0_ |= 0x00000001;
- onChanged();
- return getRootFieldBuilder().getBuilder();
- }
-
-
- /**
- *
- * The root EntryData represents the Document.
- *
- *
- * .EntryData root = 1;
- */
- public EntryDataProto.EntryDataOrBuilder getRootOrBuilder() {
-
- if (rootBuilder_ != null) {
- return rootBuilder_.getMessageOrBuilder();
- } else {
- return root_ == null ? EntryDataProto.EntryData.getDefaultInstance() : root_;
- }
- }
-
-
- /**
- *
- * The root EntryData represents the Document.
- *
- *
- * .EntryData root = 1;
- */
- private com.google.protobuf.SingleFieldBuilderrepeated .DocumentTextData documentTextData = 1;
- */
- java.util.Listrepeated .DocumentTextData documentTextData = 1;
- */
- DocumentTextData getDocumentTextData(int index);
-
-
- /**
- * repeated .DocumentTextData documentTextData = 1;
- */
- int getDocumentTextDataCount();
-
-
- /**
- * repeated .DocumentTextData documentTextData = 1;
- */
- java.util.List extends DocumentTextDataOrBuilder> getDocumentTextDataOrBuilderList();
-
-
- /**
- * repeated .DocumentTextData documentTextData = 1;
- */
- DocumentTextDataOrBuilder getDocumentTextDataOrBuilder(int index);
-
- }
-
- /**
- * Protobuf type {@code AllDocumentTextData}
- */
- public static final class AllDocumentTextData extends com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:AllDocumentTextData)
- AllDocumentTextDataOrBuilder {
-
- private static final long serialVersionUID = 0L;
-
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 27,
- /* patch= */ 1,
- /* suffix= */ "", AllDocumentTextData.class.getName());
- }
-
- // Use AllDocumentTextData.newBuilder() to construct.
- private AllDocumentTextData(com.google.protobuf.GeneratedMessage.Builder> builder) {
-
- super(builder);
- }
-
-
- private AllDocumentTextData() {
-
- documentTextData_ = java.util.Collections.emptyList();
- }
-
-
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-
- return DocumentTextDataProto.internal_static_AllDocumentTextData_descriptor;
- }
-
-
- @Override
- protected FieldAccessorTable internalGetFieldAccessorTable() {
-
- return DocumentTextDataProto.internal_static_AllDocumentTextData_fieldAccessorTable.ensureFieldAccessorsInitialized(AllDocumentTextData.class, Builder.class);
- }
-
-
- public static final int DOCUMENTTEXTDATA_FIELD_NUMBER = 1;
- @SuppressWarnings("serial")
- private java.util.Listrepeated .DocumentTextData documentTextData = 1;
- */
- @Override
- public java.util.Listrepeated .DocumentTextData documentTextData = 1;
- */
- @Override
- public java.util.List extends DocumentTextDataOrBuilder> getDocumentTextDataOrBuilderList() {
-
- return documentTextData_;
- }
-
-
- /**
- * repeated .DocumentTextData documentTextData = 1;
- */
- @Override
- public int getDocumentTextDataCount() {
-
- return documentTextData_.size();
- }
-
-
- /**
- * repeated .DocumentTextData documentTextData = 1;
- */
- @Override
- public DocumentTextData getDocumentTextData(int index) {
-
- return documentTextData_.get(index);
- }
-
-
- /**
- * repeated .DocumentTextData documentTextData = 1;
- */
- @Override
- public DocumentTextDataOrBuilder getDocumentTextDataOrBuilder(int index) {
-
- return documentTextData_.get(index);
- }
-
-
- private byte memoizedIsInitialized = -1;
-
-
- @Override
- public final boolean isInitialized() {
-
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) {
- return true;
- }
- if (isInitialized == 0) {
- return false;
- }
-
- memoizedIsInitialized = 1;
- return true;
- }
-
-
- @Override
- public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-
- for (int i = 0; i < documentTextData_.size(); i++) {
- output.writeMessage(1, documentTextData_.get(i));
- }
- getUnknownFields().writeTo(output);
- }
-
-
- @Override
- public int getSerializedSize() {
-
- int size = memoizedSize;
- if (size != -1) {
- return size;
- }
-
- size = 0;
- for (int i = 0; i < documentTextData_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, documentTextData_.get(i));
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
-
- @Override
- public boolean equals(final Object obj) {
-
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof AllDocumentTextData)) {
- return super.equals(obj);
- }
- AllDocumentTextData other = (AllDocumentTextData) obj;
-
- if (!getDocumentTextDataList().equals(other.getDocumentTextDataList())) {
- return false;
- }
- if (!getUnknownFields().equals(other.getUnknownFields())) {
- return false;
- }
- return true;
- }
-
-
- @Override
- public int hashCode() {
-
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (getDocumentTextDataCount() > 0) {
- hash = (37 * hash) + DOCUMENTTEXTDATA_FIELD_NUMBER;
- hash = (53 * hash) + getDocumentTextDataList().hashCode();
- }
- hash = (29 * hash) + getUnknownFields().hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
-
- public static AllDocumentTextData parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
-
- return PARSER.parseFrom(data);
- }
-
-
- public static AllDocumentTextData parseFrom(java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
-
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
-
- public static AllDocumentTextData parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException {
-
- return PARSER.parseFrom(data);
- }
-
-
- public static AllDocumentTextData parseFrom(com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
-
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
-
- public static AllDocumentTextData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
-
- return PARSER.parseFrom(data);
- }
-
-
- public static AllDocumentTextData parseFrom(byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
-
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
-
- public static AllDocumentTextData parseFrom(java.io.InputStream input) throws java.io.IOException {
-
- return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
- }
-
-
- public static AllDocumentTextData parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
-
- return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input, extensionRegistry);
- }
-
-
- public static AllDocumentTextData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
-
- return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
- }
-
-
- public static AllDocumentTextData parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
-
- return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
-
-
- public static AllDocumentTextData parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-
- return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
- }
-
-
- public static AllDocumentTextData parseFrom(com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
-
- return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input, extensionRegistry);
- }
-
-
- @Override
- public Builder newBuilderForType() {return newBuilder();}
-
-
- public static Builder newBuilder() {
-
- return DEFAULT_INSTANCE.toBuilder();
- }
-
-
- public static Builder newBuilder(AllDocumentTextData prototype) {
-
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
-
-
- @Override
- public Builder toBuilder() {
-
- return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
- }
-
-
- @Override
- protected Builder newBuilderForType(BuilderParent parent) {
-
- Builder builder = new Builder(parent);
- return builder;
- }
-
-
- /**
- * Protobuf type {@code AllDocumentTextData}
- */
- public static final class Builder extends com.google.protobuf.GeneratedMessage.Builderrepeated .DocumentTextData documentTextData = 1;
- */
- public java.util.Listrepeated .DocumentTextData documentTextData = 1;
- */
- public int getDocumentTextDataCount() {
-
- if (documentTextDataBuilder_ == null) {
- return documentTextData_.size();
- } else {
- return documentTextDataBuilder_.getCount();
- }
- }
-
-
- /**
- * repeated .DocumentTextData documentTextData = 1;
- */
- public DocumentTextData getDocumentTextData(int index) {
-
- if (documentTextDataBuilder_ == null) {
- return documentTextData_.get(index);
- } else {
- return documentTextDataBuilder_.getMessage(index);
- }
- }
-
-
- /**
- * repeated .DocumentTextData documentTextData = 1;
- */
- public Builder setDocumentTextData(int index, DocumentTextData value) {
-
- if (documentTextDataBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureDocumentTextDataIsMutable();
- documentTextData_.set(index, value);
- onChanged();
- } else {
- documentTextDataBuilder_.setMessage(index, value);
- }
- return this;
- }
-
-
- /**
- * repeated .DocumentTextData documentTextData = 1;
- */
- public Builder setDocumentTextData(int index, DocumentTextData.Builder builderForValue) {
-
- if (documentTextDataBuilder_ == null) {
- ensureDocumentTextDataIsMutable();
- documentTextData_.set(index, builderForValue.build());
- onChanged();
- } else {
- documentTextDataBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
-
-
- /**
- * repeated .DocumentTextData documentTextData = 1;
- */
- public Builder addDocumentTextData(DocumentTextData value) {
-
- if (documentTextDataBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureDocumentTextDataIsMutable();
- documentTextData_.add(value);
- onChanged();
- } else {
- documentTextDataBuilder_.addMessage(value);
- }
- return this;
- }
-
-
- /**
- * repeated .DocumentTextData documentTextData = 1;
- */
- public Builder addDocumentTextData(int index, DocumentTextData value) {
-
- if (documentTextDataBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureDocumentTextDataIsMutable();
- documentTextData_.add(index, value);
- onChanged();
- } else {
- documentTextDataBuilder_.addMessage(index, value);
- }
- return this;
- }
-
-
- /**
- * repeated .DocumentTextData documentTextData = 1;
- */
- public Builder addDocumentTextData(DocumentTextData.Builder builderForValue) {
-
- if (documentTextDataBuilder_ == null) {
- ensureDocumentTextDataIsMutable();
- documentTextData_.add(builderForValue.build());
- onChanged();
- } else {
- documentTextDataBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
-
-
- /**
- * repeated .DocumentTextData documentTextData = 1;
- */
- public Builder addDocumentTextData(int index, DocumentTextData.Builder builderForValue) {
-
- if (documentTextDataBuilder_ == null) {
- ensureDocumentTextDataIsMutable();
- documentTextData_.add(index, builderForValue.build());
- onChanged();
- } else {
- documentTextDataBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
-
-
- /**
- * repeated .DocumentTextData documentTextData = 1;
- */
- public Builder addAllDocumentTextData(Iterable extends DocumentTextData> values) {
-
- if (documentTextDataBuilder_ == null) {
- ensureDocumentTextDataIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(values, documentTextData_);
- onChanged();
- } else {
- documentTextDataBuilder_.addAllMessages(values);
- }
- return this;
- }
-
-
- /**
- * repeated .DocumentTextData documentTextData = 1;
- */
- public Builder clearDocumentTextData() {
-
- if (documentTextDataBuilder_ == null) {
- documentTextData_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
- onChanged();
- } else {
- documentTextDataBuilder_.clear();
- }
- return this;
- }
-
-
- /**
- * repeated .DocumentTextData documentTextData = 1;
- */
- public Builder removeDocumentTextData(int index) {
-
- if (documentTextDataBuilder_ == null) {
- ensureDocumentTextDataIsMutable();
- documentTextData_.remove(index);
- onChanged();
- } else {
- documentTextDataBuilder_.remove(index);
- }
- return this;
- }
-
-
- /**
- * repeated .DocumentTextData documentTextData = 1;
- */
- public DocumentTextData.Builder getDocumentTextDataBuilder(int index) {
-
- return getDocumentTextDataFieldBuilder().getBuilder(index);
- }
-
-
- /**
- * repeated .DocumentTextData documentTextData = 1;
- */
- public DocumentTextDataOrBuilder getDocumentTextDataOrBuilder(int index) {
-
- if (documentTextDataBuilder_ == null) {
- return documentTextData_.get(index);
- } else {
- return documentTextDataBuilder_.getMessageOrBuilder(index);
- }
- }
-
-
- /**
- * repeated .DocumentTextData documentTextData = 1;
- */
- public java.util.List extends DocumentTextDataOrBuilder> getDocumentTextDataOrBuilderList() {
-
- if (documentTextDataBuilder_ != null) {
- return documentTextDataBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(documentTextData_);
- }
- }
-
-
- /**
- * repeated .DocumentTextData documentTextData = 1;
- */
- public DocumentTextData.Builder addDocumentTextDataBuilder() {
-
- return getDocumentTextDataFieldBuilder().addBuilder(DocumentTextData.getDefaultInstance());
- }
-
-
- /**
- * repeated .DocumentTextData documentTextData = 1;
- */
- public DocumentTextData.Builder addDocumentTextDataBuilder(int index) {
-
- return getDocumentTextDataFieldBuilder().addBuilder(index, DocumentTextData.getDefaultInstance());
- }
-
-
- /**
- * repeated .DocumentTextData documentTextData = 1;
- */
- public java.util.List
- * Identifier of the text block.
- *
- *
- * int64 id = 1;
- *
- * @return The id.
- */
- long getId();
-
-
- /**
- *
- * The page the text block occurs on.
- *
- *
- * int64 page = 2;
- *
- * @return The page.
- */
- long getPage();
-
-
- /**
- *
- * The text of the text block.
- *
- *
- * string searchText = 3;
- *
- * @return The searchText.
- */
- String getSearchText();
-
-
- /**
- *
- * The text of the text block.
- *
- *
- * string searchText = 3;
- *
- * @return The bytes for searchText.
- */
- com.google.protobuf.ByteString getSearchTextBytes();
-
-
- /**
- *
- * Each text block is assigned a number on a page, starting from 0.
- *
- *
- * int32 numberOnPage = 4;
- *
- * @return The numberOnPage.
- */
- int getNumberOnPage();
-
-
- /**
- *
- * The text blocks are ordered, this number represents the start of the text block as a string offset.
- *
- *
- * int32 start = 5;
- *
- * @return The start.
- */
- int getStart();
-
-
- /**
- *
- * The text blocks are ordered, this number represents the end of the text block as a string offset.
- *
- *
- * int32 end = 6;
- *
- * @return The end.
- */
- int getEnd();
-
-
- /**
- *
- * The line breaks in the text of this semantic node in string offsets. They are exclusive end. At the end of each semantic node there is an implicit linebreak.
- *
- *
- * repeated int32 lineBreaks = 7;
- *
- * @return A list containing the lineBreaks.
- */
- java.util.List
- * The line breaks in the text of this semantic node in string offsets. They are exclusive end. At the end of each semantic node there is an implicit linebreak.
- *
- *
- * repeated int32 lineBreaks = 7;
- *
- * @return The count of lineBreaks.
- */
- int getLineBreaksCount();
-
-
- /**
- *
- * The line breaks in the text of this semantic node in string offsets. They are exclusive end. At the end of each semantic node there is an implicit linebreak.
- *
- *
- * repeated int32 lineBreaks = 7;
- *
- * @param index The index of the element to return.
- * @return The lineBreaks at the given index.
- */
- int getLineBreaks(int index);
-
- }
-
- /**
- * Protobuf type {@code DocumentTextData}
- */
- public static final class DocumentTextData extends com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:DocumentTextData)
- DocumentTextDataOrBuilder {
-
- private static final long serialVersionUID = 0L;
-
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 27,
- /* patch= */ 1,
- /* suffix= */ "", DocumentTextData.class.getName());
- }
-
- // Use DocumentTextData.newBuilder() to construct.
- private DocumentTextData(com.google.protobuf.GeneratedMessage.Builder> builder) {
-
- super(builder);
- }
-
-
- private DocumentTextData() {
-
- searchText_ = "";
- lineBreaks_ = emptyIntList();
- }
-
-
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-
- return DocumentTextDataProto.internal_static_DocumentTextData_descriptor;
- }
-
-
- @Override
- protected FieldAccessorTable internalGetFieldAccessorTable() {
-
- return DocumentTextDataProto.internal_static_DocumentTextData_fieldAccessorTable.ensureFieldAccessorsInitialized(DocumentTextData.class, Builder.class);
- }
-
-
- public static final int ID_FIELD_NUMBER = 1;
- private long id_ = 0L;
-
-
- /**
- *
- * Identifier of the text block.
- *
- *
- * int64 id = 1;
- *
- * @return The id.
- */
- @Override
- public long getId() {
-
- return id_;
- }
-
-
- public static final int PAGE_FIELD_NUMBER = 2;
- private long page_ = 0L;
-
-
- /**
- *
- * The page the text block occurs on.
- *
- *
- * int64 page = 2;
- *
- * @return The page.
- */
- @Override
- public long getPage() {
-
- return page_;
- }
-
-
- public static final int SEARCHTEXT_FIELD_NUMBER = 3;
- @SuppressWarnings("serial")
- private volatile Object searchText_ = "";
-
-
- /**
- *
- * The text of the text block.
- *
- *
- * string searchText = 3;
- *
- * @return The searchText.
- */
- @Override
- public String getSearchText() {
-
- Object ref = searchText_;
- if (ref instanceof String) {
- return (String) ref;
- } else {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
- searchText_ = s;
- return s;
- }
- }
-
-
- /**
- *
- * The text of the text block.
- *
- *
- * string searchText = 3;
- *
- * @return The bytes for searchText.
- */
- @Override
- public com.google.protobuf.ByteString getSearchTextBytes() {
-
- Object ref = searchText_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref);
- searchText_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
-
- public static final int NUMBERONPAGE_FIELD_NUMBER = 4;
- private int numberOnPage_ = 0;
-
-
- /**
- *
- * Each text block is assigned a number on a page, starting from 0.
- *
- *
- * int32 numberOnPage = 4;
- *
- * @return The numberOnPage.
- */
- @Override
- public int getNumberOnPage() {
-
- return numberOnPage_;
- }
-
-
- public static final int START_FIELD_NUMBER = 5;
- private int start_ = 0;
-
-
- /**
- *
- * The text blocks are ordered, this number represents the start of the text block as a string offset.
- *
- *
- * int32 start = 5;
- *
- * @return The start.
- */
- @Override
- public int getStart() {
-
- return start_;
- }
-
-
- public static final int END_FIELD_NUMBER = 6;
- private int end_ = 0;
-
-
- /**
- *
- * The text blocks are ordered, this number represents the end of the text block as a string offset.
- *
- *
- * int32 end = 6;
- *
- * @return The end.
- */
- @Override
- public int getEnd() {
-
- return end_;
- }
-
-
- public static final int LINEBREAKS_FIELD_NUMBER = 7;
- @SuppressWarnings("serial")
- private com.google.protobuf.Internal.IntList lineBreaks_ = emptyIntList();
-
-
- /**
- *
- * The line breaks in the text of this semantic node in string offsets. They are exclusive end. At the end of each semantic node there is an implicit linebreak.
- *
- *
- * repeated int32 lineBreaks = 7;
- *
- * @return A list containing the lineBreaks.
- */
- @Override
- public java.util.List
- * The line breaks in the text of this semantic node in string offsets. They are exclusive end. At the end of each semantic node there is an implicit linebreak.
- *
- *
- * repeated int32 lineBreaks = 7;
- *
- * @return The count of lineBreaks.
- */
- public int getLineBreaksCount() {
-
- return lineBreaks_.size();
- }
-
-
- /**
- *
- * The line breaks in the text of this semantic node in string offsets. They are exclusive end. At the end of each semantic node there is an implicit linebreak.
- *
- *
- * repeated int32 lineBreaks = 7;
- *
- * @param index The index of the element to return.
- * @return The lineBreaks at the given index.
- */
- public int getLineBreaks(int index) {
-
- return lineBreaks_.getInt(index);
- }
-
-
- private int lineBreaksMemoizedSerializedSize = -1;
-
- private byte memoizedIsInitialized = -1;
-
-
- @Override
- public final boolean isInitialized() {
-
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) {
- return true;
- }
- if (isInitialized == 0) {
- return false;
- }
-
- memoizedIsInitialized = 1;
- return true;
- }
-
-
- @Override
- public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-
- getSerializedSize();
- if (id_ != 0L) {
- output.writeInt64(1, id_);
- }
- if (page_ != 0L) {
- output.writeInt64(2, page_);
- }
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(searchText_)) {
- com.google.protobuf.GeneratedMessage.writeString(output, 3, searchText_);
- }
- if (numberOnPage_ != 0) {
- output.writeInt32(4, numberOnPage_);
- }
- if (start_ != 0) {
- output.writeInt32(5, start_);
- }
- if (end_ != 0) {
- output.writeInt32(6, end_);
- }
- if (getLineBreaksList().size() > 0) {
- output.writeUInt32NoTag(58);
- output.writeUInt32NoTag(lineBreaksMemoizedSerializedSize);
- }
- for (int i = 0; i < lineBreaks_.size(); i++) {
- output.writeInt32NoTag(lineBreaks_.getInt(i));
- }
- getUnknownFields().writeTo(output);
- }
-
-
- @Override
- public int getSerializedSize() {
-
- int size = memoizedSize;
- if (size != -1) {
- return size;
- }
-
- size = 0;
- if (id_ != 0L) {
- size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, id_);
- }
- if (page_ != 0L) {
- size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, page_);
- }
- if (!com.google.protobuf.GeneratedMessage.isStringEmpty(searchText_)) {
- size += com.google.protobuf.GeneratedMessage.computeStringSize(3, searchText_);
- }
- if (numberOnPage_ != 0) {
- size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, numberOnPage_);
- }
- if (start_ != 0) {
- size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, start_);
- }
- if (end_ != 0) {
- size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, end_);
- }
- {
- int dataSize = 0;
- for (int i = 0; i < lineBreaks_.size(); i++) {
- dataSize += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(lineBreaks_.getInt(i));
- }
- size += dataSize;
- if (!getLineBreaksList().isEmpty()) {
- size += 1;
- size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize);
- }
- lineBreaksMemoizedSerializedSize = dataSize;
- }
- size += getUnknownFields().getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
-
- @Override
- public boolean equals(final Object obj) {
-
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof DocumentTextData)) {
- return super.equals(obj);
- }
- DocumentTextData other = (DocumentTextData) obj;
-
- if (getId() != other.getId()) {
- return false;
- }
- if (getPage() != other.getPage()) {
- return false;
- }
- if (!getSearchText().equals(other.getSearchText())) {
- return false;
- }
- if (getNumberOnPage() != other.getNumberOnPage()) {
- return false;
- }
- if (getStart() != other.getStart()) {
- return false;
- }
- if (getEnd() != other.getEnd()) {
- return false;
- }
- if (!getLineBreaksList().equals(other.getLineBreaksList())) {
- return false;
- }
- if (!getUnknownFields().equals(other.getUnknownFields())) {
- return false;
- }
- return true;
- }
-
-
- @Override
- public int hashCode() {
-
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- hash = (37 * hash) + ID_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getId());
- hash = (37 * hash) + PAGE_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPage());
- hash = (37 * hash) + SEARCHTEXT_FIELD_NUMBER;
- hash = (53 * hash) + getSearchText().hashCode();
- hash = (37 * hash) + NUMBERONPAGE_FIELD_NUMBER;
- hash = (53 * hash) + getNumberOnPage();
- hash = (37 * hash) + START_FIELD_NUMBER;
- hash = (53 * hash) + getStart();
- hash = (37 * hash) + END_FIELD_NUMBER;
- hash = (53 * hash) + getEnd();
- if (getLineBreaksCount() > 0) {
- hash = (37 * hash) + LINEBREAKS_FIELD_NUMBER;
- hash = (53 * hash) + getLineBreaksList().hashCode();
- }
- hash = (29 * hash) + getUnknownFields().hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
-
- public static DocumentTextData parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
-
- return PARSER.parseFrom(data);
- }
-
-
- public static DocumentTextData parseFrom(java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
-
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
-
- public static DocumentTextData parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException {
-
- return PARSER.parseFrom(data);
- }
-
-
- public static DocumentTextData parseFrom(com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
-
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
-
- public static DocumentTextData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
-
- return PARSER.parseFrom(data);
- }
-
-
- public static DocumentTextData parseFrom(byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
-
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
-
- public static DocumentTextData parseFrom(java.io.InputStream input) throws java.io.IOException {
-
- return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
- }
-
-
- public static DocumentTextData parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
-
- return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input, extensionRegistry);
- }
-
-
- public static DocumentTextData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
-
- return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
- }
-
-
- public static DocumentTextData parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
-
- return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
-
-
- public static DocumentTextData parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-
- return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
- }
-
-
- public static DocumentTextData parseFrom(com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
-
- return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input, extensionRegistry);
- }
-
-
- @Override
- public Builder newBuilderForType() {return newBuilder();}
-
-
- public static Builder newBuilder() {
-
- return DEFAULT_INSTANCE.toBuilder();
- }
-
-
- public static Builder newBuilder(DocumentTextData prototype) {
-
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
-
-
- @Override
- public Builder toBuilder() {
-
- return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
- }
-
-
- @Override
- protected Builder newBuilderForType(BuilderParent parent) {
-
- Builder builder = new Builder(parent);
- return builder;
- }
-
-
- /**
- * Protobuf type {@code DocumentTextData}
- */
- public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder
- * Identifier of the text block.
- *
- *
- * int64 id = 1;
- *
- * @return The id.
- */
- @Override
- public long getId() {
-
- return id_;
- }
-
-
- /**
- *
- * Identifier of the text block.
- *
- *
- * int64 id = 1;
- *
- * @param value The id to set.
- * @return This builder for chaining.
- */
- public Builder setId(long value) {
-
- id_ = value;
- bitField0_ |= 0x00000001;
- onChanged();
- return this;
- }
-
-
- /**
- *
- * Identifier of the text block.
- *
- *
- * int64 id = 1;
- *
- * @return This builder for chaining.
- */
- public Builder clearId() {
-
- bitField0_ = (bitField0_ & ~0x00000001);
- id_ = 0L;
- onChanged();
- return this;
- }
-
-
- private long page_;
-
-
- /**
- *
- * The page the text block occurs on.
- *
- *
- * int64 page = 2;
- *
- * @return The page.
- */
- @Override
- public long getPage() {
-
- return page_;
- }
-
-
- /**
- *
- * The page the text block occurs on.
- *
- *
- * int64 page = 2;
- *
- * @param value The page to set.
- * @return This builder for chaining.
- */
- public Builder setPage(long value) {
-
- page_ = value;
- bitField0_ |= 0x00000002;
- onChanged();
- return this;
- }
-
-
- /**
- *
- * The page the text block occurs on.
- *
- *
- * int64 page = 2;
- *
- * @return This builder for chaining.
- */
- public Builder clearPage() {
-
- bitField0_ = (bitField0_ & ~0x00000002);
- page_ = 0L;
- onChanged();
- return this;
- }
-
-
- private Object searchText_ = "";
-
-
- /**
- *
- * The text of the text block.
- *
- *
- * string searchText = 3;
- *
- * @return The searchText.
- */
- public String getSearchText() {
-
- Object ref = searchText_;
- if (!(ref instanceof String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- String s = bs.toStringUtf8();
- searchText_ = s;
- return s;
- } else {
- return (String) ref;
- }
- }
-
-
- /**
- *
- * The text of the text block.
- *
- *
- * string searchText = 3;
- *
- * @return The bytes for searchText.
- */
- public com.google.protobuf.ByteString getSearchTextBytes() {
-
- Object ref = searchText_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref);
- searchText_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
-
- /**
- *
- * The text of the text block.
- *
- *
- * string searchText = 3;
- *
- * @param value The searchText to set.
- * @return This builder for chaining.
- */
- public Builder setSearchText(String value) {
-
- if (value == null) {
- throw new NullPointerException();
- }
- searchText_ = value;
- bitField0_ |= 0x00000004;
- onChanged();
- return this;
- }
-
-
- /**
- *
- * The text of the text block.
- *
- *
- * string searchText = 3;
- *
- * @return This builder for chaining.
- */
- public Builder clearSearchText() {
-
- searchText_ = getDefaultInstance().getSearchText();
- bitField0_ = (bitField0_ & ~0x00000004);
- onChanged();
- return this;
- }
-
-
- /**
- *
- * The text of the text block.
- *
- *
- * string searchText = 3;
- *
- * @param value The bytes for searchText to set.
- * @return This builder for chaining.
- */
- public Builder setSearchTextBytes(com.google.protobuf.ByteString value) {
-
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
- searchText_ = value;
- bitField0_ |= 0x00000004;
- onChanged();
- return this;
- }
-
-
- private int numberOnPage_;
-
-
- /**
- *
- * Each text block is assigned a number on a page, starting from 0.
- *
- *
- * int32 numberOnPage = 4;
- *
- * @return The numberOnPage.
- */
- @Override
- public int getNumberOnPage() {
-
- return numberOnPage_;
- }
-
-
- /**
- *
- * Each text block is assigned a number on a page, starting from 0.
- *
- *
- * int32 numberOnPage = 4;
- *
- * @param value The numberOnPage to set.
- * @return This builder for chaining.
- */
- public Builder setNumberOnPage(int value) {
-
- numberOnPage_ = value;
- bitField0_ |= 0x00000008;
- onChanged();
- return this;
- }
-
-
- /**
- *
- * Each text block is assigned a number on a page, starting from 0.
- *
- *
- * int32 numberOnPage = 4;
- *
- * @return This builder for chaining.
- */
- public Builder clearNumberOnPage() {
-
- bitField0_ = (bitField0_ & ~0x00000008);
- numberOnPage_ = 0;
- onChanged();
- return this;
- }
-
-
- private int start_;
-
-
- /**
- *
- * The text blocks are ordered, this number represents the start of the text block as a string offset.
- *
- *
- * int32 start = 5;
- *
- * @return The start.
- */
- @Override
- public int getStart() {
-
- return start_;
- }
-
-
- /**
- *
- * The text blocks are ordered, this number represents the start of the text block as a string offset.
- *
- *
- * int32 start = 5;
- *
- * @param value The start to set.
- * @return This builder for chaining.
- */
- public Builder setStart(int value) {
-
- start_ = value;
- bitField0_ |= 0x00000010;
- onChanged();
- return this;
- }
-
-
- /**
- *
- * The text blocks are ordered, this number represents the start of the text block as a string offset.
- *
- *
- * int32 start = 5;
- *
- * @return This builder for chaining.
- */
- public Builder clearStart() {
-
- bitField0_ = (bitField0_ & ~0x00000010);
- start_ = 0;
- onChanged();
- return this;
- }
-
-
- private int end_;
-
-
- /**
- *
- * The text blocks are ordered, this number represents the end of the text block as a string offset.
- *
- *
- * int32 end = 6;
- *
- * @return The end.
- */
- @Override
- public int getEnd() {
-
- return end_;
- }
-
-
- /**
- *
- * The text blocks are ordered, this number represents the end of the text block as a string offset.
- *
- *
- * int32 end = 6;
- *
- * @param value The end to set.
- * @return This builder for chaining.
- */
- public Builder setEnd(int value) {
-
- end_ = value;
- bitField0_ |= 0x00000020;
- onChanged();
- return this;
- }
-
-
- /**
- *
- * The text blocks are ordered, this number represents the end of the text block as a string offset.
- *
- *
- * int32 end = 6;
- *
- * @return This builder for chaining.
- */
- public Builder clearEnd() {
-
- bitField0_ = (bitField0_ & ~0x00000020);
- end_ = 0;
- onChanged();
- return this;
- }
-
-
- private com.google.protobuf.Internal.IntList lineBreaks_ = emptyIntList();
-
-
- private void ensureLineBreaksIsMutable() {
-
- if (!lineBreaks_.isModifiable()) {
- lineBreaks_ = makeMutableCopy(lineBreaks_);
- }
- bitField0_ |= 0x00000040;
- }
-
-
- /**
- *
- * The line breaks in the text of this semantic node in string offsets. They are exclusive end. At the end of each semantic node there is an implicit linebreak.
- *
- *
- * repeated int32 lineBreaks = 7;
- *
- * @return A list containing the lineBreaks.
- */
- public java.util.List
- * The line breaks in the text of this semantic node in string offsets. They are exclusive end. At the end of each semantic node there is an implicit linebreak.
- *
- *
- * repeated int32 lineBreaks = 7;
- *
- * @return The count of lineBreaks.
- */
- public int getLineBreaksCount() {
-
- return lineBreaks_.size();
- }
-
-
- /**
- *
- * The line breaks in the text of this semantic node in string offsets. They are exclusive end. At the end of each semantic node there is an implicit linebreak.
- *
- *
- * repeated int32 lineBreaks = 7;
- *
- * @param index The index of the element to return.
- * @return The lineBreaks at the given index.
- */
- public int getLineBreaks(int index) {
-
- return lineBreaks_.getInt(index);
- }
-
-
- /**
- *
- * The line breaks in the text of this semantic node in string offsets. They are exclusive end. At the end of each semantic node there is an implicit linebreak.
- *
- *
- * repeated int32 lineBreaks = 7;
- *
- * @param index The index to set the value at.
- * @param value The lineBreaks to set.
- * @return This builder for chaining.
- */
- public Builder setLineBreaks(int index, int value) {
-
- ensureLineBreaksIsMutable();
- lineBreaks_.setInt(index, value);
- bitField0_ |= 0x00000040;
- onChanged();
- return this;
- }
-
-
- /**
- *
- * The line breaks in the text of this semantic node in string offsets. They are exclusive end. At the end of each semantic node there is an implicit linebreak.
- *
- *
- * repeated int32 lineBreaks = 7;
- *
- * @param value The lineBreaks to add.
- * @return This builder for chaining.
- */
- public Builder addLineBreaks(int value) {
-
- ensureLineBreaksIsMutable();
- lineBreaks_.addInt(value);
- bitField0_ |= 0x00000040;
- onChanged();
- return this;
- }
-
-
- /**
- *
- * The line breaks in the text of this semantic node in string offsets. They are exclusive end. At the end of each semantic node there is an implicit linebreak.
- *
- *
- * repeated int32 lineBreaks = 7;
- *
- * @param values The lineBreaks to add.
- * @return This builder for chaining.
- */
- public Builder addAllLineBreaks(Iterable extends Integer> values) {
-
- ensureLineBreaksIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(values, lineBreaks_);
- bitField0_ |= 0x00000040;
- onChanged();
- return this;
- }
-
-
- /**
- *
- * The line breaks in the text of this semantic node in string offsets. They are exclusive end. At the end of each semantic node there is an implicit linebreak.
- *
- *
- * repeated int32 lineBreaks = 7;
- *
- * @return This builder for chaining.
- */
- public Builder clearLineBreaks() {
-
- lineBreaks_ = emptyIntList();
- bitField0_ = (bitField0_ & ~0x00000040);
- onChanged();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:DocumentTextData)
- }
-
- // @@protoc_insertion_point(class_scope:DocumentTextData)
- private static final DocumentTextData DEFAULT_INSTANCE;
-
- static {
- DEFAULT_INSTANCE = new DocumentTextData();
- }
-
- public static DocumentTextData getDefaultInstance() {
-
- return DEFAULT_INSTANCE;
- }
-
-
- private static final com.google.protobuf.Parser
- * Type of the semantic node.
- *
- *
- * .NodeType type = 1;
- *
- * @return The enum numeric value on the wire for type.
- */
- int getTypeValue();
-
-
- /**
- *
- * Type of the semantic node.
- *
- *
- * .NodeType type = 1;
- *
- * @return The type.
- */
- NodeTypeProto.NodeType getType();
-
-
- /**
- *
- * Specifies the position in the parsed tree structure.
- *
- *
- * repeated int32 treeId = 2;
- *
- * @return A list containing the treeId.
- */
- java.util.List
- * Specifies the position in the parsed tree structure.
- *
- *
- * repeated int32 treeId = 2;
- *
- * @return The count of treeId.
- */
- int getTreeIdCount();
-
-
- /**
- *
- * Specifies the position in the parsed tree structure.
- *
- *
- * repeated int32 treeId = 2;
- *
- * @param index The index of the element to return.
- * @return The treeId at the given index.
- */
- int getTreeId(int index);
-
-
- /**
- *
- * Specifies the text block IDs associated with this semantic node.
- *
- *
- * repeated int64 atomicBlockIds = 3;
- *
- * @return A list containing the atomicBlockIds.
- */
- java.util.List
- * Specifies the text block IDs associated with this semantic node.
- *
- *
- * repeated int64 atomicBlockIds = 3;
- *
- * @return The count of atomicBlockIds.
- */
- int getAtomicBlockIdsCount();
-
-
- /**
- *
- * Specifies the text block IDs associated with this semantic node.
- *
- *
- * repeated int64 atomicBlockIds = 3;
- *
- * @param index The index of the element to return.
- * @return The atomicBlockIds at the given index.
- */
- long getAtomicBlockIds(int index);
-
-
- /**
- *
- * Specifies the pages this semantic node appears on.
- *
- *
- * repeated int64 pageNumbers = 4;
- *
- * @return A list containing the pageNumbers.
- */
- java.util.List
- * Specifies the pages this semantic node appears on.
- *
- *
- * repeated int64 pageNumbers = 4;
- *
- * @return The count of pageNumbers.
- */
- int getPageNumbersCount();
-
-
- /**
- *
- * Specifies the pages this semantic node appears on.
- *
- *
- * repeated int64 pageNumbers = 4;
- *
- * @param index The index of the element to return.
- * @return The pageNumbers at the given index.
- */
- long getPageNumbers(int index);
-
-
- /**
- *
- * Some semantic nodes have additional information, this information is stored in this Map.
- *
- *
- * map<string, string> properties = 5;
- */
- int getPropertiesCount();
-
-
- /**
- *
- * Some semantic nodes have additional information, this information is stored in this Map.
- *
- *
- * map<string, string> properties = 5;
- */
- boolean containsProperties(String key);
-
-
- /**
- * Use {@link #getPropertiesMap()} instead.
- */
- @Deprecated
- java.util.Map
- * Some semantic nodes have additional information, this information is stored in this Map.
- *
- *
- * map<string, string> properties = 5;
- */
- java.util.Map
- * Some semantic nodes have additional information, this information is stored in this Map.
- *
- *
- * map<string, string> properties = 5;
- */
- /* nullable */
- String getPropertiesOrDefault(String key,
- /* nullable */
- String defaultValue);
-
-
- /**
- *
- * Some semantic nodes have additional information, this information is stored in this Map.
- *
- *
- * map<string, string> properties = 5;
- */
- String getPropertiesOrThrow(String key);
-
-
- /**
- *
- * All child Entries of this Entry.
- *
- *
- * repeated .EntryData children = 6;
- */
- java.util.List
- * All child Entries of this Entry.
- *
- *
- * repeated .EntryData children = 6;
- */
- EntryData getChildren(int index);
-
-
- /**
- *
- * All child Entries of this Entry.
- *
- *
- * repeated .EntryData children = 6;
- */
- int getChildrenCount();
-
-
- /**
- *
- * All child Entries of this Entry.
- *
- *
- * repeated .EntryData children = 6;
- */
- java.util.List extends EntryDataOrBuilder> getChildrenOrBuilderList();
-
-
- /**
- *
- * All child Entries of this Entry.
- *
- *
- * repeated .EntryData children = 6;
- */
- EntryDataOrBuilder getChildrenOrBuilder(int index);
-
-
- /**
- *
- * Describes the origin of the semantic node.
- *
- *
- * repeated .LayoutEngine engines = 7;
- *
- * @return A list containing the engines.
- */
- java.util.List
- * Describes the origin of the semantic node.
- *
- *
- * repeated .LayoutEngine engines = 7;
- *
- * @return The count of engines.
- */
- int getEnginesCount();
-
-
- /**
- *
- * Describes the origin of the semantic node.
- *
- *
- * repeated .LayoutEngine engines = 7;
- *
- * @param index The index of the element to return.
- * @return The engines at the given index.
- */
- LayoutEngineProto.LayoutEngine getEngines(int index);
-
-
- /**
- *
- * Describes the origin of the semantic node.
- *
- *
- * repeated .LayoutEngine engines = 7;
- *
- * @return A list containing the enum numeric values on the wire for engines.
- */
- java.util.List
- * Describes the origin of the semantic node.
- *
- *
- * repeated .LayoutEngine engines = 7;
- *
- * @param index The index of the value to return.
- * @return The enum numeric value on the wire of engines at the given index.
- */
- int getEnginesValue(int index);
-
- }
-
- /**
- * Protobuf type {@code EntryData}
- */
- public static class EntryData extends com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:EntryData)
- EntryDataOrBuilder {
-
- private static final long serialVersionUID = 0L;
-
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 27,
- /* patch= */ 1,
- /* suffix= */ "", EntryData.class.getName());
- }
-
- // Use EntryData.newBuilder() to construct.
- private EntryData(com.google.protobuf.GeneratedMessage.Builder> builder) {
-
- super(builder);
- }
-
-
- private EntryData() {
-
- type_ = 0;
- treeId_ = emptyIntList();
- atomicBlockIds_ = emptyLongList();
- pageNumbers_ = emptyLongList();
- children_ = java.util.Collections.emptyList();
- engines_ = java.util.Collections.emptyList();
- }
-
-
- public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-
- return EntryDataProto.internal_static_EntryData_descriptor;
- }
-
-
- @SuppressWarnings({"rawtypes"})
- @Override
- protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) {
-
- switch (number) {
- case 5:
- return internalGetProperties();
- default:
- throw new RuntimeException("Invalid map field number: " + number);
- }
- }
-
-
- @Override
- protected FieldAccessorTable internalGetFieldAccessorTable() {
-
- return EntryDataProto.internal_static_EntryData_fieldAccessorTable.ensureFieldAccessorsInitialized(EntryData.class, Builder.class);
- }
-
-
- public static final int TYPE_FIELD_NUMBER = 1;
- private int type_ = 0;
-
-
- /**
- *
- * Type of the semantic node.
- *
- *
- * .NodeType type = 1;
- *
- * @return The enum numeric value on the wire for type.
- */
- @Override
- public int getTypeValue() {
-
- return type_;
- }
-
-
- /**
- *
- * Type of the semantic node.
- *
- *
- * .NodeType type = 1;
- *
- * @return The type.
- */
- @Override
- public NodeTypeProto.NodeType getType() {
-
- NodeTypeProto.NodeType result = NodeTypeProto.NodeType.forNumber(type_);
- return result == null ? NodeTypeProto.NodeType.UNRECOGNIZED : result;
- }
-
-
- public static final int TREEID_FIELD_NUMBER = 2;
- @SuppressWarnings("serial")
- private com.google.protobuf.Internal.IntList treeId_ = emptyIntList();
-
-
- /**
- *
- * Specifies the position in the parsed tree structure.
- *
- *
- * repeated int32 treeId = 2;
- *
- * @return A list containing the treeId.
- */
- @Override
- public java.util.List
- * Specifies the position in the parsed tree structure.
- *
- *
- * repeated int32 treeId = 2;
- *
- * @return The count of treeId.
- */
- public int getTreeIdCount() {
-
- return treeId_.size();
- }
-
-
- /**
- *
- * Specifies the position in the parsed tree structure.
- *
- *
- * repeated int32 treeId = 2;
- *
- * @param index The index of the element to return.
- * @return The treeId at the given index.
- */
- public int getTreeId(int index) {
-
- return treeId_.getInt(index);
- }
-
-
- private int treeIdMemoizedSerializedSize = -1;
-
- public static final int ATOMICBLOCKIDS_FIELD_NUMBER = 3;
- @SuppressWarnings("serial")
- private com.google.protobuf.Internal.LongList atomicBlockIds_ = emptyLongList();
-
-
- /**
- *
- * Specifies the text block IDs associated with this semantic node.
- *
- *
- * repeated int64 atomicBlockIds = 3;
- *
- * @return A list containing the atomicBlockIds.
- */
- @Override
- public java.util.List
- * Specifies the text block IDs associated with this semantic node.
- *
- *
- * repeated int64 atomicBlockIds = 3;
- *
- * @return The count of atomicBlockIds.
- */
- public int getAtomicBlockIdsCount() {
-
- return atomicBlockIds_.size();
- }
-
-
- /**
- *
- * Specifies the text block IDs associated with this semantic node.
- *
- *
- * repeated int64 atomicBlockIds = 3;
- *
- * @param index The index of the element to return.
- * @return The atomicBlockIds at the given index.
- */
- public long getAtomicBlockIds(int index) {
-
- return atomicBlockIds_.getLong(index);
- }
-
-
- private int atomicBlockIdsMemoizedSerializedSize = -1;
-
- public static final int PAGENUMBERS_FIELD_NUMBER = 4;
- @SuppressWarnings("serial")
- private com.google.protobuf.Internal.LongList pageNumbers_ = emptyLongList();
-
-
- /**
- *
- * Specifies the pages this semantic node appears on.
- *
- *
- * repeated int64 pageNumbers = 4;
- *
- * @return A list containing the pageNumbers.
- */
- @Override
- public java.util.List
- * Specifies the pages this semantic node appears on.
- *
- *
- * repeated int64 pageNumbers = 4;
- *
- * @return The count of pageNumbers.
- */
- public int getPageNumbersCount() {
-
- return pageNumbers_.size();
- }
-
-
- /**
- *
- * Specifies the pages this semantic node appears on.
- *
- *
- * repeated int64 pageNumbers = 4;
- *
- * @param index The index of the element to return.
- * @return The pageNumbers at the given index.
- */
- public long getPageNumbers(int index) {
-
- return pageNumbers_.getLong(index);
- }
-
-
- private int pageNumbersMemoizedSerializedSize = -1;
-
- public static final int PROPERTIES_FIELD_NUMBER = 5;
-
- private static final class PropertiesDefaultEntryHolder {
-
- static final com.google.protobuf.MapEntry
- * Some semantic nodes have additional information, this information is stored in this Map.
- *
- *
- * map<string, string> properties = 5;
- */
- @Override
- public boolean containsProperties(String key) {
-
- if (key == null) {
- throw new NullPointerException("map key");
- }
- return internalGetProperties().getMap().containsKey(key);
- }
-
-
- /**
- * Use {@link #getPropertiesMap()} instead.
- */
- @Override
- @Deprecated
- public java.util.Map
- * Some semantic nodes have additional information, this information is stored in this Map.
- *
- *
- * map<string, string> properties = 5;
- */
- @Override
- public java.util.Map
- * Some semantic nodes have additional information, this information is stored in this Map.
- *
- *
- * map<string, string> properties = 5;
- */
- @Override
- public /* nullable */
- String getPropertiesOrDefault(String key,
- /* nullable */
- String defaultValue) {
-
- if (key == null) {
- throw new NullPointerException("map key");
- }
- java.util.Map
- * Some semantic nodes have additional information, this information is stored in this Map.
- *
- *
- * map<string, string> properties = 5;
- */
- @Override
- public String getPropertiesOrThrow(String key) {
-
- if (key == null) {
- throw new NullPointerException("map key");
- }
- java.util.Map
- * All child Entries of this Entry.
- *
- *
- * repeated .EntryData children = 6;
- */
- @Override
- public java.util.List
- * All child Entries of this Entry.
- *
- *
- * repeated .EntryData children = 6;
- */
- @Override
- public java.util.List extends EntryDataOrBuilder> getChildrenOrBuilderList() {
-
- return children_;
- }
-
-
- /**
- *
- * All child Entries of this Entry.
- *
- *
- * repeated .EntryData children = 6;
- */
- @Override
- public int getChildrenCount() {
-
- return children_.size();
- }
-
-
- /**
- *
- * All child Entries of this Entry.
- *
- *
- * repeated .EntryData children = 6;
- */
- @Override
- public EntryData getChildren(int index) {
-
- return children_.get(index);
- }
-
-
- /**
- *
- * All child Entries of this Entry.
- *
- *
- * repeated .EntryData children = 6;
- */
- @Override
- public EntryDataOrBuilder getChildrenOrBuilder(int index) {
-
- return children_.get(index);
- }
-
-
- public static final int ENGINES_FIELD_NUMBER = 7;
- @SuppressWarnings("serial")
- private java.util.List
- * Describes the origin of the semantic node.
- *
- *
- * repeated .LayoutEngine engines = 7;
- *
- * @return A list containing the engines.
- */
- @Override
- public java.util.List
- * Describes the origin of the semantic node.
- *
- *
- * repeated .LayoutEngine engines = 7;
- *
- * @return The count of engines.
- */
- @Override
- public int getEnginesCount() {
-
- return engines_.size();
- }
-
-
- /**
- *
- * Describes the origin of the semantic node.
- *
- *
- * repeated .LayoutEngine engines = 7;
- *
- * @param index The index of the element to return.
- * @return The engines at the given index.
- */
- @Override
- public LayoutEngineProto.LayoutEngine getEngines(int index) {
-
- return engines_converter_.convert(engines_.get(index));
- }
-
-
- /**
- *
- * Describes the origin of the semantic node.
- *
- *
- * repeated .LayoutEngine engines = 7;
- *
- * @return A list containing the enum numeric values on the wire for engines.
- */
- @Override
- public java.util.List
- * Describes the origin of the semantic node.
- *
- *
- * repeated .LayoutEngine engines = 7;
- *
- * @param index The index of the value to return.
- * @return The enum numeric value on the wire of engines at the given index.
- */
- @Override
- public int getEnginesValue(int index) {
-
- return engines_.get(index);
- }
-
-
- private int enginesMemoizedSerializedSize;
-
- private byte memoizedIsInitialized = -1;
-
-
- @Override
- public final boolean isInitialized() {
-
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) {
- return true;
- }
- if (isInitialized == 0) {
- return false;
- }
-
- memoizedIsInitialized = 1;
- return true;
- }
-
-
- @Override
- public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-
- getSerializedSize();
- if (type_ != NodeTypeProto.NodeType.DOCUMENT.getNumber()) {
- output.writeEnum(1, type_);
- }
- if (getTreeIdList().size() > 0) {
- output.writeUInt32NoTag(18);
- output.writeUInt32NoTag(treeIdMemoizedSerializedSize);
- }
- for (int i = 0; i < treeId_.size(); i++) {
- output.writeInt32NoTag(treeId_.getInt(i));
- }
- if (getAtomicBlockIdsList().size() > 0) {
- output.writeUInt32NoTag(26);
- output.writeUInt32NoTag(atomicBlockIdsMemoizedSerializedSize);
- }
- for (int i = 0; i < atomicBlockIds_.size(); i++) {
- output.writeInt64NoTag(atomicBlockIds_.getLong(i));
- }
- if (getPageNumbersList().size() > 0) {
- output.writeUInt32NoTag(34);
- output.writeUInt32NoTag(pageNumbersMemoizedSerializedSize);
- }
- for (int i = 0; i < pageNumbers_.size(); i++) {
- output.writeInt64NoTag(pageNumbers_.getLong(i));
- }
- com.google.protobuf.GeneratedMessage.serializeStringMapTo(output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 5);
- for (int i = 0; i < children_.size(); i++) {
- output.writeMessage(6, children_.get(i));
- }
- if (getEnginesList().size() > 0) {
- output.writeUInt32NoTag(58);
- output.writeUInt32NoTag(enginesMemoizedSerializedSize);
- }
- for (int i = 0; i < engines_.size(); i++) {
- output.writeEnumNoTag(engines_.get(i));
- }
- getUnknownFields().writeTo(output);
- }
-
-
- @Override
- public int getSerializedSize() {
-
- int size = memoizedSize;
- if (size != -1) {
- return size;
- }
-
- size = 0;
- if (type_ != NodeTypeProto.NodeType.DOCUMENT.getNumber()) {
- size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_);
- }
- {
- int dataSize = 0;
- for (int i = 0; i < treeId_.size(); i++) {
- dataSize += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(treeId_.getInt(i));
- }
- size += dataSize;
- if (!getTreeIdList().isEmpty()) {
- size += 1;
- size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize);
- }
- treeIdMemoizedSerializedSize = dataSize;
- }
- {
- int dataSize = 0;
- for (int i = 0; i < atomicBlockIds_.size(); i++) {
- dataSize += com.google.protobuf.CodedOutputStream.computeInt64SizeNoTag(atomicBlockIds_.getLong(i));
- }
- size += dataSize;
- if (!getAtomicBlockIdsList().isEmpty()) {
- size += 1;
- size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize);
- }
- atomicBlockIdsMemoizedSerializedSize = dataSize;
- }
- {
- int dataSize = 0;
- for (int i = 0; i < pageNumbers_.size(); i++) {
- dataSize += com.google.protobuf.CodedOutputStream.computeInt64SizeNoTag(pageNumbers_.getLong(i));
- }
- size += dataSize;
- if (!getPageNumbersList().isEmpty()) {
- size += 1;
- size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize);
- }
- pageNumbersMemoizedSerializedSize = dataSize;
- }
- for (java.util.Map.Entry
- * Type of the semantic node.
- *
- *
- * .NodeType type = 1;
- *
- * @return The enum numeric value on the wire for type.
- */
- @Override
- public int getTypeValue() {
-
- return type_;
- }
-
-
- /**
- *
- * Type of the semantic node.
- *
- *
- * .NodeType type = 1;
- *
- * @param value The enum numeric value on the wire for type to set.
- * @return This builder for chaining.
- */
- public Builder setTypeValue(int value) {
-
- type_ = value;
- bitField0_ |= 0x00000001;
- onChanged();
- return this;
- }
-
-
- /**
- *
- * Type of the semantic node.
- *
- *
- * .NodeType type = 1;
- *
- * @return The type.
- */
- @Override
- public NodeTypeProto.NodeType getType() {
-
- NodeTypeProto.NodeType result = NodeTypeProto.NodeType.forNumber(type_);
- return result == null ? NodeTypeProto.NodeType.UNRECOGNIZED : result;
- }
-
-
- /**
- *
- * Type of the semantic node.
- *
- *
- * .NodeType type = 1;
- *
- * @param value The type to set.
- * @return This builder for chaining.
- */
- public Builder setType(NodeTypeProto.NodeType value) {
-
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
- type_ = value.getNumber();
- onChanged();
- return this;
- }
-
-
- /**
- *
- * Type of the semantic node.
- *
- *
- * .NodeType type = 1;
- *
- * @return This builder for chaining.
- */
- public Builder clearType() {
-
- bitField0_ = (bitField0_ & ~0x00000001);
- type_ = 0;
- onChanged();
- return this;
- }
-
-
- private com.google.protobuf.Internal.IntList treeId_ = emptyIntList();
-
-
- private void ensureTreeIdIsMutable() {
-
- if (!treeId_.isModifiable()) {
- treeId_ = makeMutableCopy(treeId_);
- }
- bitField0_ |= 0x00000002;
- }
-
-
- /**
- *
- * Specifies the position in the parsed tree structure.
- *
- *
- * repeated int32 treeId = 2;
- *
- * @return A list containing the treeId.
- */
- public java.util.List
- * Specifies the position in the parsed tree structure.
- *
- *
- * repeated int32 treeId = 2;
- *
- * @return The count of treeId.
- */
- public int getTreeIdCount() {
-
- return treeId_.size();
- }
-
-
- /**
- *
- * Specifies the position in the parsed tree structure.
- *
- *
- * repeated int32 treeId = 2;
- *
- * @param index The index of the element to return.
- * @return The treeId at the given index.
- */
- public int getTreeId(int index) {
-
- return treeId_.getInt(index);
- }
-
-
- /**
- *
- * Specifies the position in the parsed tree structure.
- *
- *
- * repeated int32 treeId = 2;
- *
- * @param index The index to set the value at.
- * @param value The treeId to set.
- * @return This builder for chaining.
- */
- public Builder setTreeId(int index, int value) {
-
- ensureTreeIdIsMutable();
- treeId_.setInt(index, value);
- bitField0_ |= 0x00000002;
- onChanged();
- return this;
- }
-
-
- /**
- *
- * Specifies the position in the parsed tree structure.
- *
- *
- * repeated int32 treeId = 2;
- *
- * @param value The treeId to add.
- * @return This builder for chaining.
- */
- public Builder addTreeId(int value) {
-
- ensureTreeIdIsMutable();
- treeId_.addInt(value);
- bitField0_ |= 0x00000002;
- onChanged();
- return this;
- }
-
-
- /**
- *
- * Specifies the position in the parsed tree structure.
- *
- *
- * repeated int32 treeId = 2;
- *
- * @param values The treeId to add.
- * @return This builder for chaining.
- */
- public Builder addAllTreeId(Iterable extends Integer> values) {
-
- ensureTreeIdIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(values, treeId_);
- bitField0_ |= 0x00000002;
- onChanged();
- return this;
- }
-
-
- /**
- *
- * Specifies the position in the parsed tree structure.
- *
- *
- * repeated int32 treeId = 2;
- *
- * @return This builder for chaining.
- */
- public Builder clearTreeId() {
-
- treeId_ = emptyIntList();
- bitField0_ = (bitField0_ & ~0x00000002);
- onChanged();
- return this;
- }
-
-
- private com.google.protobuf.Internal.LongList atomicBlockIds_ = emptyLongList();
-
-
- private void ensureAtomicBlockIdsIsMutable() {
-
- if (!atomicBlockIds_.isModifiable()) {
- atomicBlockIds_ = makeMutableCopy(atomicBlockIds_);
- }
- bitField0_ |= 0x00000004;
- }
-
-
- /**
- *
- * Specifies the text block IDs associated with this semantic node.
- *
- *
- * repeated int64 atomicBlockIds = 3;
- *
- * @return A list containing the atomicBlockIds.
- */
- public java.util.List
- * Specifies the text block IDs associated with this semantic node.
- *
- *
- * repeated int64 atomicBlockIds = 3;
- *
- * @return The count of atomicBlockIds.
- */
- public int getAtomicBlockIdsCount() {
-
- return atomicBlockIds_.size();
- }
-
-
- /**
- *
- * Specifies the text block IDs associated with this semantic node.
- *
- *
- * repeated int64 atomicBlockIds = 3;
- *
- * @param index The index of the element to return.
- * @return The atomicBlockIds at the given index.
- */
- public long getAtomicBlockIds(int index) {
-
- return atomicBlockIds_.getLong(index);
- }
-
-
- /**
- *
- * Specifies the text block IDs associated with this semantic node.
- *
- *
- * repeated int64 atomicBlockIds = 3;
- *
- * @param index The index to set the value at.
- * @param value The atomicBlockIds to set.
- * @return This builder for chaining.
- */
- public Builder setAtomicBlockIds(int index, long value) {
-
- ensureAtomicBlockIdsIsMutable();
- atomicBlockIds_.setLong(index, value);
- bitField0_ |= 0x00000004;
- onChanged();
- return this;
- }
-
-
- /**
- *
- * Specifies the text block IDs associated with this semantic node.
- *
- *
- * repeated int64 atomicBlockIds = 3;
- *
- * @param value The atomicBlockIds to add.
- * @return This builder for chaining.
- */
- public Builder addAtomicBlockIds(long value) {
-
- ensureAtomicBlockIdsIsMutable();
- atomicBlockIds_.addLong(value);
- bitField0_ |= 0x00000004;
- onChanged();
- return this;
- }
-
-
- /**
- *
- * Specifies the text block IDs associated with this semantic node.
- *
- *
- * repeated int64 atomicBlockIds = 3;
- *
- * @param values The atomicBlockIds to add.
- * @return This builder for chaining.
- */
- public Builder addAllAtomicBlockIds(Iterable extends Long> values) {
-
- ensureAtomicBlockIdsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(values, atomicBlockIds_);
- bitField0_ |= 0x00000004;
- onChanged();
- return this;
- }
-
-
- /**
- *
- * Specifies the text block IDs associated with this semantic node.
- *
- *
- * repeated int64 atomicBlockIds = 3;
- *
- * @return This builder for chaining.
- */
- public Builder clearAtomicBlockIds() {
-
- atomicBlockIds_ = emptyLongList();
- bitField0_ = (bitField0_ & ~0x00000004);
- onChanged();
- return this;
- }
-
-
- private com.google.protobuf.Internal.LongList pageNumbers_ = emptyLongList();
-
-
- private void ensurePageNumbersIsMutable() {
-
- if (!pageNumbers_.isModifiable()) {
- pageNumbers_ = makeMutableCopy(pageNumbers_);
- }
- bitField0_ |= 0x00000008;
- }
-
-
- /**
- *
- * Specifies the pages this semantic node appears on.
- *
- *
- * repeated int64 pageNumbers = 4;
- *
- * @return A list containing the pageNumbers.
- */
- public java.util.List
- * Specifies the pages this semantic node appears on.
- *
- *
- * repeated int64 pageNumbers = 4;
- *
- * @return The count of pageNumbers.
- */
- public int getPageNumbersCount() {
-
- return pageNumbers_.size();
- }
-
-
- /**
- *
- * Specifies the pages this semantic node appears on.
- *
- *
- * repeated int64 pageNumbers = 4;
- *
- * @param index The index of the element to return.
- * @return The pageNumbers at the given index.
- */
- public long getPageNumbers(int index) {
-
- return pageNumbers_.getLong(index);
- }
-
-
- /**
- *
- * Specifies the pages this semantic node appears on.
- *
- *
- * repeated int64 pageNumbers = 4;
- *
- * @param index The index to set the value at.
- * @param value The pageNumbers to set.
- * @return This builder for chaining.
- */
- public Builder setPageNumbers(int index, long value) {
-
- ensurePageNumbersIsMutable();
- pageNumbers_.setLong(index, value);
- bitField0_ |= 0x00000008;
- onChanged();
- return this;
- }
-
-
- /**
- *
- * Specifies the pages this semantic node appears on.
- *
- *
- * repeated int64 pageNumbers = 4;
- *
- * @param value The pageNumbers to add.
- * @return This builder for chaining.
- */
- public Builder addPageNumbers(long value) {
-
- ensurePageNumbersIsMutable();
- pageNumbers_.addLong(value);
- bitField0_ |= 0x00000008;
- onChanged();
- return this;
- }
-
-
- /**
- *
- * Specifies the pages this semantic node appears on.
- *
- *
- * repeated int64 pageNumbers = 4;
- *
- * @param values The pageNumbers to add.
- * @return This builder for chaining.
- */
- public Builder addAllPageNumbers(Iterable extends Long> values) {
-
- ensurePageNumbersIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pageNumbers_);
- bitField0_ |= 0x00000008;
- onChanged();
- return this;
- }
-
-
- /**
- *
- * Specifies the pages this semantic node appears on.
- *
- *
- * repeated int64 pageNumbers = 4;
- *
- * @return This builder for chaining.
- */
- public Builder clearPageNumbers() {
-
- pageNumbers_ = emptyLongList();
- bitField0_ = (bitField0_ & ~0x00000008);
- onChanged();
- return this;
- }
-
-
- private com.google.protobuf.MapField
- * Some semantic nodes have additional information, this information is stored in this Map.
- *
- *
- * map<string, string> properties = 5;
- */
- @Override
- public boolean containsProperties(String key) {
-
- if (key == null) {
- throw new NullPointerException("map key");
- }
- return internalGetProperties().getMap().containsKey(key);
- }
-
-
- /**
- * Use {@link #getPropertiesMap()} instead.
- */
- @Override
- @Deprecated
- public java.util.Map
- * Some semantic nodes have additional information, this information is stored in this Map.
- *
- *
- * map<string, string> properties = 5;
- */
- @Override
- public java.util.Map
- * Some semantic nodes have additional information, this information is stored in this Map.
- *
- *
- * map<string, string> properties = 5;
- */
- @Override
- public /* nullable */
- String getPropertiesOrDefault(String key,
- /* nullable */
- String defaultValue) {
-
- if (key == null) {
- throw new NullPointerException("map key");
- }
- java.util.Map
- * Some semantic nodes have additional information, this information is stored in this Map.
- *
- *
- * map<string, string> properties = 5;
- */
- @Override
- public String getPropertiesOrThrow(String key) {
-
- if (key == null) {
- throw new NullPointerException("map key");
- }
- java.util.Map
- * Some semantic nodes have additional information, this information is stored in this Map.
- *
- *
- * map<string, string> properties = 5;
- */
- public Builder removeProperties(String key) {
-
- if (key == null) {
- throw new NullPointerException("map key");
- }
- internalGetMutableProperties().getMutableMap().remove(key);
- return this;
- }
-
-
- /**
- * Use alternate mutation accessors instead.
- */
- @Deprecated
- public java.util.Map
- * Some semantic nodes have additional information, this information is stored in this Map.
- *
- *
- * map<string, string> properties = 5;
- */
- public Builder putProperties(String key, String value) {
-
- if (key == null) {
- throw new NullPointerException("map key");
- }
- if (value == null) {
- throw new NullPointerException("map value");
- }
- internalGetMutableProperties().getMutableMap().put(key, value);
- bitField0_ |= 0x00000010;
- return this;
- }
-
-
- /**
- *
- * Some semantic nodes have additional information, this information is stored in this Map.
- *
- *
- * map<string, string> properties = 5;
- */
- public Builder putAllProperties(java.util.Map
- * All child Entries of this Entry.
- *
- *
- * repeated .EntryData children = 6;
- */
- public java.util.List
- * All child Entries of this Entry.
- *
- *
- * repeated .EntryData children = 6;
- */
- public int getChildrenCount() {
-
- if (childrenBuilder_ == null) {
- return children_.size();
- } else {
- return childrenBuilder_.getCount();
- }
- }
-
-
- /**
- *
- * All child Entries of this Entry.
- *
- *
- * repeated .EntryData children = 6;
- */
- public EntryData getChildren(int index) {
-
- if (childrenBuilder_ == null) {
- return children_.get(index);
- } else {
- return childrenBuilder_.getMessage(index);
- }
- }
-
-
- /**
- *
- * All child Entries of this Entry.
- *
- *
- * repeated .EntryData children = 6;
- */
- public Builder setChildren(int index, EntryData value) {
-
- if (childrenBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureChildrenIsMutable();
- children_.set(index, value);
- onChanged();
- } else {
- childrenBuilder_.setMessage(index, value);
- }
- return this;
- }
-
-
- /**
- *
- * All child Entries of this Entry.
- *
- *
- * repeated .EntryData children = 6;
- */
- public Builder setChildren(int index, Builder builderForValue) {
-
- if (childrenBuilder_ == null) {
- ensureChildrenIsMutable();
- children_.set(index, builderForValue.build());
- onChanged();
- } else {
- childrenBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
-
-
- /**
- *
- * All child Entries of this Entry.
- *
- *
- * repeated .EntryData children = 6;
- */
- public Builder addChildren(EntryData value) {
-
- if (childrenBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureChildrenIsMutable();
- children_.add(value);
- onChanged();
- } else {
- childrenBuilder_.addMessage(value);
- }
- return this;
- }
-
-
- /**
- *
- * All child Entries of this Entry.
- *
- *
- * repeated .EntryData children = 6;
- */
- public Builder addChildren(int index, EntryData value) {
-
- if (childrenBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureChildrenIsMutable();
- children_.add(index, value);
- onChanged();
- } else {
- childrenBuilder_.addMessage(index, value);
- }
- return this;
- }
-
-
- /**
- *
- * All child Entries of this Entry.
- *
- *
- * repeated .EntryData children = 6;
- */
- public Builder addChildren(Builder builderForValue) {
-
- if (childrenBuilder_ == null) {
- ensureChildrenIsMutable();
- children_.add(builderForValue.build());
- onChanged();
- } else {
- childrenBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
-
-
- /**
- *
- * All child Entries of this Entry.
- *
- *
- * repeated .EntryData children = 6;
- */
- public Builder addChildren(int index, Builder builderForValue) {
-
- if (childrenBuilder_ == null) {
- ensureChildrenIsMutable();
- children_.add(index, builderForValue.build());
- onChanged();
- } else {
- childrenBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
-
-
- /**
- *
- * All child Entries of this Entry.
- *
- *
- * repeated .EntryData children = 6;
- */
- public Builder addAllChildren(Iterable extends EntryData> values) {
-
- if (childrenBuilder_ == null) {
- ensureChildrenIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(values, children_);
- onChanged();
- } else {
- childrenBuilder_.addAllMessages(values);
- }
- return this;
- }
-
-
- /**
- *
- * All child Entries of this Entry.
- *
- *
- * repeated .EntryData children = 6;
- */
- public Builder clearChildren() {
-
- if (childrenBuilder_ == null) {
- children_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000020);
- onChanged();
- } else {
- childrenBuilder_.clear();
- }
- return this;
- }
-
-
- /**
- *
- * All child Entries of this Entry.
- *
- *
- * repeated .EntryData children = 6;
- */
- public Builder removeChildren(int index) {
-
- if (childrenBuilder_ == null) {
- ensureChildrenIsMutable();
- children_.remove(index);
- onChanged();
- } else {
- childrenBuilder_.remove(index);
- }
- return this;
- }
-
-
- /**
- *
- * All child Entries of this Entry.
- *
- *
- * repeated .EntryData children = 6;
- */
- public Builder getChildrenBuilder(int index) {
-
- return getChildrenFieldBuilder().getBuilder(index);
- }
-
-
- /**
- *
- * All child Entries of this Entry.
- *
- *
- * repeated .EntryData children = 6;
- */
- public EntryDataOrBuilder getChildrenOrBuilder(int index) {
-
- if (childrenBuilder_ == null) {
- return children_.get(index);
- } else {
- return childrenBuilder_.getMessageOrBuilder(index);
- }
- }
-
-
- /**
- *
- * All child Entries of this Entry.
- *
- *
- * repeated .EntryData children = 6;
- */
- public java.util.List extends EntryDataOrBuilder> getChildrenOrBuilderList() {
-
- if (childrenBuilder_ != null) {
- return childrenBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(children_);
- }
- }
-
-
- /**
- *
- * All child Entries of this Entry.
- *
- *
- * repeated .EntryData children = 6;
- */
- public Builder addChildrenBuilder() {
-
- return getChildrenFieldBuilder().addBuilder(EntryData.getDefaultInstance());
- }
-
-
- /**
- *
- * All child Entries of this Entry.
- *
- *
- * repeated .EntryData children = 6;
- */
- public Builder addChildrenBuilder(int index) {
-
- return getChildrenFieldBuilder().addBuilder(index, EntryData.getDefaultInstance());
- }
-
-
- /**
- *
- * All child Entries of this Entry.
- *
- *
- * repeated .EntryData children = 6;
- */
- public java.util.List
- * Describes the origin of the semantic node.
- *
- *
- * repeated .LayoutEngine engines = 7;
- *
- * @return A list containing the engines.
- */
- public java.util.List
- * Describes the origin of the semantic node.
- *
- *
- * repeated .LayoutEngine engines = 7;
- *
- * @return The count of engines.
- */
- public int getEnginesCount() {
-
- return engines_.size();
- }
-
-
- /**
- *
- * Describes the origin of the semantic node.
- *
- *
- * repeated .LayoutEngine engines = 7;
- *
- * @param index The index of the element to return.
- * @return The engines at the given index.
- */
- public LayoutEngineProto.LayoutEngine getEngines(int index) {
-
- return engines_converter_.convert(engines_.get(index));
- }
-
-
- /**
- *
- * Describes the origin of the semantic node.
- *
- *
- * repeated .LayoutEngine engines = 7;
- *
- * @param index The index to set the value at.
- * @param value The engines to set.
- * @return This builder for chaining.
- */
- public Builder setEngines(int index, LayoutEngineProto.LayoutEngine value) {
-
- if (value == null) {
- throw new NullPointerException();
- }
- ensureEnginesIsMutable();
- engines_.set(index, value.getNumber());
- onChanged();
- return this;
- }
-
-
- /**
- *
- * Describes the origin of the semantic node.
- *
- *
- * repeated .LayoutEngine engines = 7;
- *
- * @param value The engines to add.
- * @return This builder for chaining.
- */
- public Builder addEngines(LayoutEngineProto.LayoutEngine value) {
-
- if (value == null) {
- throw new NullPointerException();
- }
- ensureEnginesIsMutable();
- engines_.add(value.getNumber());
- onChanged();
- return this;
- }
-
-
- /**
- *
- * Describes the origin of the semantic node.
- *
- *
- * repeated .LayoutEngine engines = 7;
- *
- * @param values The engines to add.
- * @return This builder for chaining.
- */
- public Builder addAllEngines(Iterable extends LayoutEngineProto.LayoutEngine> values) {
-
- ensureEnginesIsMutable();
- for (LayoutEngineProto.LayoutEngine value : values) {
- engines_.add(value.getNumber());
- }
- onChanged();
- return this;
- }
-
-
- /**
- *
- * Describes the origin of the semantic node.
- *
- *
- * repeated .LayoutEngine engines = 7;
- *
- * @return This builder for chaining.
- */
- public Builder clearEngines() {
-
- engines_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000040);
- onChanged();
- return this;
- }
-
-
- /**
- *
- * Describes the origin of the semantic node.
- *
- *
- * repeated .LayoutEngine engines = 7;
- *
- * @return A list containing the enum numeric values on the wire for engines.
- */
- public java.util.List
- * Describes the origin of the semantic node.
- *
- *
- * repeated .LayoutEngine engines = 7;
- *
- * @param index The index of the value to return.
- * @return The enum numeric value on the wire of engines at the given index.
- */
- public int getEnginesValue(int index) {
-
- return engines_.get(index);
- }
-
-
- /**
- *
- * Describes the origin of the semantic node.
- *
- *
- * repeated .LayoutEngine engines = 7;
- *
- * @param index The index to set the value at.
- * @param value The enum numeric value on the wire for engines to set.
- * @return This builder for chaining.
- */
- public Builder setEnginesValue(int index, int value) {
-
- ensureEnginesIsMutable();
- engines_.set(index, value);
- onChanged();
- return this;
- }
-
-
- /**
- *
- * Describes the origin of the semantic node.
- *
- *
- * repeated .LayoutEngine engines = 7;
- *
- * @param value The enum numeric value on the wire for engines to add.
- * @return This builder for chaining.
- */
- public Builder addEnginesValue(int value) {
-
- ensureEnginesIsMutable();
- engines_.add(value);
- onChanged();
- return this;
- }
-
-
- /**
- *
- * Describes the origin of the semantic node.
- *
- *
- * repeated .LayoutEngine engines = 7;
- *
- * @param values The enum numeric values on the wire for engines to add.
- * @return This builder for chaining.
- */
- public Builder addAllEnginesValue(IterableALGORITHM = 0;
- */
- ALGORITHM(0),
- /**
- * AI = 1;
- */
- AI(1),
- /**
- * OUTLINE = 2;
- */
- OUTLINE(2),
- UNRECOGNIZED(-1),
- ;
-
-
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 27,
- /* patch= */ 1,
- /* suffix= */ "", LayoutEngine.class.getName());
- }
-
- /**
- * ALGORITHM = 0;
- */
- public static final int ALGORITHM_VALUE = 0;
- /**
- * AI = 1;
- */
- public static final int AI_VALUE = 1;
- /**
- * OUTLINE = 2;
- */
- public static final int OUTLINE_VALUE = 2;
-
-
- public final int getNumber() {
-
- if (this == UNRECOGNIZED) {
- throw new IllegalArgumentException("Can't get the number of an unknown enum value.");
- }
- return value;
- }
-
-
- /**
- * @param value The numeric wire value of the corresponding enum entry.
- * @return The enum associated with the given numeric wire value.
- * @deprecated Use {@link #forNumber(int)} instead.
- */
- @Deprecated
- public static LayoutEngine valueOf(int value) {
-
- return forNumber(value);
- }
-
-
- /**
- * @param value The numeric wire value of the corresponding enum entry.
- * @return The enum associated with the given numeric wire value.
- */
- public static LayoutEngine forNumber(int value) {
-
- switch (value) {
- case 0:
- return ALGORITHM;
- case 1:
- return AI;
- case 2:
- return OUTLINE;
- default:
- return null;
- }
- }
-
-
- public static com.google.protobuf.Internal.EnumLiteMapDOCUMENT = 0;
- */
- DOCUMENT(0),
- /**
- * SECTION = 1;
- */
- SECTION(1),
- /**
- * SUPER_SECTION = 2;
- */
- SUPER_SECTION(2),
- /**
- * HEADLINE = 3;
- */
- HEADLINE(3),
- /**
- * PARAGRAPH = 4;
- */
- PARAGRAPH(4),
- /**
- * TABLE = 5;
- */
- TABLE(5),
- /**
- * TABLE_CELL = 6;
- */
- TABLE_CELL(6),
- /**
- * IMAGE = 7;
- */
- IMAGE(7),
- /**
- * HEADER = 8;
- */
- HEADER(8),
- /**
- * FOOTER = 9;
- */
- FOOTER(9),
- UNRECOGNIZED(-1),
- ;
-
-
- public String toString() {
-
- return this.name().charAt(0) + this.name().substring(1).toLowerCase(Locale.ROOT);
- }
-
-
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 27,
- /* patch= */ 1,
- /* suffix= */ "", NodeType.class.getName());
- }
-
- /**
- * DOCUMENT = 0;
- */
- public static final int DOCUMENT_VALUE = 0;
- /**
- * SECTION = 1;
- */
- public static final int SECTION_VALUE = 1;
- /**
- * SUPER_SECTION = 2;
- */
- public static final int SUPER_SECTION_VALUE = 2;
- /**
- * HEADLINE = 3;
- */
- public static final int HEADLINE_VALUE = 3;
- /**
- * PARAGRAPH = 4;
- */
- public static final int PARAGRAPH_VALUE = 4;
- /**
- * TABLE = 5;
- */
- public static final int TABLE_VALUE = 5;
- /**
- * TABLE_CELL = 6;
- */
- public static final int TABLE_CELL_VALUE = 6;
- /**
- * IMAGE = 7;
- */
- public static final int IMAGE_VALUE = 7;
- /**
- * HEADER = 8;
- */
- public static final int HEADER_VALUE = 8;
- /**
- * FOOTER = 9;
- */
- public static final int FOOTER_VALUE = 9;
-
-
- public final int getNumber() {
-
- if (this == UNRECOGNIZED) {
- throw new IllegalArgumentException("Can't get the number of an unknown enum value.");
- }
- return value;
- }
-
-
- /**
- * @param value The numeric wire value of the corresponding enum entry.
- * @return The enum associated with the given numeric wire value.
- * @deprecated Use {@link #forNumber(int)} instead.
- */
- @Deprecated
- public static NodeType valueOf(int value) {
-
- return forNumber(value);
- }
-
-
- /**
- * @param value The numeric wire value of the corresponding enum entry.
- * @return The enum associated with the given numeric wire value.
- */
- public static NodeType forNumber(int value) {
-
- switch (value) {
- case 0:
- return DOCUMENT;
- case 1:
- return SECTION;
- case 2:
- return SUPER_SECTION;
- case 3:
- return HEADLINE;
- case 4:
- return PARAGRAPH;
- case 5:
- return TABLE;
- case 6:
- return TABLE_CELL;
- case 7:
- return IMAGE;
- case 8:
- return HEADER;
- case 9:
- return FOOTER;
- default:
- return null;
- }
- }
-
-
- public static com.google.protobuf.Internal.EnumLiteMap