repeated .DocumentPage documentPages = 1;
+ */
+ java.util.Listrepeated .DocumentPage documentPages = 1;
+ */
+ com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPageProto.DocumentPage getDocumentPages(int index);
+ /**
+ * repeated .DocumentPage documentPages = 1;
+ */
+ int getDocumentPagesCount();
+ /**
+ * repeated .DocumentPage documentPages = 1;
+ */
+ java.util.List extends com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPageProto.DocumentPageOrBuilder>
+ getDocumentPagesOrBuilderList();
+ /**
+ * repeated .DocumentPage documentPages = 1;
+ */
+ com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.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= */ "", DocumentPageProto.class.getName());
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 28,
+ /* patch= */ 3,
+ /* 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 void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {
-
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPageProto.internal_static_AllDocumentPages_descriptor;
}
-
- public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
-
- registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPageProto.internal_static_AllDocumentPages_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPageProto.AllDocumentPages.class, com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPageProto.AllDocumentPages.Builder.class);
}
-
- public interface AllDocumentPagesOrBuilder extends
- // @@protoc_insertion_point(interface_extends:AllDocumentPages)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * 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);
-
+ 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 com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.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 com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPageProto.DocumentPage getDocumentPages(int index) {
+ return documentPages_.get(index);
+ }
+ /**
+ * repeated .DocumentPage documentPages = 1;
+ */
+ @java.lang.Override
+ public com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.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 com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPageProto.AllDocumentPages)) {
+ return super.equals(obj);
+ }
+ com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPageProto.AllDocumentPages other = (com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.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 com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPageProto.AllDocumentPages parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPageProto.AllDocumentPages parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPageProto.AllDocumentPages parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.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 com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPageProto.AllDocumentPages parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPageProto.AllDocumentPages parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPageProto.AllDocumentPages parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.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 com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPageProto.AllDocumentPages parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.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 com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPageProto.AllDocumentPages parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.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(com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.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 AllDocumentPages extends com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:AllDocumentPages)
- AllDocumentPagesOrBuilder {
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builderrepeated .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;
+ private void buildPartialRepeatedFields(com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPageProto.AllDocumentPages result) {
+ if (documentPagesBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ documentPages_ = java.util.Collections.unmodifiableList(documentPages_);
+ bitField0_ = (bitField0_ & ~0x00000001);
}
- if (isInitialized == 0) {
- return false;
+ result.documentPages_ = documentPages_;
+ } else {
+ result.documentPages_ = documentPagesBuilder_.build();
+ }
+ }
+
+ private void buildPartial0(com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPageProto.AllDocumentPages result) {
+ int from_bitField0_ = bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPageProto.AllDocumentPages) {
+ return mergeFrom((com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPageProto.AllDocumentPages)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPageProto.AllDocumentPages other) {
+ if (other == com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPageProto.AllDocumentPages.getDefaultInstance()) return this;
+ if (documentPagesBuilder_ == null) {
+ if (!other.documentPages_.isEmpty()) {
+ if (documentPages_.isEmpty()) {
+ documentPages_ = other.documentPages_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureDocumentPagesIsMutable();
+ documentPages_.addAll(other.documentPages_);
+ }
+ onChanged();
}
-
- 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));
+ } else {
+ if (!other.documentPages_.isEmpty()) {
+ if (documentPagesBuilder_.isEmpty()) {
+ documentPagesBuilder_.dispose();
+ documentPagesBuilder_ = null;
+ documentPages_ = other.documentPages_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ documentPagesBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getDocumentPagesFieldBuilder() : null;
+ } else {
+ documentPagesBuilder_.addAllMessages(other.documentPages_);
}
- 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;
}
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPageProto.DocumentPage m =
+ input.readMessage(
+ com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPageProto.DocumentPage.parser(),
+ extensionRegistry);
+ if (documentPagesBuilder_ == null) {
+ ensureDocumentPagesIsMutable();
+ documentPages_.add(m);
+ } else {
+ documentPagesBuilder_.addMessage(m);
+ }
+ break;
+ } // case 10
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof DocumentPageProto.AllDocumentPages)) {
- return super.equals(obj);
- }
- DocumentPageProto.AllDocumentPages other = (DocumentPageProto.AllDocumentPages) obj;
+ private java.util.Listrepeated .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 com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.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, com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPageProto.DocumentPage value) {
+ if (documentPagesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
}
- if (!getUnknownFields().equals(other.getUnknownFields())) {
- return false;
+ ensureDocumentPagesIsMutable();
+ documentPages_.set(index, value);
+ onChanged();
+ } else {
+ documentPagesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .DocumentPage documentPages = 1;
+ */
+ public Builder setDocumentPages(
+ int index, com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.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(com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPageProto.DocumentPage value) {
+ if (documentPagesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
}
- return true;
+ ensureDocumentPagesIsMutable();
+ documentPages_.add(value);
+ onChanged();
+ } else {
+ documentPagesBuilder_.addMessage(value);
}
-
-
- @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;
+ return this;
+ }
+ /**
+ * repeated .DocumentPage documentPages = 1;
+ */
+ public Builder addDocumentPages(
+ int index, com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPageProto.DocumentPage value) {
+ if (documentPagesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDocumentPagesIsMutable();
+ documentPages_.add(index, value);
+ onChanged();
+ } else {
+ documentPagesBuilder_.addMessage(index, value);
}
-
-
- public static DocumentPageProto.AllDocumentPages parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
-
- return PARSER.parseFrom(data);
+ return this;
+ }
+ /**
+ * repeated .DocumentPage documentPages = 1;
+ */
+ public Builder addDocumentPages(
+ com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPageProto.DocumentPage.Builder builderForValue) {
+ if (documentPagesBuilder_ == null) {
+ ensureDocumentPagesIsMutable();
+ documentPages_.add(builderForValue.build());
+ onChanged();
+ } else {
+ documentPagesBuilder_.addMessage(builderForValue.build());
}
-
-
- public static DocumentPageProto.AllDocumentPages parseFrom(java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
-
- return PARSER.parseFrom(data, extensionRegistry);
+ return this;
+ }
+ /**
+ * repeated .DocumentPage documentPages = 1;
+ */
+ public Builder addDocumentPages(
+ int index, com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPageProto.DocumentPage.Builder builderForValue) {
+ if (documentPagesBuilder_ == null) {
+ ensureDocumentPagesIsMutable();
+ documentPages_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ documentPagesBuilder_.addMessage(index, builderForValue.build());
}
-
-
- public static DocumentPageProto.AllDocumentPages parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException {
-
- return PARSER.parseFrom(data);
+ return this;
+ }
+ /**
+ * repeated .DocumentPage documentPages = 1;
+ */
+ public Builder addAllDocumentPages(
+ java.lang.Iterable extends com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPageProto.DocumentPage> values) {
+ if (documentPagesBuilder_ == null) {
+ ensureDocumentPagesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, documentPages_);
+ onChanged();
+ } else {
+ documentPagesBuilder_.addAllMessages(values);
}
-
-
- 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);
+ return this;
+ }
+ /**
+ * repeated .DocumentPage documentPages = 1;
+ */
+ public Builder clearDocumentPages() {
+ if (documentPagesBuilder_ == null) {
+ documentPages_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ documentPagesBuilder_.clear();
}
-
-
- public static DocumentPageProto.AllDocumentPages parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
-
- return PARSER.parseFrom(data);
+ return this;
+ }
+ /**
+ * repeated .DocumentPage documentPages = 1;
+ */
+ public Builder removeDocumentPages(int index) {
+ if (documentPagesBuilder_ == null) {
+ ensureDocumentPagesIsMutable();
+ documentPages_.remove(index);
+ onChanged();
+ } else {
+ documentPagesBuilder_.remove(index);
}
-
-
- public static DocumentPageProto.AllDocumentPages parseFrom(byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
-
- return PARSER.parseFrom(data, extensionRegistry);
+ return this;
+ }
+ /**
+ * repeated .DocumentPage documentPages = 1;
+ */
+ public com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPageProto.DocumentPage.Builder getDocumentPagesBuilder(
+ int index) {
+ return getDocumentPagesFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .DocumentPage documentPages = 1;
+ */
+ public com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPageProto.DocumentPageOrBuilder getDocumentPagesOrBuilder(
+ int index) {
+ if (documentPagesBuilder_ == null) {
+ return documentPages_.get(index); } else {
+ return documentPagesBuilder_.getMessageOrBuilder(index);
}
-
-
- public static DocumentPageProto.AllDocumentPages parseFrom(java.io.InputStream input) throws java.io.IOException {
-
- return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+ /**
+ * repeated .DocumentPage documentPages = 1;
+ */
+ public java.util.List extends com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPageProto.DocumentPageOrBuilder>
+ getDocumentPagesOrBuilderList() {
+ if (documentPagesBuilder_ != null) {
+ return documentPagesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(documentPages_);
}
-
-
- 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.Listrepeated .DocumentPage documentPages = 1;
+ */
+ public com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPageProto.DocumentPage.Builder addDocumentPagesBuilder() {
+ return getDocumentPagesFieldBuilder().addBuilder(
+ com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPageProto.DocumentPage.getDefaultInstance());
+ }
+ /**
+ * repeated .DocumentPage documentPages = 1;
+ */
+ public com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPageProto.DocumentPage.Builder addDocumentPagesBuilder(
+ int index) {
+ return getDocumentPagesFieldBuilder().addBuilder(
+ index, com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.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();
-
+ // @@protoc_insertion_point(class_scope:AllDocumentPages)
+ private static final com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPageProto.AllDocumentPages DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPageProto.AllDocumentPages();
}
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPageProto.AllDocumentPages getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * 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= */ 28,
+ /* patch= */ 3,
+ /* 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 com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPageProto.internal_static_DocumentPage_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPageProto.internal_static_DocumentPage_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPageProto.DocumentPage.class, com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.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 com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPageProto.DocumentPage)) {
+ return super.equals(obj);
+ }
+ com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPageProto.DocumentPage other = (com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.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 com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPageProto.DocumentPage parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPageProto.DocumentPage parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPageProto.DocumentPage parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.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 com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPageProto.DocumentPage parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPageProto.DocumentPage parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPageProto.DocumentPage parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.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 com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPageProto.DocumentPage parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.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 com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPageProto.DocumentPage parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.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(com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.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 DocumentPage extends com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:DocumentPage)
- DocumentPageOrBuilder {
+ 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_;
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPageProto.DocumentPage) {
+ return mergeFrom((com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPageProto.DocumentPage)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
}
+ }
-
- 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 Builder mergeFrom(com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPageProto.DocumentPage other) {
+ if (other == com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPageProto.DocumentPage.getDefaultInstance()) return this;
+ if (other.getNumber() != 0) {
+ setNumber(other.getNumber());
}
-
-
- 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_;
+ if (other.getHeight() != 0) {
+ setHeight(other.getHeight());
}
-
-
- 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_;
+ if (other.getWidth() != 0) {
+ setWidth(other.getWidth());
}
-
-
- 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;
+ if (other.getRotation() != 0) {
+ setRotation(other.getRotation());
}
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final boolean isInitialized() {
+ 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 Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
}
-
-
- @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;
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+ number_ = input.readInt32();
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;
+ break;
+ } // case 8
+ case 16: {
+ height_ = input.readInt32();
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;
+ break;
+ } // case 16
+ case 24: {
+ width_ = input.readInt32();
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;
+ break;
+ } // case 24
+ case 32: {
+ rotation_ = input.readInt32();
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.Parser+ * 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) {
- public static com.google.protobuf.Parser+ * 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;
+ }
- return PARSER;
- }
+ 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;
+ }
- @java.lang.Override
- public com.google.protobuf.Parser+ * 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) {
- return PARSER;
- }
+ 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) {
- @java.lang.Override
- public DocumentPageProto.DocumentPage getDefaultInstanceForType() {
-
- return DEFAULT_INSTANCE;
- }
+ 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)
}
- private static final com.google.protobuf.Descriptors.Descriptor internal_static_AllDocumentPages_descriptor;
- private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_AllDocumentPages_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor internal_static_DocumentPage_descriptor;
- private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_DocumentPage_fieldAccessorTable;
-
-
- public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
-
- return descriptor;
- }
-
-
- private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
-
+ // @@protoc_insertion_point(class_scope:DocumentPage)
+ private static final com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPageProto.DocumentPage DEFAULT_INSTANCE;
static {
- java.lang.String[] descriptorData = {"\n\022DocumentPage.proto\"8\n\020AllDocumentPages"
- + "\022$\n\rdocumentPages\030\001 \003(\0132\r.DocumentPage\"O"
- + "\n\014DocumentPage\022\016\n\006number\030\001 \001(\005\022\016\n\006height"
- + "\030\002 \001(\005\022\r\n\005width\030\003 \001(\005\022\020\n\010rotation\030\004 \001(\005b"
- + "\006proto3"};
- descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[]{});
- internal_static_AllDocumentPages_descriptor = getDescriptor().getMessageTypes()
- .get(0);
- internal_static_AllDocumentPages_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable(internal_static_AllDocumentPages_descriptor,
- new java.lang.String[]{"DocumentPages",});
- internal_static_DocumentPage_descriptor = getDescriptor().getMessageTypes()
- .get(1);
- internal_static_DocumentPage_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable(internal_static_DocumentPage_descriptor,
- new java.lang.String[]{"Number", "Height", "Width", "Rotation",});
- descriptor.resolveAllFeaturesImmutable();
+ DEFAULT_INSTANCE = new com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPageProto.DocumentPage();
}
- // @@protoc_insertion_point(outer_class_scope)
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPageProto.DocumentPage getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserrepeated .DocumentPositionData documentPositionData = 1;
+ */
+ java.util.Listrepeated .DocumentPositionData documentPositionData = 1;
+ */
+ com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.DocumentPositionData getDocumentPositionData(int index);
+ /**
+ * repeated .DocumentPositionData documentPositionData = 1;
+ */
+ int getDocumentPositionDataCount();
+ /**
+ * repeated .DocumentPositionData documentPositionData = 1;
+ */
+ java.util.List extends com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.DocumentPositionDataOrBuilder>
+ getDocumentPositionDataOrBuilderList();
+ /**
+ * repeated .DocumentPositionData documentPositionData = 1;
+ */
+ com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.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= */ "", DocumentPositionDataProto.class.getName());
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 28,
+ /* patch= */ 3,
+ /* 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 void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {
-
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.internal_static_AllDocumentPositionData_descriptor;
}
-
- public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
-
- registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.internal_static_AllDocumentPositionData_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.AllDocumentPositionData.class, com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.AllDocumentPositionData.Builder.class);
}
-
- public interface AllDocumentPositionDataOrBuilder extends
- // @@protoc_insertion_point(interface_extends:AllDocumentPositionData)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * repeated .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);
-
+ 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 com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.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 com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.DocumentPositionData getDocumentPositionData(int index) {
+ return documentPositionData_.get(index);
+ }
+ /**
+ * repeated .DocumentPositionData documentPositionData = 1;
+ */
+ @java.lang.Override
+ public com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.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 com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.AllDocumentPositionData)) {
+ return super.equals(obj);
+ }
+ com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.AllDocumentPositionData other = (com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.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 com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.AllDocumentPositionData parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.AllDocumentPositionData parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.AllDocumentPositionData parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.AllDocumentPositionData parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.AllDocumentPositionData parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.AllDocumentPositionData parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.AllDocumentPositionData parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.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 com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.AllDocumentPositionData parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.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 com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.AllDocumentPositionData parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.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(com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.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 AllDocumentPositionData extends com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:AllDocumentPositionData)
- AllDocumentPositionDataOrBuilder {
+ 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 com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.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, com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.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, com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.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(com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.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, com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.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(
+ com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.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, com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.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 com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.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 com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.DocumentPositionData.Builder getDocumentPositionDataBuilder(
+ int index) {
+ return getDocumentPositionDataFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .DocumentPositionData documentPositionData = 1;
+ */
+ public com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.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 com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.DocumentPositionDataOrBuilder>
+ getDocumentPositionDataOrBuilderList() {
+ if (documentPositionDataBuilder_ != null) {
+ return documentPositionDataBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(documentPositionData_);
+ }
+ }
+ /**
+ * repeated .DocumentPositionData documentPositionData = 1;
+ */
+ public com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.DocumentPositionData.Builder addDocumentPositionDataBuilder() {
+ return getDocumentPositionDataFieldBuilder().addBuilder(
+ com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.DocumentPositionData.getDefaultInstance());
+ }
+ /**
+ * repeated .DocumentPositionData documentPositionData = 1;
+ */
+ public com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.DocumentPositionData.Builder addDocumentPositionDataBuilder(
+ int index) {
+ return getDocumentPositionDataFieldBuilder().addBuilder(
+ index, com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.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;
+ */
+ com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.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 com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.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;
+ */
+ com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.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= */ 28,
+ /* patch= */ 3,
+ /* 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 com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.internal_static_DocumentPositionData_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.internal_static_DocumentPositionData_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.DocumentPositionData.class, com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.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= */ 28, + /* patch= */ 3, + /* 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 com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.internal_static_DocumentPositionData_Position_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.internal_static_DocumentPositionData_Position_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.DocumentPositionData.Position.class, com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.DocumentPositionData.Position.Builder.class); + } + + public static final int VALUE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private com.google.protobuf.Internal.FloatList value_ = + emptyFloatList(); + /** + *
repeated 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 com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.DocumentPositionData.Position)) {
+ return super.equals(obj);
+ }
+ com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.DocumentPositionData.Position other = (com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.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 com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.DocumentPositionData.Position parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.DocumentPositionData.Position parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.DocumentPositionData.Position parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.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 com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.DocumentPositionData.Position parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.DocumentPositionData.Position parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.DocumentPositionData.Position parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.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 com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.DocumentPositionData.Position parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.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 com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.DocumentPositionData.Position parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.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(com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.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. + *+ * + * Protobuf type {@code DocumentPositionData.Position} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder
repeated .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_;
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.internal_static_DocumentPositionData_Position_descriptor;
}
-
- /**
- * repeated .DocumentPositionData documentPositionData = 1;
- */
@java.lang.Override
- public int getDocumentPositionDataCount() {
-
- return documentPositionData_.size();
+ public com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.DocumentPositionData.Position getDefaultInstanceForType() {
+ return com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.DocumentPositionData.Position.getDefaultInstance();
}
-
- /**
- * repeated .DocumentPositionData documentPositionData = 1;
- */
@java.lang.Override
- public DocumentPositionData getDocumentPositionData(int index) {
-
- return documentPositionData_.get(index);
+ public com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.DocumentPositionData.Position build() {
+ com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.DocumentPositionData.Position result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
}
-
- /**
- * repeated .DocumentPositionData documentPositionData = 1;
- */
@java.lang.Override
- public DocumentPositionDataOrBuilder getDocumentPositionDataOrBuilder(int index) {
-
- return documentPositionData_.get(index);
+ public com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.DocumentPositionData.Position buildPartial() {
+ com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.DocumentPositionData.Position result = new com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.DocumentPositionData.Position(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
}
+ private void buildPartial0(com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.DocumentPositionData.Position result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ value_.makeImmutable();
+ result.value_ = value_;
+ }
+ }
- private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.DocumentPositionData.Position) {
+ return mergeFrom((com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.DocumentPositionData.Position)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+ public Builder mergeFrom(com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.DocumentPositionData.Position other) {
+ if (other == com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.DocumentPositionData.Position.getDefaultInstance()) return this;
+ if (!other.value_.isEmpty()) {
+ if (value_.isEmpty()) {
+ value_ = other.value_;
+ value_.makeImmutable();
+ bitField0_ |= 0x00000001;
+ } else {
+ ensureValueIsMutable();
+ value_.addAll(other.value_);
+ }
+ onChanged();
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
@java.lang.Override
public final boolean isInitialized() {
+ return true;
+ }
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) {
- return true;
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
}
- if (isInitialized == 0) {
- return false;
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 13: {
+ float v = input.readFloat();
+ ensureValueIsMutable();
+ value_.addFloat(v);
+ break;
+ } // case 13
+ case 10: {
+ int length = input.readRawVarint32();
+ int limit = input.pushLimit(length);
+ int alloc = length > 4096 ? 4096 : length;
+ ensureValueIsMutable(alloc / 4);
+ while (input.getBytesUntilLimit() > 0) {
+ value_.addFloat(input.readFloat());
+ }
+ input.popLimit(limit);
+ break;
+ } // case 10
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private com.google.protobuf.Internal.FloatList value_ = emptyFloatList();
+ private void ensureValueIsMutable() {
+ if (!value_.isModifiable()) {
+ value_ = makeMutableCopy(value_);
}
-
- memoizedIsInitialized = 1;
- return true;
+ bitField0_ |= 0x00000001;
}
-
-
- @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;
+ private void ensureValueIsMutable(int capacity) {
+ if (!value_.isModifiable()) {
+ value_ = makeMutableCopy(value_, capacity);
}
-
- 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;
+ bitField0_ |= 0x00000001;
}
-
-
- @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}
+ * repeated float value = 1;
+ * @return A list containing the value.
*/
- 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.
+ * repeated float value = 1;
+ * @return The count of value.
*/
- long getId();
-
-
+ public int getValueCount() {
+ return value_.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;
- *
- * @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;
- *
+ * repeated float value = 1;
* @param index The index of the element to return.
- * @return The stringIdxToPositionIdx at the given index.
+ * @return The value at the given index.
*/
- int getStringIdxToPositionIdx(int index);
-
-
+ public float getValue(int index) {
+ return value_.getFloat(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;
+ * repeated float value = 1;
+ * @param index The index to set the value at.
+ * @param value The value to set.
+ * @return This builder for chaining.
*/
- 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;
+ * repeated float value = 1;
+ * @param value The value to add.
+ * @return This builder for chaining.
*/
- DocumentPositionData.Position getPositions(int index);
-
+ public Builder addValue(float value) {
+ ensureValueIsMutable();
+ value_.addFloat(value);
+ bitField0_ |= 0x00000001;
+ onChanged();
+ 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;
+ * repeated float value = 1;
+ * @param values The value to add.
+ * @return This builder for chaining.
*/
- int getPositionsCount();
-
-
+ 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;
+ }
/**
- * - * 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;
+ * repeated float value = 1;
+ * @return This builder for chaining.
*/
- java.util.List extends DocumentPositionData.PositionOrBuilder> getPositionsOrBuilderList();
+ public Builder clearValue() {
+ value_ = emptyFloatList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ // @@protoc_insertion_point(builder_scope:DocumentPositionData.Position)
+ }
- /**
- * - * 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);
+ // @@protoc_insertion_point(class_scope:DocumentPositionData.Position)
+ private static final com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.DocumentPositionData.Position DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.DocumentPositionData.Position();
+ }
+
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.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 com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.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 com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.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 com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.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 com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.DocumentPositionData)) {
+ return super.equals(obj);
+ }
+ com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.DocumentPositionData other = (com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.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 com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.DocumentPositionData parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.DocumentPositionData parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.DocumentPositionData parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.DocumentPositionData parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.DocumentPositionData parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.DocumentPositionData parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.DocumentPositionData parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.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 com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.DocumentPositionData parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.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 com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.DocumentPositionData parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.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(com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.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 DocumentPositionData extends com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:DocumentPositionData)
- DocumentPositionDataOrBuilder {
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builderrepeated 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;
+ return result;
+ }
+
+ @java.lang.Override
+ public com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.DocumentPositionData buildPartial() {
+ com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.DocumentPositionData result = new com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.DocumentPositionData(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.DocumentPositionData result) {
+ if (positionsBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0)) {
+ positions_ = java.util.Collections.unmodifiableList(positions_);
+ bitField0_ = (bitField0_ & ~0x00000004);
}
- if (isInitialized == 0) {
- return false;
+ result.positions_ = positions_;
+ } else {
+ result.positions_ = positionsBuilder_.build();
+ }
+ }
+
+ private void buildPartial0(com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.DocumentPositionData result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.id_ = id_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ stringIdxToPositionIdx_.makeImmutable();
+ result.stringIdxToPositionIdx_ = stringIdxToPositionIdx_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.DocumentPositionData) {
+ return mergeFrom((com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.DocumentPositionData)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.DocumentPositionData other) {
+ if (other == com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.DocumentPositionData.getDefaultInstance()) return this;
+ if (other.getId() != 0L) {
+ setId(other.getId());
+ }
+ if (!other.stringIdxToPositionIdx_.isEmpty()) {
+ if (stringIdxToPositionIdx_.isEmpty()) {
+ stringIdxToPositionIdx_ = other.stringIdxToPositionIdx_;
+ stringIdxToPositionIdx_.makeImmutable();
+ bitField0_ |= 0x00000002;
+ } else {
+ ensureStringIdxToPositionIdxIsMutable();
+ stringIdxToPositionIdx_.addAll(other.stringIdxToPositionIdx_);
}
-
- memoizedIsInitialized = 1;
- return true;
+ onChanged();
}
-
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-
- getSerializedSize();
- if (id_ != 0L) {
- output.writeInt64(1, id_);
+ if (positionsBuilder_ == null) {
+ if (!other.positions_.isEmpty()) {
+ if (positions_.isEmpty()) {
+ positions_ = other.positions_;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ } else {
+ ensurePositionsIsMutable();
+ positions_.addAll(other.positions_);
}
- 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;
+ onChanged();
}
-
- size = 0;
- if (id_ != 0L) {
- size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, id_);
+ } else {
+ if (!other.positions_.isEmpty()) {
+ if (positionsBuilder_.isEmpty()) {
+ positionsBuilder_.dispose();
+ positionsBuilder_ = null;
+ positions_ = other.positions_;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ positionsBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getPositionsFieldBuilder() : null;
+ } else {
+ positionsBuilder_.addAllMessages(other.positions_);
}
- {
- 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;
}
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final boolean isInitialized() {
+ 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;
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
}
-
-
- 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;
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+ id_ = input.readInt64();
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) {
-
+ break;
+ } // case 8
+ case 16: {
+ int v = input.readInt32();
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) {
-
+ stringIdxToPositionIdx_.addInt(v);
+ break;
+ } // case 16
+ case 18: {
+ int length = input.readRawVarint32();
+ int limit = input.pushLimit(length);
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();
+ break;
+ } // case 26
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
}
- }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+ private long id_ ;
+ /**
+ *
+ * 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) {
- /**
- *
- * 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) {
+ 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;
+ }
- 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
+ * 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) {
- // @@protoc_insertion_point(class_scope:DocumentPositionData)
- private static final DocumentPositionData DEFAULT_INSTANCE;
+ 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) {
- static {
- DEFAULT_INSTANCE = new DocumentPositionData();
+ 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();
}
-
-
- private static final com.google.protobuf.Parser
+ * 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 com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.DocumentPositionData.Position getPositions(int index) {
+ if (positionsBuilder_ == null) {
+ return positions_.get(index);
+ } else {
+ return positionsBuilder_.getMessage(index);
}
-
-
- @java.lang.Override
- public com.google.protobuf.Parser
+ * 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, com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.DocumentPositionData.Position value) {
+ if (positionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensurePositionsIsMutable();
+ positions_.set(index, value);
+ onChanged();
+ } else {
+ positionsBuilder_.setMessage(index, value);
}
-
-
- @java.lang.Override
- public DocumentPositionData getDefaultInstanceForType() {
-
- return DEFAULT_INSTANCE;
+ 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, com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.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(com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.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, com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.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(
+ com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.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, com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.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 com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.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 com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.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 com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.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 com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.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 com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.DocumentPositionData.Position.Builder addPositionsBuilder() {
+ return getPositionsFieldBuilder().addBuilder(
+ com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.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 com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.DocumentPositionData.Position.Builder addPositionsBuilder(
+ int index) {
+ return getPositionsFieldBuilder().addBuilder(
+ index, com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentPositionDataProto.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.
+ */
+ com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.EntryDataProto.EntryData getRoot();
+ /**
+ *
+ * The root EntryData represents the Document.
+ *
+ *
+ * .EntryData root = 1;
+ */
+ com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.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= */ "", DocumentStructureProto.class.getName());
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 28,
+ /* patch= */ 3,
+ /* suffix= */ "",
+ DocumentStructure.class.getName());
+ }
+ // Use DocumentStructure.newBuilder() to construct.
+ private DocumentStructure(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+ private DocumentStructure() {
}
- public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {
-
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentStructureProto.internal_static_DocumentStructure_descriptor;
}
-
- public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
-
- registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentStructureProto.internal_static_DocumentStructure_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentStructureProto.DocumentStructure.class, com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentStructureProto.DocumentStructure.Builder.class);
}
-
- public interface DocumentStructureOrBuilder extends
- // @@protoc_insertion_point(interface_extends:DocumentStructure)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- *
- * 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();
-
+ private int bitField0_;
+ public static final int ROOT_FIELD_NUMBER = 1;
+ private com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.EntryDataProto.EntryData root_;
+ /**
+ *
+ * The root EntryData represents the Document.
+ *
+ *
+ * .EntryData root = 1;
+ * @return Whether the root field is set.
+ */
+ @java.lang.Override
+ public boolean hasRoot() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ * The root EntryData represents the Document.
+ *
+ *
+ * .EntryData root = 1;
+ * @return The root.
+ */
+ @java.lang.Override
+ public com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.EntryDataProto.EntryData getRoot() {
+ return root_ == null ? com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.EntryDataProto.EntryData.getDefaultInstance() : root_;
+ }
+ /**
+ *
+ * The root EntryData represents the Document.
+ *
+ *
+ * .EntryData root = 1;
+ */
+ @java.lang.Override
+ public com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.EntryDataProto.EntryDataOrBuilder getRootOrBuilder() {
+ return root_ == null ? com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.EntryDataProto.EntryData.getDefaultInstance() : root_;
}
+ 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 (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(1, getRoot());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.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;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentStructureProto.DocumentStructure)) {
+ return super.equals(obj);
+ }
+ com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentStructureProto.DocumentStructure other = (com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentStructureProto.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;
+ }
+
+ @java.lang.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 com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentStructureProto.DocumentStructure parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentStructureProto.DocumentStructure parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentStructureProto.DocumentStructure parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentStructureProto.DocumentStructure parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentStructureProto.DocumentStructure parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentStructureProto.DocumentStructure parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentStructureProto.DocumentStructure parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentStructureProto.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 com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentStructureProto.DocumentStructure parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentStructureProto.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 com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentStructureProto.DocumentStructure parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentStructureProto.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);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentStructureProto.DocumentStructure 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 DocumentStructure}
*/
- public static final class DocumentStructure extends com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:DocumentStructure)
- DocumentStructureOrBuilder {
+ 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.
- */
- @Override
- public boolean hasRoot() {
-
- return ((bitField0_ & 0x00000001) != 0);
+ public Builder mergeFrom(com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentStructureProto.DocumentStructure other) {
+ if (other == com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentStructureProto.DocumentStructure.getDefaultInstance()) return this;
+ if (other.hasRoot()) {
+ mergeRoot(other.getRoot());
}
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
- /**
- *
- * The root EntryData represents the Document.
- *
- *
- * .EntryData root = 1;
- *
- * @return The root.
- */
- @Override
- public EntryDataProto.EntryData getRoot() {
-
- return root_ == null ? EntryDataProto.EntryData.getDefaultInstance() : root_;
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
}
-
-
- /**
- *
- * 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);
- }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ input.readMessage(
+ getRootFieldBuilder().getBuilder(),
+ extensionRegistry);
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());
+ break;
+ } // case 10
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
}
- bitField0_ |= 0x00000001;
- onChanged();
- return this;
- }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
-
- /**
- *
- * 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.SingleFieldBuilder
+ * 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 com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.EntryDataProto.EntryData getRoot() {
+ if (rootBuilder_ == null) {
+ return root_ == null ? com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.EntryDataProto.EntryData.getDefaultInstance() : root_;
+ } else {
+ return rootBuilder_.getMessage();
}
-
- // @@protoc_insertion_point(class_scope:DocumentStructure)
- private static final DocumentStructure DEFAULT_INSTANCE;
-
- static {
- DEFAULT_INSTANCE = new DocumentStructure();
+ }
+ /**
+ *
+ * The root EntryData represents the Document.
+ *
+ *
+ * .EntryData root = 1;
+ */
+ public Builder setRoot(com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.EntryDataProto.EntryData value) {
+ if (rootBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ root_ = value;
+ } else {
+ rootBuilder_.setMessage(value);
}
-
- public static DocumentStructure getDefaultInstance() {
-
- return DEFAULT_INSTANCE;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * The root EntryData represents the Document.
+ *
+ *
+ * .EntryData root = 1;
+ */
+ public Builder setRoot(
+ com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.EntryDataProto.EntryData.Builder builderForValue) {
+ if (rootBuilder_ == null) {
+ root_ = builderForValue.build();
+ } else {
+ rootBuilder_.setMessage(builderForValue.build());
}
-
-
- private static final com.google.protobuf.Parser
+ * The root EntryData represents the Document.
+ *
+ *
+ * .EntryData root = 1;
+ */
+ public Builder mergeRoot(com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.EntryDataProto.EntryData value) {
+ if (rootBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0) &&
+ root_ != null &&
+ root_ != com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.EntryDataProto.EntryData.getDefaultInstance()) {
+ getRootBuilder().mergeFrom(value);
+ } else {
+ root_ = value;
+ }
+ } else {
+ rootBuilder_.mergeFrom(value);
}
-
-
- @Override
- public com.google.protobuf.Parser
+ * 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 com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.EntryDataProto.EntryData.Builder getRootBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return getRootFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ * The root EntryData represents the Document.
+ *
+ *
+ * .EntryData root = 1;
+ */
+ public com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.EntryDataProto.EntryDataOrBuilder getRootOrBuilder() {
+ if (rootBuilder_ != null) {
+ return rootBuilder_.getMessageOrBuilder();
+ } else {
+ return root_ == null ?
+ com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.EntryDataProto.EntryData.getDefaultInstance() : root_;
+ }
+ }
+ /**
+ *
+ * The root EntryData represents the Document.
+ *
+ *
+ * .EntryData root = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.EntryDataProto.EntryData, com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.EntryDataProto.EntryData.Builder, com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.EntryDataProto.EntryDataOrBuilder>
+ getRootFieldBuilder() {
+ if (rootBuilder_ == null) {
+ rootBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.EntryDataProto.EntryData, com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.EntryDataProto.EntryData.Builder, com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.EntryDataProto.EntryDataOrBuilder>(
+ getRoot(),
+ getParentForChildren(),
+ isClean());
+ root_ = null;
+ }
+ return rootBuilder_;
+ }
+ // @@protoc_insertion_point(builder_scope:DocumentStructure)
}
- private static final com.google.protobuf.Descriptors.Descriptor internal_static_DocumentStructure_descriptor;
- private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_DocumentStructure_fieldAccessorTable;
-
-
- public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
-
- return descriptor;
- }
-
-
- private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
-
+ // @@protoc_insertion_point(class_scope:DocumentStructure)
+ private static final com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentStructureProto.DocumentStructure DEFAULT_INSTANCE;
static {
- String[] descriptorData = {"\n\027DocumentStructure.proto\032\017EntryData.pro"
- + "to\"-\n\021DocumentStructure\022\030\n\004root\030\001 \001(\0132\n."
- + "EntryDatab\006proto3"};
- descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(descriptorData,
- new com.google.protobuf.Descriptors.FileDescriptor[]{EntryDataProto.getDescriptor(),});
- internal_static_DocumentStructure_descriptor = getDescriptor().getMessageTypes()
- .get(0);
- internal_static_DocumentStructure_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable(internal_static_DocumentStructure_descriptor,
- new String[]{"Root",});
- descriptor.resolveAllFeaturesImmutable();
- EntryDataProto.getDescriptor();
+ DEFAULT_INSTANCE = new com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentStructureProto.DocumentStructure();
}
- // @@protoc_insertion_point(outer_class_scope)
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentStructureProto.DocumentStructure getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserrepeated .DocumentTextData documentTextData = 1;
+ */
+ java.util.Listrepeated .DocumentTextData documentTextData = 1;
+ */
+ com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.DocumentTextData getDocumentTextData(int index);
+ /**
+ * repeated .DocumentTextData documentTextData = 1;
+ */
+ int getDocumentTextDataCount();
+ /**
+ * repeated .DocumentTextData documentTextData = 1;
+ */
+ java.util.List extends com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.DocumentTextDataOrBuilder>
+ getDocumentTextDataOrBuilderList();
+ /**
+ * repeated .DocumentTextData documentTextData = 1;
+ */
+ com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.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= */ "", DocumentTextDataProto.class.getName());
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 28,
+ /* patch= */ 3,
+ /* 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 void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {
-
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.internal_static_AllDocumentTextData_descriptor;
}
-
- public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
-
- registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.internal_static_AllDocumentTextData_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.AllDocumentTextData.class, com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.AllDocumentTextData.Builder.class);
}
-
- public interface AllDocumentTextDataOrBuilder extends
- // @@protoc_insertion_point(interface_extends:AllDocumentTextData)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- * repeated .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);
-
+ public static final int DOCUMENTTEXTDATA_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private java.util.Listrepeated .DocumentTextData documentTextData = 1;
+ */
+ @java.lang.Override
+ public java.util.Listrepeated .DocumentTextData documentTextData = 1;
+ */
+ @java.lang.Override
+ public java.util.List extends com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.DocumentTextDataOrBuilder>
+ getDocumentTextDataOrBuilderList() {
+ return documentTextData_;
+ }
+ /**
+ * repeated .DocumentTextData documentTextData = 1;
+ */
+ @java.lang.Override
+ public int getDocumentTextDataCount() {
+ return documentTextData_.size();
+ }
+ /**
+ * repeated .DocumentTextData documentTextData = 1;
+ */
+ @java.lang.Override
+ public com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.DocumentTextData getDocumentTextData(int index) {
+ return documentTextData_.get(index);
+ }
+ /**
+ * repeated .DocumentTextData documentTextData = 1;
+ */
+ @java.lang.Override
+ public com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.DocumentTextDataOrBuilder getDocumentTextDataOrBuilder(
+ int index) {
+ return documentTextData_.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 < documentTextData_.size(); i++) {
+ output.writeMessage(1, documentTextData_.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 < documentTextData_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, documentTextData_.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 com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.AllDocumentTextData)) {
+ return super.equals(obj);
+ }
+ com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.AllDocumentTextData other = (com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.AllDocumentTextData) obj;
+
+ if (!getDocumentTextDataList()
+ .equals(other.getDocumentTextDataList())) 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 (getDocumentTextDataCount() > 0) {
+ hash = (37 * hash) + DOCUMENTTEXTDATA_FIELD_NUMBER;
+ hash = (53 * hash) + getDocumentTextDataList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.AllDocumentTextData parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.AllDocumentTextData parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.AllDocumentTextData parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.AllDocumentTextData parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.AllDocumentTextData parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.AllDocumentTextData parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.AllDocumentTextData parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.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 com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.AllDocumentTextData parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.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 com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.AllDocumentTextData parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.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);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.AllDocumentTextData 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 AllDocumentTextData}
*/
- public static final class AllDocumentTextData extends com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:AllDocumentTextData)
- AllDocumentTextDataOrBuilder {
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builderrepeated .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;
+ private void buildPartialRepeatedFields(com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.AllDocumentTextData result) {
+ if (documentTextDataBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ documentTextData_ = java.util.Collections.unmodifiableList(documentTextData_);
+ bitField0_ = (bitField0_ & ~0x00000001);
}
- if (isInitialized == 0) {
- return false;
+ result.documentTextData_ = documentTextData_;
+ } else {
+ result.documentTextData_ = documentTextDataBuilder_.build();
+ }
+ }
+
+ private void buildPartial0(com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.AllDocumentTextData result) {
+ int from_bitField0_ = bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.AllDocumentTextData) {
+ return mergeFrom((com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.AllDocumentTextData)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.AllDocumentTextData other) {
+ if (other == com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.AllDocumentTextData.getDefaultInstance()) return this;
+ if (documentTextDataBuilder_ == null) {
+ if (!other.documentTextData_.isEmpty()) {
+ if (documentTextData_.isEmpty()) {
+ documentTextData_ = other.documentTextData_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureDocumentTextDataIsMutable();
+ documentTextData_.addAll(other.documentTextData_);
+ }
+ onChanged();
}
-
- 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));
+ } else {
+ if (!other.documentTextData_.isEmpty()) {
+ if (documentTextDataBuilder_.isEmpty()) {
+ documentTextDataBuilder_.dispose();
+ documentTextDataBuilder_ = null;
+ documentTextData_ = other.documentTextData_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ documentTextDataBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getDocumentTextDataFieldBuilder() : null;
+ } else {
+ documentTextDataBuilder_.addAllMessages(other.documentTextData_);
}
- 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;
}
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
- @Override
- public boolean equals(final Object obj) {
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.DocumentTextData m =
+ input.readMessage(
+ com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.DocumentTextData.parser(),
+ extensionRegistry);
+ if (documentTextDataBuilder_ == null) {
+ ensureDocumentTextDataIsMutable();
+ documentTextData_.add(m);
+ } else {
+ documentTextDataBuilder_.addMessage(m);
+ }
+ break;
+ } // case 10
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof AllDocumentTextData)) {
- return super.equals(obj);
- }
- AllDocumentTextData other = (AllDocumentTextData) obj;
+ private java.util.Listrepeated .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 com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.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, com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.DocumentTextData value) {
+ if (documentTextDataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
}
- if (!getUnknownFields().equals(other.getUnknownFields())) {
- return false;
+ ensureDocumentTextDataIsMutable();
+ documentTextData_.set(index, value);
+ onChanged();
+ } else {
+ documentTextDataBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .DocumentTextData documentTextData = 1;
+ */
+ public Builder setDocumentTextData(
+ int index, com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.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(com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.DocumentTextData value) {
+ if (documentTextDataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
}
- return true;
+ ensureDocumentTextDataIsMutable();
+ documentTextData_.add(value);
+ onChanged();
+ } else {
+ documentTextDataBuilder_.addMessage(value);
}
-
-
- @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;
+ return this;
+ }
+ /**
+ * repeated .DocumentTextData documentTextData = 1;
+ */
+ public Builder addDocumentTextData(
+ int index, com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.DocumentTextData value) {
+ if (documentTextDataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDocumentTextDataIsMutable();
+ documentTextData_.add(index, value);
+ onChanged();
+ } else {
+ documentTextDataBuilder_.addMessage(index, value);
}
-
-
- public static AllDocumentTextData parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
-
- return PARSER.parseFrom(data);
+ return this;
+ }
+ /**
+ * repeated .DocumentTextData documentTextData = 1;
+ */
+ public Builder addDocumentTextData(
+ com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.DocumentTextData.Builder builderForValue) {
+ if (documentTextDataBuilder_ == null) {
+ ensureDocumentTextDataIsMutable();
+ documentTextData_.add(builderForValue.build());
+ onChanged();
+ } else {
+ documentTextDataBuilder_.addMessage(builderForValue.build());
}
-
-
- public static AllDocumentTextData parseFrom(java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
-
- return PARSER.parseFrom(data, extensionRegistry);
+ return this;
+ }
+ /**
+ * repeated .DocumentTextData documentTextData = 1;
+ */
+ public Builder addDocumentTextData(
+ int index, com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.DocumentTextData.Builder builderForValue) {
+ if (documentTextDataBuilder_ == null) {
+ ensureDocumentTextDataIsMutable();
+ documentTextData_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ documentTextDataBuilder_.addMessage(index, builderForValue.build());
}
-
-
- public static AllDocumentTextData parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException {
-
- return PARSER.parseFrom(data);
+ return this;
+ }
+ /**
+ * repeated .DocumentTextData documentTextData = 1;
+ */
+ public Builder addAllDocumentTextData(
+ java.lang.Iterable extends com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.DocumentTextData> values) {
+ if (documentTextDataBuilder_ == null) {
+ ensureDocumentTextDataIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, documentTextData_);
+ onChanged();
+ } else {
+ documentTextDataBuilder_.addAllMessages(values);
}
-
-
- public static AllDocumentTextData parseFrom(com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
-
- return PARSER.parseFrom(data, extensionRegistry);
+ return this;
+ }
+ /**
+ * repeated .DocumentTextData documentTextData = 1;
+ */
+ public Builder clearDocumentTextData() {
+ if (documentTextDataBuilder_ == null) {
+ documentTextData_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ documentTextDataBuilder_.clear();
}
-
-
- public static AllDocumentTextData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
-
- return PARSER.parseFrom(data);
+ return this;
+ }
+ /**
+ * repeated .DocumentTextData documentTextData = 1;
+ */
+ public Builder removeDocumentTextData(int index) {
+ if (documentTextDataBuilder_ == null) {
+ ensureDocumentTextDataIsMutable();
+ documentTextData_.remove(index);
+ onChanged();
+ } else {
+ documentTextDataBuilder_.remove(index);
}
-
-
- public static AllDocumentTextData parseFrom(byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException {
-
- return PARSER.parseFrom(data, extensionRegistry);
+ return this;
+ }
+ /**
+ * repeated .DocumentTextData documentTextData = 1;
+ */
+ public com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.DocumentTextData.Builder getDocumentTextDataBuilder(
+ int index) {
+ return getDocumentTextDataFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .DocumentTextData documentTextData = 1;
+ */
+ public com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.DocumentTextDataOrBuilder getDocumentTextDataOrBuilder(
+ int index) {
+ if (documentTextDataBuilder_ == null) {
+ return documentTextData_.get(index); } else {
+ return documentTextDataBuilder_.getMessageOrBuilder(index);
}
-
-
- public static AllDocumentTextData parseFrom(java.io.InputStream input) throws java.io.IOException {
-
- return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
+ }
+ /**
+ * repeated .DocumentTextData documentTextData = 1;
+ */
+ public java.util.List extends com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.DocumentTextDataOrBuilder>
+ getDocumentTextDataOrBuilderList() {
+ if (documentTextDataBuilder_ != null) {
+ return documentTextDataBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(documentTextData_);
}
-
-
- 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.Listrepeated .DocumentTextData documentTextData = 1;
+ */
+ public com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.DocumentTextData.Builder addDocumentTextDataBuilder() {
+ return getDocumentTextDataFieldBuilder().addBuilder(
+ com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.DocumentTextData.getDefaultInstance());
+ }
+ /**
+ * repeated .DocumentTextData documentTextData = 1;
+ */
+ public com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.DocumentTextData.Builder addDocumentTextDataBuilder(
+ int index) {
+ return getDocumentTextDataFieldBuilder().addBuilder(
+ index, com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.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);
-
+ // @@protoc_insertion_point(class_scope:AllDocumentTextData)
+ private static final com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.AllDocumentTextData DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.AllDocumentTextData();
}
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.AllDocumentTextData getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * 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.
+ */
+ java.lang.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= */ 28,
+ /* patch= */ 3,
+ /* 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 com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.internal_static_DocumentTextData_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.internal_static_DocumentTextData_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.DocumentTextData.class, com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.DocumentTextData.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.
+ */
+ @java.lang.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.
+ */
+ @java.lang.Override
+ public long getPage() {
+ return page_;
+ }
+
+ public static final int SEARCHTEXT_FIELD_NUMBER = 3;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object searchText_ = "";
+ /**
+ *
+ * The text of the text block.
+ *
+ *
+ * string searchText = 3;
+ * @return The searchText.
+ */
+ @java.lang.Override
+ public java.lang.String getSearchText() {
+ java.lang.Object ref = searchText_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ searchText_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ * The text of the text block.
+ *
+ *
+ * string searchText = 3;
+ * @return The bytes for searchText.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getSearchTextBytes() {
+ java.lang.Object ref = searchText_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.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.
+ */
+ @java.lang.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.
+ */
+ @java.lang.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.
+ */
+ @java.lang.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.
+ */
+ @java.lang.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;
+ @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 (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);
+ }
+
+ @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_);
+ }
+ 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;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.DocumentTextData)) {
+ return super.equals(obj);
+ }
+ com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.DocumentTextData other = (com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.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;
+ }
+
+ @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());
+ 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 com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.DocumentTextData parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.DocumentTextData parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.DocumentTextData parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.DocumentTextData parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.DocumentTextData parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.DocumentTextData parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.DocumentTextData parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.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 com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.DocumentTextData parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.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 com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.DocumentTextData parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.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);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.DocumentTextData 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 DocumentTextData}
*/
- public static final class DocumentTextData extends com.google.protobuf.GeneratedMessage implements
- // @@protoc_insertion_point(message_implements:DocumentTextData)
- DocumentTextDataOrBuilder {
+ 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_;
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.start_ = start_;
}
-
-
- 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_;
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ result.end_ = end_;
}
-
-
- 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;
- }
+ if (((from_bitField0_ & 0x00000040) != 0)) {
+ lineBreaks_.makeImmutable();
+ result.lineBreaks_ = lineBreaks_;
}
+ }
-
- /**
- *
- * 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;
- }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.DocumentTextData) {
+ return mergeFrom((com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.DocumentTextData)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
}
+ }
-
- 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 Builder mergeFrom(com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.DocumentTextData other) {
+ if (other == com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.DocumentTextData.getDefaultInstance()) return this;
+ if (other.getId() != 0L) {
+ setId(other.getId());
}
-
-
- 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_;
+ if (other.getPage() != 0L) {
+ setPage(other.getPage());
}
-
-
- 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_;
+ if (!other.getSearchText().isEmpty()) {
+ searchText_ = other.searchText_;
+ bitField0_ |= 0x00000004;
+ onChanged();
}
-
-
- 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();
+ if (other.getStart() != 0) {
+ setStart(other.getStart());
}
-
-
- /**
- *
- * 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);
+ if (other.getEnd() != 0) {
+ setEnd(other.getEnd());
}
-
-
- private int lineBreaksMemoizedSerializedSize = -1;
-
- private byte memoizedIsInitialized = -1;
-
-
- @Override
- public final boolean isInitialized() {
-
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) {
- return true;
+ if (!other.lineBreaks_.isEmpty()) {
+ if (lineBreaks_.isEmpty()) {
+ lineBreaks_ = other.lineBreaks_;
+ lineBreaks_.makeImmutable();
+ bitField0_ |= 0x00000040;
+ } else {
+ ensureLineBreaksIsMutable();
+ lineBreaks_.addAll(other.lineBreaks_);
}
- if (isInitialized == 0) {
- return false;
- }
-
- memoizedIsInitialized = 1;
- return true;
+ onChanged();
}
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final boolean isInitialized() {
+ 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);
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
}
-
-
- @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;
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+ id_ = input.readInt64();
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;
+ break;
+ } // case 8
+ case 16: {
+ page_ = input.readInt64();
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;
+ break;
+ } // case 16
+ case 26: {
+ searchText_ = input.readStringRequireUtf8();
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;
+ break;
+ } // case 26
+ case 32: {
+ numberOnPage_ = input.readInt32();
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;
+ break;
+ } // case 32
+ case 40: {
+ start_ = input.readInt32();
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;
+ break;
+ } // case 40
+ case 48: {
+ end_ = input.readInt32();
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_);
+ break;
+ } // case 48
+ case 56: {
+ int v = input.readInt32();
+ ensureLineBreaksIsMutable();
+ lineBreaks_.addInt(v);
+ break;
+ } // case 56
+ case 58: {
+ int length = input.readRawVarint32();
+ int limit = input.pushLimit(length);
+ ensureLineBreaksIsMutable();
+ while (input.getBytesUntilLimit() > 0) {
+ lineBreaks_.addInt(input.readInt32());
}
- 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
+ * 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) {
- public static com.google.protobuf.Parser
+ * Identifier of the text block.
+ *
+ *
+ * int64 id = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearId() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ id_ = 0L;
+ onChanged();
+ return this;
+ }
- return PARSER;
+ private long page_ ;
+ /**
+ *
+ * The page the text block occurs on.
+ *
+ *
+ * int64 page = 2;
+ * @return The page.
+ */
+ @java.lang.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 java.lang.Object searchText_ = "";
+ /**
+ *
+ * The text of the text block.
+ *
+ *
+ * string searchText = 3;
+ * @return The searchText.
+ */
+ public java.lang.String getSearchText() {
+ java.lang.Object ref = searchText_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ searchText_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
}
-
-
- @Override
- public com.google.protobuf.Parser
+ * The text of the text block.
+ *
+ *
+ * string searchText = 3;
+ * @return The bytes for searchText.
+ */
+ public com.google.protobuf.ByteString
+ getSearchTextBytes() {
+ java.lang.Object ref = searchText_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.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(
+ java.lang.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.
+ */
+ @java.lang.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) {
- @Override
- public DocumentTextData getDefaultInstanceForType() {
+ 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;
+ }
- return DEFAULT_INSTANCE;
+ 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.
+ */
+ @java.lang.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.
+ */
+ @java.lang.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(
+ java.lang.Iterable extends java.lang.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)
}
- private static final com.google.protobuf.Descriptors.Descriptor internal_static_AllDocumentTextData_descriptor;
- private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_AllDocumentTextData_fieldAccessorTable;
- private static final com.google.protobuf.Descriptors.Descriptor internal_static_DocumentTextData_descriptor;
- private static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_DocumentTextData_fieldAccessorTable;
-
-
- public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
-
- return descriptor;
- }
-
-
- private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
-
+ // @@protoc_insertion_point(class_scope:DocumentTextData)
+ private static final com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.DocumentTextData DEFAULT_INSTANCE;
static {
- String[] descriptorData = {"\n\026DocumentTextData.proto\"B\n\023AllDocumentT"
- + "extData\022+\n\020documentTextData\030\001 \003(\0132\021.Docu"
- + "mentTextData\"\206\001\n\020DocumentTextData\022\n\n\002id\030"
- + "\001 \001(\003\022\014\n\004page\030\002 \001(\003\022\022\n\nsearchText\030\003 \001(\t\022"
- + "\024\n\014numberOnPage\030\004 \001(\005\022\r\n\005start\030\005 \001(\005\022\013\n\003"
- + "end\030\006 \001(\005\022\022\n\nlineBreaks\030\007 \003(\005b\006proto3"};
- descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[]{});
- internal_static_AllDocumentTextData_descriptor = getDescriptor().getMessageTypes()
- .get(0);
- internal_static_AllDocumentTextData_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable(internal_static_AllDocumentTextData_descriptor,
- new String[]{"DocumentTextData",});
- internal_static_DocumentTextData_descriptor = getDescriptor().getMessageTypes()
- .get(1);
- internal_static_DocumentTextData_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable(internal_static_DocumentTextData_descriptor,
- new String[]{"Id", "Page", "SearchText", "NumberOnPage", "Start", "End", "LineBreaks",});
- descriptor.resolveAllFeaturesImmutable();
+ DEFAULT_INSTANCE = new com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.DocumentTextData();
}
- // @@protoc_insertion_point(outer_class_scope)
+ public static com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.DocumentTextDataProto.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.
+ */
+ com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.NodeTypeProto.NodeType getType();
- static {
- com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
- /* major= */ 4,
- /* minor= */ 27,
- /* patch= */ 1,
- /* suffix= */ "", EntryDataProto.class.getName());
- }
+ /**
+ *
+ * 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);
- public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {
+ /**
+ *
+ * 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);
-
- public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
-
- registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
- }
-
-
- public interface EntryDataOrBuilder extends
- // @@protoc_insertion_point(interface_extends:EntryData)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- *
- * 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;
- */
+ /**
+ *
+ * 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(
+ java.lang.String key);
+ /**
+ * Use {@link #getPropertiesMap()} instead.
+ */
+ @java.lang.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 */
+java.lang.String getPropertiesOrDefault(
+ java.lang.String key,
/* nullable */
- String getPropertiesOrDefault(String key,
- /* nullable */
- String defaultValue);
+java.lang.String defaultValue);
+ /**
+ *
+ * Some semantic nodes have additional information, this information is stored in this Map.
+ *
+ *
+ * map<string, string> properties = 5;
+ */
+ java.lang.String getPropertiesOrThrow(
+ java.lang.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;
+ */
+ com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.EntryDataProto.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 com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.EntryDataProto.EntryDataOrBuilder>
+ getChildrenOrBuilderList();
+ /**
+ *
+ * All child Entries of this Entry.
+ *
+ *
+ * repeated .EntryData children = 6;
+ */
+ com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.EntryDataProto.EntryDataOrBuilder getChildrenOrBuilder(
+ int index);
- /**
- *
- * 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);
-
+ /**
+ *
+ * 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.
+ */
+ com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.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 final 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= */ 28,
+ /* patch= */ 3,
+ /* 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_ = emptyIntList();
}
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.EntryDataProto.internal_static_EntryData_descriptor;
+ }
+
+ @SuppressWarnings({"rawtypes"})
+ @java.lang.Override
+ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
+ int number) {
+ switch (number) {
+ case 5:
+ return internalGetProperties();
+ default:
+ throw new RuntimeException(
+ "Invalid map field number: " + number);
+ }
+ }
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.EntryDataProto.internal_static_EntryData_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.EntryDataProto.EntryData.class, com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.EntryDataProto.EntryData.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.
+ */
+ @java.lang.Override public int getTypeValue() {
+ return type_;
+ }
+ /**
+ *
+ * Type of the semantic node.
+ *
+ *
+ * .NodeType type = 1;
+ * @return The type.
+ */
+ @java.lang.Override public com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.NodeTypeProto.NodeType getType() {
+ com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.NodeTypeProto.NodeType result = com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.NodeTypeProto.NodeType.forNumber(type_);
+ return result == null ? com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.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.
+ */
+ @java.lang.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.
+ */
+ @java.lang.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.
+ */
+ @java.lang.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<
+ java.lang.String, java.lang.String> defaultEntry =
+ com.google.protobuf.MapEntry
+ .
+ * Some semantic nodes have additional information, this information is stored in this Map.
+ *
+ *
+ * map<string, string> properties = 5;
+ */
+ @java.lang.Override
+ public boolean containsProperties(
+ java.lang.String key) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ return internalGetProperties().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getPropertiesMap()} instead.
+ */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map
+ * Some semantic nodes have additional information, this information is stored in this Map.
+ *
+ *
+ * map<string, string> properties = 5;
+ */
+ @java.lang.Override
+ public java.util.Map
+ * Some semantic nodes have additional information, this information is stored in this Map.
+ *
+ *
+ * map<string, string> properties = 5;
+ */
+ @java.lang.Override
+ public /* nullable */
+java.lang.String getPropertiesOrDefault(
+ java.lang.String key,
+ /* nullable */
+java.lang.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;
+ */
+ @java.lang.Override
+ public java.lang.String getPropertiesOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ java.util.Map
+ * All child Entries of this Entry.
+ *
+ *
+ * repeated .EntryData children = 6;
+ */
+ @java.lang.Override
+ public java.util.List
+ * All child Entries of this Entry.
+ *
+ *
+ * repeated .EntryData children = 6;
+ */
+ @java.lang.Override
+ public java.util.List extends com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.EntryDataProto.EntryDataOrBuilder>
+ getChildrenOrBuilderList() {
+ return children_;
+ }
+ /**
+ *
+ * All child Entries of this Entry.
+ *
+ *
+ * repeated .EntryData children = 6;
+ */
+ @java.lang.Override
+ public int getChildrenCount() {
+ return children_.size();
+ }
+ /**
+ *
+ * All child Entries of this Entry.
+ *
+ *
+ * repeated .EntryData children = 6;
+ */
+ @java.lang.Override
+ public com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.EntryDataProto.EntryData getChildren(int index) {
+ return children_.get(index);
+ }
+ /**
+ *
+ * All child Entries of this Entry.
+ *
+ *
+ * repeated .EntryData children = 6;
+ */
+ @java.lang.Override
+ public com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.EntryDataProto.EntryDataOrBuilder getChildrenOrBuilder(
+ int index) {
+ return children_.get(index);
+ }
+
+ public static final int ENGINES_FIELD_NUMBER = 7;
+ @SuppressWarnings("serial")
+ private com.google.protobuf.Internal.IntList engines_;
+ private static final com.google.protobuf.Internal.IntListAdapter.IntConverter<
+ com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.LayoutEngineProto.LayoutEngine> engines_converter_ =
+ new com.google.protobuf.Internal.IntListAdapter.IntConverter<
+ com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.LayoutEngineProto.LayoutEngine>() {
+ public com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.LayoutEngineProto.LayoutEngine convert(int from) {
+ com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.LayoutEngineProto.LayoutEngine result = com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.LayoutEngineProto.LayoutEngine.forNumber(from);
+ return result == null ? com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.LayoutEngineProto.LayoutEngine.UNRECOGNIZED : result;
+ }
+ };
+ /**
+ *
+ * Describes the origin of the semantic node.
+ *
+ *
+ * repeated .LayoutEngine engines = 7;
+ * @return A list containing the engines.
+ */
+ @java.lang.Override
+ public java.util.List
+ * Describes the origin of the semantic node.
+ *
+ *
+ * repeated .LayoutEngine engines = 7;
+ * @return The count of engines.
+ */
+ @java.lang.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.
+ */
+ @java.lang.Override
+ public com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.LayoutEngineProto.LayoutEngine getEngines(int index) {
+ return engines_converter_.convert(engines_.getInt(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.lang.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.
+ */
+ @java.lang.Override
+ public int getEnginesValue(int index) {
+ return engines_.getInt(index);
+ }
+ private int enginesMemoizedSerializedSize;
+
+ 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 (type_ != com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.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_.getInt(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (type_ != com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.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;
- *
- * @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;
+ return result;
+ }
+
+ @java.lang.Override
+ public com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.EntryDataProto.EntryData buildPartial() {
+ com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.EntryDataProto.EntryData result = new com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.EntryDataProto.EntryData(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.EntryDataProto.EntryData result) {
+ if (childrenBuilder_ == null) {
+ if (((bitField0_ & 0x00000020) != 0)) {
+ children_ = java.util.Collections.unmodifiableList(children_);
+ bitField0_ = (bitField0_ & ~0x00000020);
}
- if (isInitialized == 0) {
- return false;
+ result.children_ = children_;
+ } else {
+ result.children_ = childrenBuilder_.build();
+ }
+ if (((bitField0_ & 0x00000040) != 0)) {
+ engines_.makeImmutable();
+ bitField0_ = (bitField0_ & ~0x00000040);
+ }
+ result.engines_ = engines_;
+ }
+
+ private void buildPartial0(com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.EntryDataProto.EntryData result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.type_ = type_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ treeId_.makeImmutable();
+ result.treeId_ = treeId_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ atomicBlockIds_.makeImmutable();
+ result.atomicBlockIds_ = atomicBlockIds_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ pageNumbers_.makeImmutable();
+ result.pageNumbers_ = pageNumbers_;
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.properties_ = internalGetProperties();
+ result.properties_.makeImmutable();
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.EntryDataProto.EntryData) {
+ return mergeFrom((com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.EntryDataProto.EntryData)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.EntryDataProto.EntryData other) {
+ if (other == com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.EntryDataProto.EntryData.getDefaultInstance()) return this;
+ if (other.type_ != 0) {
+ setTypeValue(other.getTypeValue());
+ }
+ if (!other.treeId_.isEmpty()) {
+ if (treeId_.isEmpty()) {
+ treeId_ = other.treeId_;
+ treeId_.makeImmutable();
+ bitField0_ |= 0x00000002;
+ } else {
+ ensureTreeIdIsMutable();
+ treeId_.addAll(other.treeId_);
}
-
- memoizedIsInitialized = 1;
- return true;
+ onChanged();
}
-
-
- @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;
+ if (!other.atomicBlockIds_.isEmpty()) {
+ if (atomicBlockIds_.isEmpty()) {
+ atomicBlockIds_ = other.atomicBlockIds_;
+ atomicBlockIds_.makeImmutable();
+ bitField0_ |= 0x00000004;
+ } else {
+ ensureAtomicBlockIdsIsMutable();
+ atomicBlockIds_.addAll(other.atomicBlockIds_);
}
-
- 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;
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+ type_ = input.readEnum();
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) {
-
+ break;
+ } // case 8
+ case 16: {
+ int v = input.readInt32();
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) {
-
+ treeId_.addInt(v);
+ break;
+ } // case 16
+ case 18: {
+ int length = input.readRawVarint32();
+ int limit = input.pushLimit(length);
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_);
+ while (input.getBytesUntilLimit() > 0) {
+ treeId_.addInt(input.readInt32());
}
- 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) {
-
+ input.popLimit(limit);
+ break;
+ } // case 18
+ case 24: {
+ long v = input.readInt64();
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) {
-
+ atomicBlockIds_.addLong(v);
+ break;
+ } // case 24
+ case 26: {
+ int length = input.readRawVarint32();
+ int limit = input.pushLimit(length);
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_);
+ while (input.getBytesUntilLimit() > 0) {
+ atomicBlockIds_.addLong(input.readInt64());
}
- 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) {
-
+ input.popLimit(limit);
+ break;
+ } // case 26
+ case 32: {
+ long v = input.readInt64();
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) {
-
+ pageNumbers_.addLong(v);
+ break;
+ } // case 32
+ case 34: {
+ int length = input.readRawVarint32();
+ int limit = input.pushLimit(length);
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();
+ childrenBuilder_.addMessage(m);
}
+ break;
+ } // case 50
+ case 56: {
+ int tmpRaw = input.readEnum();
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();
+ engines_.addInt(tmpRaw);
+ break;
+ } // case 56
+ case 58: {
+ int length = input.readRawVarint32();
+ int oldLimit = input.pushLimit(length);
+ while(input.getBytesUntilLimit() > 0) {
+ int tmpRaw = input.readEnum();
+ ensureEnginesIsMutable();
+ engines_.addInt(tmpRaw);
}
- 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());
+ input.popLimit(oldLimit);
+ break;
+ } // case 58
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
}
- onChanged();
- return this;
- }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
-
- /**
- *
- * 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(Iterable
+ * Type of the semantic node.
+ *
+ *
+ * .NodeType type = 1;
+ * @return The enum numeric value on the wire for type.
+ */
+ @java.lang.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.
+ */
+ @java.lang.Override
+ public com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.NodeTypeProto.NodeType getType() {
+ com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.NodeTypeProto.NodeType result = com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.NodeTypeProto.NodeType.forNumber(type_);
+ return result == null ? com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.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(com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.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;
+ }
- // @@protoc_insertion_point(class_scope:EntryData)
- private static final EntryData DEFAULT_INSTANCE;
-
- static {
- DEFAULT_INSTANCE = new EntryData();
+ 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) {
- public static EntryData getDefaultInstance() {
+ 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) {
- return DEFAULT_INSTANCE;
+ 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(
+ java.lang.Iterable extends java.lang.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