diff --git a/config/proto/DocumentPositionData.proto b/config/proto/DocumentPositionData.proto index 8dc8493..5353924 100644 --- a/config/proto/DocumentPositionData.proto +++ b/config/proto/DocumentPositionData.proto @@ -20,9 +20,6 @@ message DocumentPositionData { // Definition of a BoundingBox that contains x, y, width, and height. message Position { - float x = 1; - float y = 2; - float width = 3; - float height = 4; + repeated float value = 1; } } diff --git a/pyinfra/proto/DocumentPage_pb2.py b/pyinfra/proto/DocumentPage_pb2.py index 6562adf..d4a08ec 100644 --- a/pyinfra/proto/DocumentPage_pb2.py +++ b/pyinfra/proto/DocumentPage_pb2.py @@ -7,23 +7,22 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder - # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n\x12\x44ocumentPage.proto"8\n\x10\x41llDocumentPages\x12$\n\rdocumentPages\x18\x01 \x03(\x0b\x32\r.DocumentPage"O\n\x0c\x44ocumentPage\x12\x0e\n\x06number\x18\x01 \x01(\x05\x12\x0e\n\x06height\x18\x02 \x01(\x05\x12\r\n\x05width\x18\x03 \x01(\x05\x12\x10\n\x08rotation\x18\x04 \x01(\x05\x62\x06proto3' -) + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x12\x44ocumentPage.proto\"8\n\x10\x41llDocumentPages\x12$\n\rdocumentPages\x18\x01 \x03(\x0b\x32\r.DocumentPage\"O\n\x0c\x44ocumentPage\x12\x0e\n\x06number\x18\x01 \x01(\x05\x12\x0e\n\x06height\x18\x02 \x01(\x05\x12\r\n\x05width\x18\x03 \x01(\x05\x12\x10\n\x08rotation\x18\x04 \x01(\x05\x62\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "DocumentPage_pb2", _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'DocumentPage_pb2', _globals) if _descriptor._USE_C_DESCRIPTORS == False: - DESCRIPTOR._options = None - _globals["_ALLDOCUMENTPAGES"]._serialized_start = 22 - _globals["_ALLDOCUMENTPAGES"]._serialized_end = 78 - _globals["_DOCUMENTPAGE"]._serialized_start = 80 - _globals["_DOCUMENTPAGE"]._serialized_end = 159 + DESCRIPTOR._options = None + _globals['_ALLDOCUMENTPAGES']._serialized_start=22 + _globals['_ALLDOCUMENTPAGES']._serialized_end=78 + _globals['_DOCUMENTPAGE']._serialized_start=80 + _globals['_DOCUMENTPAGE']._serialized_end=159 # @@protoc_insertion_point(module_scope) diff --git a/pyinfra/proto/DocumentPositionData_pb2.py b/pyinfra/proto/DocumentPositionData_pb2.py index c018ae4..995bbeb 100644 --- a/pyinfra/proto/DocumentPositionData_pb2.py +++ b/pyinfra/proto/DocumentPositionData_pb2.py @@ -7,25 +7,24 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder - # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n\x1a\x44ocumentPositionData.proto"N\n\x17\x41llDocumentPositionData\x12\x33\n\x14\x64ocumentPositionData\x18\x01 \x03(\x0b\x32\x15.DocumentPositionData"\xb6\x01\n\x14\x44ocumentPositionData\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x1e\n\x16stringIdxToPositionIdx\x18\x02 \x03(\x05\x12\x31\n\tpositions\x18\x03 \x03(\x0b\x32\x1e.DocumentPositionData.Position\x1a?\n\x08Position\x12\t\n\x01x\x18\x01 \x01(\x02\x12\t\n\x01y\x18\x02 \x01(\x02\x12\r\n\x05width\x18\x03 \x01(\x02\x12\x0e\n\x06height\x18\x04 \x01(\x02\x62\x06proto3' -) + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1a\x44ocumentPositionData.proto\"N\n\x17\x41llDocumentPositionData\x12\x33\n\x14\x64ocumentPositionData\x18\x01 \x03(\x0b\x32\x15.DocumentPositionData\"\x90\x01\n\x14\x44ocumentPositionData\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x1e\n\x16stringIdxToPositionIdx\x18\x02 \x03(\x05\x12\x31\n\tpositions\x18\x03 \x03(\x0b\x32\x1e.DocumentPositionData.Position\x1a\x19\n\x08Position\x12\r\n\x05value\x18\x01 \x03(\x02\x62\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "DocumentPositionData_pb2", _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'DocumentPositionData_pb2', _globals) if _descriptor._USE_C_DESCRIPTORS == False: - DESCRIPTOR._options = None - _globals["_ALLDOCUMENTPOSITIONDATA"]._serialized_start = 30 - _globals["_ALLDOCUMENTPOSITIONDATA"]._serialized_end = 108 - _globals["_DOCUMENTPOSITIONDATA"]._serialized_start = 111 - _globals["_DOCUMENTPOSITIONDATA"]._serialized_end = 293 - _globals["_DOCUMENTPOSITIONDATA_POSITION"]._serialized_start = 230 - _globals["_DOCUMENTPOSITIONDATA_POSITION"]._serialized_end = 293 + DESCRIPTOR._options = None + _globals['_ALLDOCUMENTPOSITIONDATA']._serialized_start=30 + _globals['_ALLDOCUMENTPOSITIONDATA']._serialized_end=108 + _globals['_DOCUMENTPOSITIONDATA']._serialized_start=111 + _globals['_DOCUMENTPOSITIONDATA']._serialized_end=255 + _globals['_DOCUMENTPOSITIONDATA_POSITION']._serialized_start=230 + _globals['_DOCUMENTPOSITIONDATA_POSITION']._serialized_end=255 # @@protoc_insertion_point(module_scope) diff --git a/pyinfra/proto/DocumentStructure_pb2.py b/pyinfra/proto/DocumentStructure_pb2.py index 398b9f9..ab61f37 100644 --- a/pyinfra/proto/DocumentStructure_pb2.py +++ b/pyinfra/proto/DocumentStructure_pb2.py @@ -7,7 +7,6 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder - # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -15,15 +14,14 @@ _sym_db = _symbol_database.Default() import pyinfra.proto.EntryData_pb2 as EntryData__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n\x17\x44ocumentStructure.proto\x1a\x0f\x45ntryData.proto"-\n\x11\x44ocumentStructure\x12\x18\n\x04root\x18\x01 \x01(\x0b\x32\n.EntryDatab\x06proto3' -) + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x17\x44ocumentStructure.proto\x1a\x0f\x45ntryData.proto\"-\n\x11\x44ocumentStructure\x12\x18\n\x04root\x18\x01 \x01(\x0b\x32\n.EntryDatab\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "DocumentStructure_pb2", _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'DocumentStructure_pb2', _globals) if _descriptor._USE_C_DESCRIPTORS == False: - DESCRIPTOR._options = None - _globals["_DOCUMENTSTRUCTURE"]._serialized_start = 44 - _globals["_DOCUMENTSTRUCTURE"]._serialized_end = 89 + DESCRIPTOR._options = None + _globals['_DOCUMENTSTRUCTURE']._serialized_start=44 + _globals['_DOCUMENTSTRUCTURE']._serialized_end=89 # @@protoc_insertion_point(module_scope) diff --git a/pyinfra/proto/DocumentTextData_pb2.py b/pyinfra/proto/DocumentTextData_pb2.py index 2d59444..53afb8c 100644 --- a/pyinfra/proto/DocumentTextData_pb2.py +++ b/pyinfra/proto/DocumentTextData_pb2.py @@ -7,23 +7,22 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder - # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n\x16\x44ocumentTextData.proto"B\n\x13\x41llDocumentTextData\x12+\n\x10\x64ocumentTextData\x18\x01 \x03(\x0b\x32\x11.DocumentTextData"\x86\x01\n\x10\x44ocumentTextData\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x0c\n\x04page\x18\x02 \x01(\x03\x12\x12\n\nsearchText\x18\x03 \x01(\t\x12\x14\n\x0cnumberOnPage\x18\x04 \x01(\x05\x12\r\n\x05start\x18\x05 \x01(\x05\x12\x0b\n\x03\x65nd\x18\x06 \x01(\x05\x12\x12\n\nlineBreaks\x18\x07 \x03(\x05\x62\x06proto3' -) + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x16\x44ocumentTextData.proto\"B\n\x13\x41llDocumentTextData\x12+\n\x10\x64ocumentTextData\x18\x01 \x03(\x0b\x32\x11.DocumentTextData\"\x86\x01\n\x10\x44ocumentTextData\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x0c\n\x04page\x18\x02 \x01(\x03\x12\x12\n\nsearchText\x18\x03 \x01(\t\x12\x14\n\x0cnumberOnPage\x18\x04 \x01(\x05\x12\r\n\x05start\x18\x05 \x01(\x05\x12\x0b\n\x03\x65nd\x18\x06 \x01(\x05\x12\x12\n\nlineBreaks\x18\x07 \x03(\x05\x62\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "DocumentTextData_pb2", _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'DocumentTextData_pb2', _globals) if _descriptor._USE_C_DESCRIPTORS == False: - DESCRIPTOR._options = None - _globals["_ALLDOCUMENTTEXTDATA"]._serialized_start = 26 - _globals["_ALLDOCUMENTTEXTDATA"]._serialized_end = 92 - _globals["_DOCUMENTTEXTDATA"]._serialized_start = 95 - _globals["_DOCUMENTTEXTDATA"]._serialized_end = 229 + DESCRIPTOR._options = None + _globals['_ALLDOCUMENTTEXTDATA']._serialized_start=26 + _globals['_ALLDOCUMENTTEXTDATA']._serialized_end=92 + _globals['_DOCUMENTTEXTDATA']._serialized_start=95 + _globals['_DOCUMENTTEXTDATA']._serialized_end=229 # @@protoc_insertion_point(module_scope) diff --git a/pyinfra/proto/EntryData_pb2.py b/pyinfra/proto/EntryData_pb2.py index c35da81..10b2f78 100644 --- a/pyinfra/proto/EntryData_pb2.py +++ b/pyinfra/proto/EntryData_pb2.py @@ -7,7 +7,6 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder - # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -16,19 +15,18 @@ _sym_db = _symbol_database.Default() import pyinfra.proto.LayoutEngine_pb2 as LayoutEngine__pb2 import pyinfra.proto.NodeType_pb2 as NodeType__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n\x0f\x45ntryData.proto\x1a\x12LayoutEngine.proto\x1a\x0eNodeType.proto"\x82\x02\n\tEntryData\x12\x17\n\x04type\x18\x01 \x01(\x0e\x32\t.NodeType\x12\x0e\n\x06treeId\x18\x02 \x03(\x05\x12\x16\n\x0e\x61tomicBlockIds\x18\x03 \x03(\x03\x12\x13\n\x0bpageNumbers\x18\x04 \x03(\x03\x12.\n\nproperties\x18\x05 \x03(\x0b\x32\x1a.EntryData.PropertiesEntry\x12\x1c\n\x08\x63hildren\x18\x06 \x03(\x0b\x32\n.EntryData\x12\x1e\n\x07\x65ngines\x18\x07 \x03(\x0e\x32\r.LayoutEngine\x1a\x31\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x62\x06proto3' -) + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0f\x45ntryData.proto\x1a\x12LayoutEngine.proto\x1a\x0eNodeType.proto\"\x82\x02\n\tEntryData\x12\x17\n\x04type\x18\x01 \x01(\x0e\x32\t.NodeType\x12\x0e\n\x06treeId\x18\x02 \x03(\x05\x12\x16\n\x0e\x61tomicBlockIds\x18\x03 \x03(\x03\x12\x13\n\x0bpageNumbers\x18\x04 \x03(\x03\x12.\n\nproperties\x18\x05 \x03(\x0b\x32\x1a.EntryData.PropertiesEntry\x12\x1c\n\x08\x63hildren\x18\x06 \x03(\x0b\x32\n.EntryData\x12\x1e\n\x07\x65ngines\x18\x07 \x03(\x0e\x32\r.LayoutEngine\x1a\x31\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x62\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "EntryData_pb2", _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'EntryData_pb2', _globals) if _descriptor._USE_C_DESCRIPTORS == False: - DESCRIPTOR._options = None - _globals["_ENTRYDATA_PROPERTIESENTRY"]._options = None - _globals["_ENTRYDATA_PROPERTIESENTRY"]._serialized_options = b"8\001" - _globals["_ENTRYDATA"]._serialized_start = 56 - _globals["_ENTRYDATA"]._serialized_end = 314 - _globals["_ENTRYDATA_PROPERTIESENTRY"]._serialized_start = 265 - _globals["_ENTRYDATA_PROPERTIESENTRY"]._serialized_end = 314 + DESCRIPTOR._options = None + _globals['_ENTRYDATA_PROPERTIESENTRY']._options = None + _globals['_ENTRYDATA_PROPERTIESENTRY']._serialized_options = b'8\001' + _globals['_ENTRYDATA']._serialized_start=56 + _globals['_ENTRYDATA']._serialized_end=314 + _globals['_ENTRYDATA_PROPERTIESENTRY']._serialized_start=265 + _globals['_ENTRYDATA_PROPERTIESENTRY']._serialized_end=314 # @@protoc_insertion_point(module_scope) diff --git a/pyinfra/proto/LayoutEngine_pb2.py b/pyinfra/proto/LayoutEngine_pb2.py index 8223864..4e5b51f 100644 --- a/pyinfra/proto/LayoutEngine_pb2.py +++ b/pyinfra/proto/LayoutEngine_pb2.py @@ -7,21 +7,20 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder - # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b"\n\x12LayoutEngine.proto*2\n\x0cLayoutEngine\x12\r\n\tALGORITHM\x10\x00\x12\x06\n\x02\x41I\x10\x01\x12\x0b\n\x07OUTLINE\x10\x02\x62\x06proto3" -) + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x12LayoutEngine.proto*2\n\x0cLayoutEngine\x12\r\n\tALGORITHM\x10\x00\x12\x06\n\x02\x41I\x10\x01\x12\x0b\n\x07OUTLINE\x10\x02\x62\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "LayoutEngine_pb2", _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'LayoutEngine_pb2', _globals) if _descriptor._USE_C_DESCRIPTORS == False: - DESCRIPTOR._options = None - _globals["_LAYOUTENGINE"]._serialized_start = 22 - _globals["_LAYOUTENGINE"]._serialized_end = 72 + DESCRIPTOR._options = None + _globals['_LAYOUTENGINE']._serialized_start=22 + _globals['_LAYOUTENGINE']._serialized_end=72 # @@protoc_insertion_point(module_scope) diff --git a/pyinfra/proto/NodeType_pb2.py b/pyinfra/proto/NodeType_pb2.py index fb315d7..c4d2690 100644 --- a/pyinfra/proto/NodeType_pb2.py +++ b/pyinfra/proto/NodeType_pb2.py @@ -7,21 +7,20 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder - # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b"\n\x0eNodeType.proto*\x93\x01\n\x08NodeType\x12\x0c\n\x08\x44OCUMENT\x10\x00\x12\x0b\n\x07SECTION\x10\x01\x12\x11\n\rSUPER_SECTION\x10\x02\x12\x0c\n\x08HEADLINE\x10\x03\x12\r\n\tPARAGRAPH\x10\x04\x12\t\n\x05TABLE\x10\x05\x12\x0e\n\nTABLE_CELL\x10\x06\x12\t\n\x05IMAGE\x10\x07\x12\n\n\x06HEADER\x10\x08\x12\n\n\x06\x46OOTER\x10\tb\x06proto3" -) + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0eNodeType.proto*\x93\x01\n\x08NodeType\x12\x0c\n\x08\x44OCUMENT\x10\x00\x12\x0b\n\x07SECTION\x10\x01\x12\x11\n\rSUPER_SECTION\x10\x02\x12\x0c\n\x08HEADLINE\x10\x03\x12\r\n\tPARAGRAPH\x10\x04\x12\t\n\x05TABLE\x10\x05\x12\x0e\n\nTABLE_CELL\x10\x06\x12\t\n\x05IMAGE\x10\x07\x12\n\n\x06HEADER\x10\x08\x12\n\n\x06\x46OOTER\x10\tb\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "NodeType_pb2", _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'NodeType_pb2', _globals) if _descriptor._USE_C_DESCRIPTORS == False: - DESCRIPTOR._options = None - _globals["_NODETYPE"]._serialized_start = 19 - _globals["_NODETYPE"]._serialized_end = 166 + DESCRIPTOR._options = None + _globals['_NODETYPE']._serialized_start=19 + _globals['_NODETYPE']._serialized_end=166 # @@protoc_insertion_point(module_scope)