Commit ab2bf57c authored by Giorgio Azzinnaro's avatar Giorgio Azzinnaro

Merge branch 'feature/test' into develop

add grpc test and moved to
external proto generation
parents 7ab1034d 7499d152
......@@ -7,9 +7,15 @@ set(CMAKE_CXX_STANDARD 14)
option(BUILD_SHARED_LIBS "Build libprofanedb.so, to embed ProfaneDB" ON)
option(BUILD_PROFANEDB_SERVER "Build ProfaneDB gRPC server" OFF)
option(BUILD_TESTS "Build ProfaneDB tests" OFF)
set(PROTOBUF_IMPORT_DIRS "${CMAKE_SOURCE_DIR}/src")
# Even tests will need to include file from here
include_directories(${CMAKE_CURRENT_BINARY_DIR}/src ${CMAKE_CURRENT_SOURCE_DIR}/src)
# same with profanedb/protobuf objects
set(PROTOBUF_IMPORT_DIRS ${PROTOBUF_IMPORT_DIRS} ${CMAKE_CURRENT_SOURCE_DIR}/src)
add_subdirectory(src)
add_subdirectory(src/profanedb)
if (BUILD_TESTS)
add_subdirectory(test)
endif()
# Created by https://www.gitignore.io/api/python,virtualenv
### Python ###
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec
# Installer logs
pip-log.txt
pip-delete-this-directory.txt
# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*,cover
.hypothesis/
# Translations
*.mo
*.pot
# Django stuff:
*.log
local_settings.py
# Flask stuff:
instance/
.webassets-cache
# Scrapy stuff:
.scrapy
# Sphinx documentation
docs/_build/
# PyBuilder
target/
# Jupyter Notebook
.ipynb_checkpoints
# pyenv
.python-version
# celery beat schedule file
celerybeat-schedule
# SageMath parsed files
*.sage.py
# dotenv
.env
# virtualenv
.venv
venv/
ENV/
# Spyder project settings
.spyderproject
.spyproject
# Rope project settings
.ropeproject
# mkdocs documentation
/site
### VirtualEnv ###
# Virtualenv
# http://iamzed.com/2009/05/07/a-primer-on-virtualenv/
[Bb]in
[Ii]nclude
[Ll]ib
[Ll]ib64
[Ll]ocal
[Ss]cripts
pyvenv.cfg
pip-selfcheck.json
# End of https://www.gitignore.io/api/python,virtualenv
../../../src/profanedb/protobuf/db.proto
\ No newline at end of file
../../../src/profanedb/protobuf/options.proto
\ No newline at end of file
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
venv/
__pycache__/
import grpc
from google.protobuf import any_pb2
from profanedb.protobuf import db_pb2, db_pb2_grpc
import test_pb2, nested_pb2
from google.protobuf import any_pb2
def run():
channel = grpc.insecure_channel('localhost:50051')
stub = db_pb2_grpc.DbStub(channel)
......@@ -26,11 +25,6 @@ def run():
field_six_externalnested =
nested_pb2.ExternalNested(
field_one_double = 123.456
),
field_seven_repeated_keyable =
test_pb2.Nested.KeyableNestedInNested(
nested_in_nested_field_one_repeated_str = ["repeated", "string", "key"]
)
)
......@@ -40,10 +34,7 @@ def run():
stub.Put(db_pb2.PutReq(
serializable = serializable
))
stub.Get(db_pb2.GetReq(
key = "test.Test.field_one_int$123"
))
if __name__ == '__main__':
run()
......@@ -18,9 +18,9 @@ from profanedb.protobuf import options_pb2 as profanedb_dot_protobuf_dot_options
DESCRIPTOR = _descriptor.FileDescriptor(
name='nested.proto',
package='test',
package='schema',
syntax='proto3',
serialized_pb=_b('\n\x0cnested.proto\x12\x04test\x1a profanedb/protobuf/options.proto\"1\n\x0e\x45xternalNested\x12\x1f\n\x10\x66ield_one_double\x18\x01 \x01(\x01\x42\x05\xe2@\x02\x08\x01\x62\x06proto3')
serialized_pb=_b('\n\x0cnested.proto\x12\x06schema\x1a profanedb/protobuf/options.proto\"1\n\x0e\x45xternalNested\x12\x1f\n\x10\x66ield_one_double\x18\x01 \x01(\x01\x42\x05\xe2@\x02\x08\x01\x62\x06proto3')
,
dependencies=[profanedb_dot_protobuf_dot_options__pb2.DESCRIPTOR,])
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
......@@ -30,13 +30,13 @@ _sym_db.RegisterFileDescriptor(DESCRIPTOR)
_EXTERNALNESTED = _descriptor.Descriptor(
name='ExternalNested',
full_name='test.ExternalNested',
full_name='schema.ExternalNested',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='field_one_double', full_name='test.ExternalNested.field_one_double', index=0,
name='field_one_double', full_name='schema.ExternalNested.field_one_double', index=0,
number=1, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
......@@ -54,8 +54,8 @@ _EXTERNALNESTED = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
serialized_start=56,
serialized_end=105,
serialized_start=58,
serialized_end=107,
)
DESCRIPTOR.message_types_by_name['ExternalNested'] = _EXTERNALNESTED
......@@ -63,7 +63,7 @@ DESCRIPTOR.message_types_by_name['ExternalNested'] = _EXTERNALNESTED
ExternalNested = _reflection.GeneratedProtocolMessageType('ExternalNested', (_message.Message,), dict(
DESCRIPTOR = _EXTERNALNESTED,
__module__ = 'nested_pb2'
# @@protoc_insertion_point(class_scope:test.ExternalNested)
# @@protoc_insertion_point(class_scope:schema.ExternalNested)
))
_sym_db.RegisterMessage(ExternalNested)
......
......@@ -14,15 +14,16 @@ _sym_db = _symbol_database.Default()
from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2
from profanedb.protobuf import storage_pb2 as profanedb_dot_protobuf_dot_storage__pb2
DESCRIPTOR = _descriptor.FileDescriptor(
name='profanedb/protobuf/db.proto',
package='profanedb.protobuf',
syntax='proto3',
serialized_pb=_b('\n\x1bprofanedb/protobuf/db.proto\x12\x12profanedb.protobuf\x1a\x19google/protobuf/any.proto\"\x15\n\x06GetReq\x12\x0b\n\x03key\x18\x01 \x01(\t\"0\n\x07GetResp\x12%\n\x07message\x18\x01 \x01(\x0b\x32\x14.google.protobuf.Any\"4\n\x06PutReq\x12*\n\x0cserializable\x18\x01 \x01(\x0b\x32\x14.google.protobuf.Any\"\x16\n\x07PutResp\x12\x0b\n\x03key\x18\x01 \x01(\t\"\x15\n\x06\x44\x65lReq\x12\x0b\n\x03key\x18\x01 \x01(\t\"\t\n\x07\x44\x65lResp2\xc7\x01\n\x02\x44\x62\x12>\n\x03Get\x12\x1a.profanedb.protobuf.GetReq\x1a\x1b.profanedb.protobuf.GetResp\x12>\n\x03Put\x12\x1a.profanedb.protobuf.PutReq\x1a\x1b.profanedb.protobuf.PutResp\x12\x41\n\x06\x44\x65lete\x12\x1a.profanedb.protobuf.DelReq\x1a\x1b.profanedb.protobuf.DelRespBU\n\x16\x63om.profanedb.protobufZ gitlab.com/profanedb/protobuf/db\xa2\x02\x03PDB\xaa\x02\x12ProfaneDB.Protobufb\x06proto3')
serialized_pb=_b('\n\x1bprofanedb/protobuf/db.proto\x12\x12profanedb.protobuf\x1a\x19google/protobuf/any.proto\x1a profanedb/protobuf/storage.proto\".\n\x06GetReq\x12$\n\x03key\x18\x01 \x01(\x0b\x32\x17.profanedb.protobuf.Key\"0\n\x07GetResp\x12%\n\x07message\x18\x01 \x01(\x0b\x32\x14.google.protobuf.Any\"4\n\x06PutReq\x12*\n\x0cserializable\x18\x01 \x01(\x0b\x32\x14.google.protobuf.Any\"/\n\x07PutResp\x12$\n\x03key\x18\x01 \x01(\x0b\x32\x17.profanedb.protobuf.Key\".\n\x06\x44\x65lReq\x12$\n\x03key\x18\x01 \x01(\x0b\x32\x17.profanedb.protobuf.Key\"\t\n\x07\x44\x65lResp2\xc7\x01\n\x02\x44\x62\x12>\n\x03Get\x12\x1a.profanedb.protobuf.GetReq\x1a\x1b.profanedb.protobuf.GetResp\x12>\n\x03Put\x12\x1a.profanedb.protobuf.PutReq\x1a\x1b.profanedb.protobuf.PutResp\x12\x41\n\x06\x44\x65lete\x12\x1a.profanedb.protobuf.DelReq\x1a\x1b.profanedb.protobuf.DelRespBU\n\x16\x63om.profanedb.protobufZ gitlab.com/profanedb/protobuf/db\xa2\x02\x03PDB\xaa\x02\x12ProfaneDB.Protobufb\x06proto3')
,
dependencies=[google_dot_protobuf_dot_any__pb2.DESCRIPTOR,])
dependencies=[google_dot_protobuf_dot_any__pb2.DESCRIPTOR,profanedb_dot_protobuf_dot_storage__pb2.DESCRIPTOR,])
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
......@@ -37,8 +38,8 @@ _GETREQ = _descriptor.Descriptor(
fields=[
_descriptor.FieldDescriptor(
name='key', full_name='profanedb.protobuf.GetReq.key', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
number=1, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
......@@ -54,8 +55,8 @@ _GETREQ = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
serialized_start=78,
serialized_end=99,
serialized_start=112,
serialized_end=158,
)
......@@ -85,8 +86,8 @@ _GETRESP = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
serialized_start=101,
serialized_end=149,
serialized_start=160,
serialized_end=208,
)
......@@ -116,8 +117,8 @@ _PUTREQ = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
serialized_start=151,
serialized_end=203,
serialized_start=210,
serialized_end=262,
)
......@@ -130,8 +131,8 @@ _PUTRESP = _descriptor.Descriptor(
fields=[
_descriptor.FieldDescriptor(
name='key', full_name='profanedb.protobuf.PutResp.key', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
number=1, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
......@@ -147,8 +148,8 @@ _PUTRESP = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
serialized_start=205,
serialized_end=227,
serialized_start=264,
serialized_end=311,
)
......@@ -161,8 +162,8 @@ _DELREQ = _descriptor.Descriptor(
fields=[
_descriptor.FieldDescriptor(
name='key', full_name='profanedb.protobuf.DelReq.key', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
number=1, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
......@@ -178,8 +179,8 @@ _DELREQ = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
serialized_start=229,
serialized_end=250,
serialized_start=313,
serialized_end=359,
)
......@@ -202,12 +203,15 @@ _DELRESP = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
serialized_start=252,
serialized_end=261,
serialized_start=361,
serialized_end=370,
)
_GETREQ.fields_by_name['key'].message_type = profanedb_dot_protobuf_dot_storage__pb2._KEY
_GETRESP.fields_by_name['message'].message_type = google_dot_protobuf_dot_any__pb2._ANY
_PUTREQ.fields_by_name['serializable'].message_type = google_dot_protobuf_dot_any__pb2._ANY
_PUTRESP.fields_by_name['key'].message_type = profanedb_dot_protobuf_dot_storage__pb2._KEY
_DELREQ.fields_by_name['key'].message_type = profanedb_dot_protobuf_dot_storage__pb2._KEY
DESCRIPTOR.message_types_by_name['GetReq'] = _GETREQ
DESCRIPTOR.message_types_by_name['GetResp'] = _GETRESP
DESCRIPTOR.message_types_by_name['PutReq'] = _PUTREQ
......
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: profanedb/protobuf/storage.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
from google.protobuf import descriptor_pb2
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor.FileDescriptor(
name='profanedb/protobuf/storage.proto',
package='profanedb.protobuf',
syntax='proto3',
serialized_pb=_b('\n profanedb/protobuf/storage.proto\x12\x12profanedb.protobuf\"9\n\x03Key\x12\x14\n\x0cmessage_type\x18\x01 \x01(\t\x12\r\n\x05\x66ield\x18\x02 \x01(\t\x12\r\n\x05value\x18\x03 \x01(\x0c\"H\n\x0fStorableMessage\x12$\n\x03key\x18\x01 \x01(\x0b\x32\x17.profanedb.protobuf.Key\x12\x0f\n\x07payload\x18\x02 \x01(\x0c\"~\n\x0fMessageTreeNode\x12\x34\n\x07message\x18\x01 \x01(\x0b\x32#.profanedb.protobuf.StorableMessage\x12\x35\n\x08\x63hildren\x18\x02 \x03(\x0b\x32#.profanedb.protobuf.MessageTreeNodeBU\n\x16\x63om.profanedb.protobufZ gitlab.com/profanedb/protobuf/db\xa2\x02\x03PDB\xaa\x02\x12ProfaneDB.Protobufb\x06proto3')
)
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
_KEY = _descriptor.Descriptor(
name='Key',
full_name='profanedb.protobuf.Key',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='message_type', full_name='profanedb.protobuf.Key.message_type', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='field', full_name='profanedb.protobuf.Key.field', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='value', full_name='profanedb.protobuf.Key.value', index=2,
number=3, type=12, cpp_type=9, label=1,
has_default_value=False, default_value=_b(""),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=56,
serialized_end=113,
)
_STORABLEMESSAGE = _descriptor.Descriptor(
name='StorableMessage',
full_name='profanedb.protobuf.StorableMessage',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='key', full_name='profanedb.protobuf.StorableMessage.key', index=0,
number=1, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='payload', full_name='profanedb.protobuf.StorableMessage.payload', index=1,
number=2, type=12, cpp_type=9, label=1,
has_default_value=False, default_value=_b(""),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=115,
serialized_end=187,
)
_MESSAGETREENODE = _descriptor.Descriptor(
name='MessageTreeNode',
full_name='profanedb.protobuf.MessageTreeNode',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='message', full_name='profanedb.protobuf.MessageTreeNode.message', index=0,
number=1, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='children', full_name='profanedb.protobuf.MessageTreeNode.children', index=1,
number=2, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
],
extensions=[
],
nested_types=[],
enum_types=[
],
options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=189,
serialized_end=315,
)
_STORABLEMESSAGE.fields_by_name['key'].message_type = _KEY
_MESSAGETREENODE.fields_by_name['message'].message_type = _STORABLEMESSAGE
_MESSAGETREENODE.fields_by_name['children'].message_type = _MESSAGETREENODE
DESCRIPTOR.message_types_by_name['Key'] = _KEY
DESCRIPTOR.message_types_by_name['StorableMessage'] = _STORABLEMESSAGE
DESCRIPTOR.message_types_by_name['MessageTreeNode'] = _MESSAGETREENODE
Key = _reflection.GeneratedProtocolMessageType('Key', (_message.Message,), dict(
DESCRIPTOR = _KEY,
__module__ = 'profanedb.protobuf.storage_pb2'
# @@protoc_insertion_point(class_scope:profanedb.protobuf.Key)
))
_sym_db.RegisterMessage(Key)
StorableMessage = _reflection.GeneratedProtocolMessageType('StorableMessage', (_message.Message,), dict(
DESCRIPTOR = _STORABLEMESSAGE,
__module__ = 'profanedb.protobuf.storage_pb2'
# @@protoc_insertion_point(class_scope:profanedb.protobuf.StorableMessage)
))
_sym_db.RegisterMessage(StorableMessage)
MessageTreeNode = _reflection.GeneratedProtocolMessageType('MessageTreeNode', (_message.Message,), dict(
DESCRIPTOR = _MESSAGETREENODE,
__module__ = 'profanedb.protobuf.storage_pb2'
# @@protoc_insertion_point(class_scope:profanedb.protobuf.MessageTreeNode)
))
_sym_db.RegisterMessage(MessageTreeNode)
DESCRIPTOR.has_options = True
DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\026com.profanedb.protobufZ gitlab.com/profanedb/protobuf/db\242\002\003PDB\252\002\022ProfaneDB.Protobuf'))
try:
# THESE ELEMENTS WILL BE DEPRECATED.
# Please use the generated *_pb2_grpc.py files instead.
import grpc
from grpc.beta import implementations as beta_implementations
from grpc.beta import interfaces as beta_interfaces
from grpc.framework.common import cardinality
from grpc.framework.interfaces.face import utilities as face_utilities
except ImportError:
pass
# @@protoc_insertion_point(module_scope)
../test/profanedb/test/protobuf/schema
\ No newline at end of file
......@@ -19,9 +19,9 @@ import nested_pb2 as nested__pb2
DESCRIPTOR = _descriptor.FileDescriptor(
name='test.proto',
package='test',
package='schema',
syntax='proto3',
serialized_pb=_b('\n\ntest.proto\x12\x04test\x1a profanedb/protobuf/options.proto\x1a\x0cnested.proto\"\x9a\x02\n\x04Test\x12\x1c\n\rfield_one_int\x18\x01 \x01(\x05\x42\x05\xe2@\x02\x08\x01\x12\x15\n\rfield_two_str\x18\x02 \x01(\t\x12\x18\n\x10\x66ield_three_bool\x18\x03 \x01(\x08\x12\'\n\x11\x66ield_five_nested\x18\x05 \x01(\x0b\x32\x0c.test.Nested\x12\x18\n\x10\x66ield_four_bytes\x18\x04 \x01(\x0c\x12\x36\n\x18\x66ield_six_externalnested\x18\x06 \x01(\x0b\x32\x14.test.ExternalNested\x12H\n\x1c\x66ield_seven_repeated_keyable\x18\x07 \x01(\x0b\x32\".test.Nested.KeyableNestedInNested\"\xbf\x01\n\x06Nested\x12#\n\x14nested_field_one_str\x18\x01 \x01(\tB\x05\xe2@\x02\x08\x01\x12\x1c\n\x14nested_field_two_int\x18\x02 \x01(\x03\x12!\n\x19nested_field_three_double\x18\x03 \x01(\x01\x1aO\n\x15KeyableNestedInNested\x12\x36\n\'nested_in_nested_field_one_repeated_str\x18\x01 \x03(\tB\x05\xe2@\x02\x08\x01\x62\x06proto3')
serialized_pb=_b('\n\ntest.proto\x12\x06schema\x1a profanedb/protobuf/options.proto\x1a\x0cnested.proto\"\xa0\x02\n\x04Test\x12\x1c\n\rfield_one_int\x18\x01 \x01(\x05\x42\x05\xe2@\x02\x08\x01\x12\x15\n\rfield_two_str\x18\x02 \x01(\t\x12\x18\n\x10\x66ield_three_bool\x18\x03 \x01(\x08\x12)\n\x11\x66ield_five_nested\x18\x05 \x01(\x0b\x32\x0e.schema.Nested\x12\x18\n\x10\x66ield_four_bytes\x18\x04 \x01(\x0c\x12\x38\n\x18\x66ield_six_externalnested\x18\x06 \x01(\x0b\x32\x16.schema.ExternalNested\x12J\n\x1c\x66ield_seven_repeated_keyable\x18\x07 \x01(\x0b\x32$.schema.Nested.KeyableNestedInNested\"\xbf\x01\n\x06Nested\x12#\n\x14nested_field_one_str\x18\x01 \x01(\tB\x05\xe2@\x02\x08\x01\x12\x1c\n\x14nested_field_two_int\x18\x02 \x01(\x03\x12!\n\x19nested_field_three_double\x18\x03 \x01(\x01\x1aO\n\x15KeyableNestedInNested\x12\x36\n\'nested_in_nested_field_one_repeated_str\x18\x01 \x03(\tB\x05\xe2@\x02\x08\x01\x62\x06proto3')
,
dependencies=[profanedb_dot_protobuf_dot_options__pb2.DESCRIPTOR,nested__pb2.DESCRIPTOR,])
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
......@@ -31,55 +31,55 @@ _sym_db.RegisterFileDescriptor(DESCRIPTOR)
_TEST = _descriptor.Descriptor(
name='Test',
full_name='test.Test',
full_name='schema.Test',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='field_one_int', full_name='test.Test.field_one_int', index=0,
name='field_one_int', full_name='schema.Test.field_one_int', index=0,
number=1, type=5, cpp_type=1, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=_descriptor._ParseOptions(descriptor_pb2.FieldOptions(), _b('\342@\002\010\001'))),
_descriptor.FieldDescriptor(
name='field_two_str', full_name='test.Test.field_two_str', index=1,
name='field_two_str', full_name='schema.Test.field_two_str', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=_b("").decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='field_three_bool', full_name='test.Test.field_three_bool', index=2,
name='field_three_bool', full_name='schema.Test.field_three_bool', index=2,
number=3, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='field_five_nested', full_name='test.Test.field_five_nested', index=3,
name='field_five_nested', full_name='schema.Test.field_five_nested', index=3,
number=5, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='field_four_bytes', full_name='test.Test.field_four_bytes', index=4,
name='field_four_bytes', full_name='schema.Test.field_four_bytes', index=4,
number=4, type=12, cpp_type=9, label=1,
has_default_value=False, default_value=_b(""),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='field_six_externalnested', full_name='test.Test.field_six_externalnested', index=5,
name='field_six_externalnested', full_name='schema.Test.field_six_externalnested', index=5,
number=6, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
options=None),
_descriptor.FieldDescriptor(
name='field_seven_repeated_keyable', full_name='test.Test.field_seven_repeated_keyable', index=6,
name='field_seven_repeated_keyable', full_name='schema.Test.field_seven_repeated_keyable', index=6,
number=7, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
......@@ -97,20 +97,20 @@ _TEST = _descriptor.Descriptor(
extension_ranges=[],
oneofs=[
],
serialized_start=69,
serialized_end=351,
serialized_start=71,