From 2ee199e9eeb80fdd8d4a2a7e87457d881ec0b55a Mon Sep 17 00:00:00 2001 From: Jem Date: Wed, 7 Aug 2019 15:19:08 +0800 Subject: [PATCH] feat(audio): add preprocess and mfcc encoder for audio, update protobuf --- gnes/proto/gnes_pb2.py | 247 ++++++++++++++++++++++------------------- 1 file changed, 135 insertions(+), 112 deletions(-) diff --git a/gnes/proto/gnes_pb2.py b/gnes/proto/gnes_pb2.py index 8657e180..e47dc062 100644 --- a/gnes/proto/gnes_pb2.py +++ b/gnes/proto/gnes_pb2.py @@ -21,7 +21,7 @@ package='gnes', syntax='proto3', serialized_options=None, - serialized_pb=_b('\n\ngnes.proto\x12\x04gnes\x1a\x1fgoogle/protobuf/timestamp.proto\"9\n\x07NdArray\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\x12\x11\n\x05shape\x18\x02 \x03(\rB\x02\x10\x01\x12\r\n\x05\x64type\x18\x03 \x01(\t\"\xbc\x01\n\x05\x43hunk\x12\x0e\n\x06\x64oc_id\x18\x01 \x01(\x04\x12\x0e\n\x04text\x18\x02 \x01(\tH\x00\x12\x1d\n\x04\x62lob\x18\x03 \x01(\x0b\x32\r.gnes.NdArrayH\x00\x12\x11\n\toffset_1d\x18\x04 \x01(\r\x12)\n\toffset_nd\x18\x05 \x01(\x0b\x32\x16.gnes.Chunk.Coordinate\x12\x0e\n\x06weight\x18\x06 \x01(\x02\x1a\x1b\n\nCoordinate\x12\r\n\x01x\x18\x01 \x03(\rB\x02\x10\x01\x42\t\n\x07\x63ontent\"\xe2\x02\n\x08\x44ocument\x12\x0e\n\x06\x64oc_id\x18\x01 \x01(\x04\x12\x1b\n\x06\x63hunks\x18\x02 \x03(\x0b\x32\x0b.gnes.Chunk\x12\'\n\x10\x63hunk_embeddings\x18\x03 \x01(\x0b\x32\r.gnes.NdArray\x12(\n\x08\x64oc_type\x18\x04 \x01(\x0e\x32\x16.gnes.Document.DocType\x12\x11\n\tmeta_info\x18\x05 \x01(\x0c\x12\x12\n\x08raw_text\x18\x06 \x01(\tH\x00\x12\"\n\traw_image\x18\x07 \x01(\x0b\x32\r.gnes.NdArrayH\x00\x12\"\n\traw_video\x18\x08 \x01(\x0b\x32\r.gnes.NdArrayH\x00\x12\x13\n\traw_bytes\x18\t \x01(\x0cH\x00\x12\x0e\n\x06weight\x18\n \x01(\x02\"6\n\x07\x44ocType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x08\n\x04TEXT\x10\x01\x12\t\n\x05IMAGE\x10\x02\x12\t\n\x05VIDEO\x10\x03\x42\n\n\x08raw_data\"\xd4\x01\n\x08\x45nvelope\x12\x11\n\tclient_id\x18\x01 \x01(\t\x12\x12\n\nrequest_id\x18\x02 \x01(\t\x12\x0f\n\x07part_id\x18\x03 \x01(\r\x12\x10\n\x08num_part\x18\x04 \x03(\r\x12\x0f\n\x07timeout\x18\x05 \x01(\r\x12$\n\x06routes\x18\x06 \x03(\x0b\x32\x14.gnes.Envelope.route\x1aG\n\x05route\x12\x0f\n\x07service\x18\x01 \x01(\t\x12-\n\ttimestamp\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"y\n\x07Message\x12 \n\x08\x65nvelope\x18\x01 \x01(\x0b\x32\x0e.gnes.Envelope\x12 \n\x07request\x18\x02 \x01(\x0b\x32\r.gnes.RequestH\x00\x12\"\n\x08response\x18\x03 \x01(\x0b\x32\x0e.gnes.ResponseH\x00\x42\x06\n\x04\x62ody\"\xf6\x03\n\x07Request\x12\x12\n\nrequest_id\x18\x01 \x01(\t\x12+\n\x05train\x18\x02 \x01(\x0b\x32\x1a.gnes.Request.TrainRequestH\x00\x12+\n\x05index\x18\x03 \x01(\x0b\x32\x1a.gnes.Request.IndexRequestH\x00\x12,\n\x06search\x18\x04 \x01(\x0b\x32\x1a.gnes.Request.QueryRequestH\x00\x12/\n\x07\x63ontrol\x18\x05 \x01(\x0b\x32\x1c.gnes.Request.ControlRequestH\x00\x1a;\n\x0cTrainRequest\x12\x1c\n\x04\x64ocs\x18\x01 \x03(\x0b\x32\x0e.gnes.Document\x12\r\n\x05\x66lush\x18\x02 \x01(\x08\x1a,\n\x0cIndexRequest\x12\x1c\n\x04\x64ocs\x18\x01 \x03(\x0b\x32\x0e.gnes.Document\x1a<\n\x0cQueryRequest\x12\x1d\n\x05query\x18\x01 \x01(\x0b\x32\x0e.gnes.Document\x12\r\n\x05top_k\x18\x02 \x01(\r\x1am\n\x0e\x43ontrolRequest\x12\x35\n\x07\x63ommand\x18\x01 \x01(\x0e\x32$.gnes.Request.ControlRequest.Command\"$\n\x07\x43ommand\x12\r\n\tTERMINATE\x10\x00\x12\n\n\x06STATUS\x10\x01\x42\x06\n\x04\x62ody\"\xc4\x06\n\x08Response\x12\x12\n\nrequest_id\x18\x01 \x01(\t\x12-\n\x05train\x18\x02 \x01(\x0b\x32\x1c.gnes.Response.TrainResponseH\x00\x12-\n\x05index\x18\x03 \x01(\x0b\x32\x1c.gnes.Response.IndexResponseH\x00\x12.\n\x06search\x18\x04 \x01(\x0b\x32\x1c.gnes.Response.QueryResponseH\x00\x12\x31\n\x07\x63ontrol\x18\x05 \x01(\x0b\x32\x1e.gnes.Response.ControlResponseH\x00\x1a\x36\n\rTrainResponse\x12%\n\x06status\x18\x01 \x01(\x0e\x32\x15.gnes.Response.Status\x1a\x36\n\rIndexResponse\x12%\n\x06status\x18\x01 \x01(\x0e\x32\x15.gnes.Response.Status\x1a\x38\n\x0f\x43ontrolResponse\x12%\n\x06status\x18\x01 \x01(\x0e\x32\x15.gnes.Response.Status\x1a\x81\x03\n\rQueryResponse\x12%\n\x06status\x18\x01 \x01(\x0e\x32\x15.gnes.Response.Status\x12\r\n\x05top_k\x18\x02 \x01(\r\x12?\n\x0ctopk_results\x18\x03 \x03(\x0b\x32).gnes.Response.QueryResponse.ScoredResult\x12\x39\n\x05level\x18\x04 \x01(\x0e\x32*.gnes.Response.QueryResponse.ResponseLevel\x1a{\n\x0cScoredResult\x12\x1c\n\x05\x63hunk\x18\x01 \x01(\x0b\x32\x0b.gnes.ChunkH\x00\x12\x1d\n\x03\x64oc\x18\x02 \x01(\x0b\x32\x0e.gnes.DocumentH\x00\x12\r\n\x05score\x18\x03 \x01(\x02\x12\x17\n\x0fscore_explained\x18\x04 \x01(\tB\x06\n\x04\x62ody\"A\n\rResponseLevel\x12\t\n\x05\x43HUNK\x10\x00\x12\x17\n\x13\x44OCUMENT_NOT_FILLED\x10\x01\x12\x0c\n\x08\x44OCUMENT\x10\x02\"-\n\x06Status\x12\x0b\n\x07SUCCESS\x10\x00\x12\t\n\x05\x45RROR\x10\x01\x12\x0b\n\x07PENDING\x10\x02\x42\x06\n\x04\x62ody2\xe3\x01\n\x07GnesRPC\x12(\n\x05Train\x12\r.gnes.Request\x1a\x0e.gnes.Response\"\x00\x12(\n\x05Index\x12\r.gnes.Request\x1a\x0e.gnes.Response\"\x00\x12(\n\x05Query\x12\r.gnes.Request\x1a\x0e.gnes.Response\"\x00\x12\'\n\x04\x43\x61ll\x12\r.gnes.Request\x1a\x0e.gnes.Response\"\x00\x12\x31\n\nStreamCall\x12\r.gnes.Request\x1a\x0e.gnes.Response\"\x00(\x01\x30\x01\x62\x06proto3') + serialized_pb=_b('\n\ngnes.proto\x12\x04gnes\x1a\x1fgoogle/protobuf/timestamp.proto\"9\n\x07NdArray\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\x12\x11\n\x05shape\x18\x02 \x03(\rB\x02\x10\x01\x12\r\n\x05\x64type\x18\x03 \x01(\t\"\xbc\x01\n\x05\x43hunk\x12\x0e\n\x06\x64oc_id\x18\x01 \x01(\x04\x12\x0e\n\x04text\x18\x02 \x01(\tH\x00\x12\x1d\n\x04\x62lob\x18\x03 \x01(\x0b\x32\r.gnes.NdArrayH\x00\x12\x11\n\toffset_1d\x18\x04 \x01(\r\x12)\n\toffset_nd\x18\x05 \x01(\x0b\x32\x16.gnes.Chunk.Coordinate\x12\x0e\n\x06weight\x18\x06 \x01(\x02\x1a\x1b\n\nCoordinate\x12\r\n\x01x\x18\x01 \x03(\rB\x02\x10\x01\x42\t\n\x07\x63ontent\"\xd9\x03\n\x08\x44ocument\x12\x0e\n\x06\x64oc_id\x18\x01 \x01(\x04\x12\x1b\n\x06\x63hunks\x18\x02 \x03(\x0b\x32\x0b.gnes.Chunk\x12\'\n\x10\x63hunk_embeddings\x18\x03 \x01(\x0b\x32\r.gnes.NdArray\x12(\n\x08\x64oc_type\x18\x04 \x01(\x0e\x32\x16.gnes.Document.DocType\x12\x11\n\tmeta_info\x18\x05 \x01(\x0c\x12\x12\n\x08raw_text\x18\x06 \x01(\tH\x00\x12\"\n\traw_image\x18\x07 \x01(\x0b\x32\r.gnes.NdArrayH\x00\x12\"\n\traw_video\x18\x08 \x01(\x0b\x32\r.gnes.NdArrayH\x00\x12\x13\n\traw_bytes\x18\t \x01(\x0cH\x00\x12\x0e\n\x06weight\x18\n \x01(\x02\x12&\n\x11\x63hunks_additional\x18\x0b \x03(\x0b\x32\x0b.gnes.Chunk\x12\x32\n\x1b\x63hunk_embeddings_additional\x18\x0c \x01(\x0b\x32\r.gnes.NdArray\x12\x19\n\x11weight_additional\x18\r \x01(\x02\"6\n\x07\x44ocType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x08\n\x04TEXT\x10\x01\x12\t\n\x05IMAGE\x10\x02\x12\t\n\x05VIDEO\x10\x03\x42\n\n\x08raw_data\"\xd4\x01\n\x08\x45nvelope\x12\x11\n\tclient_id\x18\x01 \x01(\t\x12\x12\n\nrequest_id\x18\x02 \x01(\t\x12\x0f\n\x07part_id\x18\x03 \x01(\r\x12\x10\n\x08num_part\x18\x04 \x03(\r\x12\x0f\n\x07timeout\x18\x05 \x01(\r\x12$\n\x06routes\x18\x06 \x03(\x0b\x32\x14.gnes.Envelope.route\x1aG\n\x05route\x12\x0f\n\x07service\x18\x01 \x01(\t\x12-\n\ttimestamp\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"y\n\x07Message\x12 \n\x08\x65nvelope\x18\x01 \x01(\x0b\x32\x0e.gnes.Envelope\x12 \n\x07request\x18\x02 \x01(\x0b\x32\r.gnes.RequestH\x00\x12\"\n\x08response\x18\x03 \x01(\x0b\x32\x0e.gnes.ResponseH\x00\x42\x06\n\x04\x62ody\"\xf6\x03\n\x07Request\x12\x12\n\nrequest_id\x18\x01 \x01(\t\x12+\n\x05train\x18\x02 \x01(\x0b\x32\x1a.gnes.Request.TrainRequestH\x00\x12+\n\x05index\x18\x03 \x01(\x0b\x32\x1a.gnes.Request.IndexRequestH\x00\x12,\n\x06search\x18\x04 \x01(\x0b\x32\x1a.gnes.Request.QueryRequestH\x00\x12/\n\x07\x63ontrol\x18\x05 \x01(\x0b\x32\x1c.gnes.Request.ControlRequestH\x00\x1a;\n\x0cTrainRequest\x12\x1c\n\x04\x64ocs\x18\x01 \x03(\x0b\x32\x0e.gnes.Document\x12\r\n\x05\x66lush\x18\x02 \x01(\x08\x1a,\n\x0cIndexRequest\x12\x1c\n\x04\x64ocs\x18\x01 \x03(\x0b\x32\x0e.gnes.Document\x1a<\n\x0cQueryRequest\x12\x1d\n\x05query\x18\x01 \x01(\x0b\x32\x0e.gnes.Document\x12\r\n\x05top_k\x18\x02 \x01(\r\x1am\n\x0e\x43ontrolRequest\x12\x35\n\x07\x63ommand\x18\x01 \x01(\x0e\x32$.gnes.Request.ControlRequest.Command\"$\n\x07\x43ommand\x12\r\n\tTERMINATE\x10\x00\x12\n\n\x06STATUS\x10\x01\x42\x06\n\x04\x62ody\"\xc4\x06\n\x08Response\x12\x12\n\nrequest_id\x18\x01 \x01(\t\x12-\n\x05train\x18\x02 \x01(\x0b\x32\x1c.gnes.Response.TrainResponseH\x00\x12-\n\x05index\x18\x03 \x01(\x0b\x32\x1c.gnes.Response.IndexResponseH\x00\x12.\n\x06search\x18\x04 \x01(\x0b\x32\x1c.gnes.Response.QueryResponseH\x00\x12\x31\n\x07\x63ontrol\x18\x05 \x01(\x0b\x32\x1e.gnes.Response.ControlResponseH\x00\x1a\x36\n\rTrainResponse\x12%\n\x06status\x18\x01 \x01(\x0e\x32\x15.gnes.Response.Status\x1a\x36\n\rIndexResponse\x12%\n\x06status\x18\x01 \x01(\x0e\x32\x15.gnes.Response.Status\x1a\x38\n\x0f\x43ontrolResponse\x12%\n\x06status\x18\x01 \x01(\x0e\x32\x15.gnes.Response.Status\x1a\x81\x03\n\rQueryResponse\x12%\n\x06status\x18\x01 \x01(\x0e\x32\x15.gnes.Response.Status\x12\r\n\x05top_k\x18\x02 \x01(\r\x12?\n\x0ctopk_results\x18\x03 \x03(\x0b\x32).gnes.Response.QueryResponse.ScoredResult\x12\x39\n\x05level\x18\x04 \x01(\x0e\x32*.gnes.Response.QueryResponse.ResponseLevel\x1a{\n\x0cScoredResult\x12\x1c\n\x05\x63hunk\x18\x01 \x01(\x0b\x32\x0b.gnes.ChunkH\x00\x12\x1d\n\x03\x64oc\x18\x02 \x01(\x0b\x32\x0e.gnes.DocumentH\x00\x12\r\n\x05score\x18\x03 \x01(\x02\x12\x17\n\x0fscore_explained\x18\x04 \x01(\tB\x06\n\x04\x62ody\"A\n\rResponseLevel\x12\t\n\x05\x43HUNK\x10\x00\x12\x17\n\x13\x44OCUMENT_NOT_FILLED\x10\x01\x12\x0c\n\x08\x44OCUMENT\x10\x02\"-\n\x06Status\x12\x0b\n\x07SUCCESS\x10\x00\x12\t\n\x05\x45RROR\x10\x01\x12\x0b\n\x07PENDING\x10\x02\x42\x06\n\x04\x62ody2\xe3\x01\n\x07GnesRPC\x12(\n\x05Train\x12\r.gnes.Request\x1a\x0e.gnes.Response\"\x00\x12(\n\x05Index\x12\r.gnes.Request\x1a\x0e.gnes.Response\"\x00\x12(\n\x05Query\x12\r.gnes.Request\x1a\x0e.gnes.Response\"\x00\x12\'\n\x04\x43\x61ll\x12\r.gnes.Request\x1a\x0e.gnes.Response\"\x00\x12\x31\n\nStreamCall\x12\r.gnes.Request\x1a\x0e.gnes.Response\"\x00(\x01\x30\x01\x62\x06proto3') , dependencies=[google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) @@ -52,8 +52,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=592, - serialized_end=646, + serialized_start=711, + serialized_end=765, ) _sym_db.RegisterEnumDescriptor(_DOCUMENT_DOCTYPE) @@ -74,8 +74,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=1457, - serialized_end=1493, + serialized_start=1576, + serialized_end=1612, ) _sym_db.RegisterEnumDescriptor(_REQUEST_CONTROLREQUEST_COMMAND) @@ -100,8 +100,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=2220, - serialized_end=2285, + serialized_start=2339, + serialized_end=2404, ) _sym_db.RegisterEnumDescriptor(_RESPONSE_QUERYRESPONSE_RESPONSELEVEL) @@ -126,8 +126,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=2287, - serialized_end=2332, + serialized_start=2406, + serialized_end=2451, ) _sym_db.RegisterEnumDescriptor(_RESPONSE_STATUS) @@ -353,6 +353,27 @@ message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='chunks_additional', full_name='gnes.Document.chunks_additional', index=10, + number=11, 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, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='chunk_embeddings_additional', full_name='gnes.Document.chunk_embeddings_additional', index=11, + number=12, 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, + serialized_options=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='weight_additional', full_name='gnes.Document.weight_additional', index=12, + number=13, type=2, cpp_type=6, label=1, + has_default_value=False, default_value=float(0), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), ], extensions=[ ], @@ -370,7 +391,7 @@ index=0, containing_type=None, fields=[]), ], serialized_start=304, - serialized_end=658, + serialized_end=777, ) @@ -407,8 +428,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=802, - serialized_end=873, + serialized_start=921, + serialized_end=992, ) _ENVELOPE = _descriptor.Descriptor( @@ -472,8 +493,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=661, - serialized_end=873, + serialized_start=780, + serialized_end=992, ) @@ -520,8 +541,8 @@ name='body', full_name='gnes.Message.body', index=0, containing_type=None, fields=[]), ], - serialized_start=875, - serialized_end=996, + serialized_start=994, + serialized_end=1115, ) @@ -558,8 +579,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1215, - serialized_end=1274, + serialized_start=1334, + serialized_end=1393, ) _REQUEST_INDEXREQUEST = _descriptor.Descriptor( @@ -588,8 +609,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1276, - serialized_end=1320, + serialized_start=1395, + serialized_end=1439, ) _REQUEST_QUERYREQUEST = _descriptor.Descriptor( @@ -625,8 +646,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1322, - serialized_end=1382, + serialized_start=1441, + serialized_end=1501, ) _REQUEST_CONTROLREQUEST = _descriptor.Descriptor( @@ -656,8 +677,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1384, - serialized_end=1493, + serialized_start=1503, + serialized_end=1612, ) _REQUEST = _descriptor.Descriptor( @@ -717,8 +738,8 @@ name='body', full_name='gnes.Request.body', index=0, containing_type=None, fields=[]), ], - serialized_start=999, - serialized_end=1501, + serialized_start=1118, + serialized_end=1620, ) @@ -748,8 +769,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1729, - serialized_end=1783, + serialized_start=1848, + serialized_end=1902, ) _RESPONSE_INDEXRESPONSE = _descriptor.Descriptor( @@ -778,8 +799,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1785, - serialized_end=1839, + serialized_start=1904, + serialized_end=1958, ) _RESPONSE_CONTROLRESPONSE = _descriptor.Descriptor( @@ -808,8 +829,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1841, - serialized_end=1897, + serialized_start=1960, + serialized_end=2016, ) _RESPONSE_QUERYRESPONSE_SCOREDRESULT = _descriptor.Descriptor( @@ -862,8 +883,8 @@ name='body', full_name='gnes.Response.QueryResponse.ScoredResult.body', index=0, containing_type=None, fields=[]), ], - serialized_start=2095, - serialized_end=2218, + serialized_start=2214, + serialized_end=2337, ) _RESPONSE_QUERYRESPONSE = _descriptor.Descriptor( @@ -914,8 +935,8 @@ extension_ranges=[], oneofs=[ ], - serialized_start=1900, - serialized_end=2285, + serialized_start=2019, + serialized_end=2404, ) _RESPONSE = _descriptor.Descriptor( @@ -976,8 +997,8 @@ name='body', full_name='gnes.Response.body', index=0, containing_type=None, fields=[]), ], - serialized_start=1504, - serialized_end=2340, + serialized_start=1623, + serialized_end=2459, ) _CHUNK_COORDINATE.containing_type = _CHUNK @@ -994,6 +1015,8 @@ _DOCUMENT.fields_by_name['doc_type'].enum_type = _DOCUMENT_DOCTYPE _DOCUMENT.fields_by_name['raw_image'].message_type = _NDARRAY _DOCUMENT.fields_by_name['raw_video'].message_type = _NDARRAY +_DOCUMENT.fields_by_name['chunks_additional'].message_type = _CHUNK +_DOCUMENT.fields_by_name['chunk_embeddings_additional'].message_type = _NDARRAY _DOCUMENT_DOCTYPE.containing_type = _DOCUMENT _DOCUMENT.oneofs_by_name['raw_data'].fields.append( _DOCUMENT.fields_by_name['raw_text']) @@ -1090,136 +1113,136 @@ DESCRIPTOR.message_types_by_name['Response'] = _RESPONSE _sym_db.RegisterFileDescriptor(DESCRIPTOR) -NdArray = _reflection.GeneratedProtocolMessageType('NdArray', (_message.Message,), dict( - DESCRIPTOR = _NDARRAY, - __module__ = 'gnes_pb2' +NdArray = _reflection.GeneratedProtocolMessageType('NdArray', (_message.Message,), { + 'DESCRIPTOR' : _NDARRAY, + '__module__' : 'gnes_pb2' # @@protoc_insertion_point(class_scope:gnes.NdArray) - )) + }) _sym_db.RegisterMessage(NdArray) -Chunk = _reflection.GeneratedProtocolMessageType('Chunk', (_message.Message,), dict( +Chunk = _reflection.GeneratedProtocolMessageType('Chunk', (_message.Message,), { - Coordinate = _reflection.GeneratedProtocolMessageType('Coordinate', (_message.Message,), dict( - DESCRIPTOR = _CHUNK_COORDINATE, - __module__ = 'gnes_pb2' + 'Coordinate' : _reflection.GeneratedProtocolMessageType('Coordinate', (_message.Message,), { + 'DESCRIPTOR' : _CHUNK_COORDINATE, + '__module__' : 'gnes_pb2' # @@protoc_insertion_point(class_scope:gnes.Chunk.Coordinate) - )) + }) , - DESCRIPTOR = _CHUNK, - __module__ = 'gnes_pb2' + 'DESCRIPTOR' : _CHUNK, + '__module__' : 'gnes_pb2' # @@protoc_insertion_point(class_scope:gnes.Chunk) - )) + }) _sym_db.RegisterMessage(Chunk) _sym_db.RegisterMessage(Chunk.Coordinate) -Document = _reflection.GeneratedProtocolMessageType('Document', (_message.Message,), dict( - DESCRIPTOR = _DOCUMENT, - __module__ = 'gnes_pb2' +Document = _reflection.GeneratedProtocolMessageType('Document', (_message.Message,), { + 'DESCRIPTOR' : _DOCUMENT, + '__module__' : 'gnes_pb2' # @@protoc_insertion_point(class_scope:gnes.Document) - )) + }) _sym_db.RegisterMessage(Document) -Envelope = _reflection.GeneratedProtocolMessageType('Envelope', (_message.Message,), dict( +Envelope = _reflection.GeneratedProtocolMessageType('Envelope', (_message.Message,), { - route = _reflection.GeneratedProtocolMessageType('route', (_message.Message,), dict( - DESCRIPTOR = _ENVELOPE_ROUTE, - __module__ = 'gnes_pb2' + 'route' : _reflection.GeneratedProtocolMessageType('route', (_message.Message,), { + 'DESCRIPTOR' : _ENVELOPE_ROUTE, + '__module__' : 'gnes_pb2' # @@protoc_insertion_point(class_scope:gnes.Envelope.route) - )) + }) , - DESCRIPTOR = _ENVELOPE, - __module__ = 'gnes_pb2' + 'DESCRIPTOR' : _ENVELOPE, + '__module__' : 'gnes_pb2' # @@protoc_insertion_point(class_scope:gnes.Envelope) - )) + }) _sym_db.RegisterMessage(Envelope) _sym_db.RegisterMessage(Envelope.route) -Message = _reflection.GeneratedProtocolMessageType('Message', (_message.Message,), dict( - DESCRIPTOR = _MESSAGE, - __module__ = 'gnes_pb2' +Message = _reflection.GeneratedProtocolMessageType('Message', (_message.Message,), { + 'DESCRIPTOR' : _MESSAGE, + '__module__' : 'gnes_pb2' # @@protoc_insertion_point(class_scope:gnes.Message) - )) + }) _sym_db.RegisterMessage(Message) -Request = _reflection.GeneratedProtocolMessageType('Request', (_message.Message,), dict( +Request = _reflection.GeneratedProtocolMessageType('Request', (_message.Message,), { - TrainRequest = _reflection.GeneratedProtocolMessageType('TrainRequest', (_message.Message,), dict( - DESCRIPTOR = _REQUEST_TRAINREQUEST, - __module__ = 'gnes_pb2' + 'TrainRequest' : _reflection.GeneratedProtocolMessageType('TrainRequest', (_message.Message,), { + 'DESCRIPTOR' : _REQUEST_TRAINREQUEST, + '__module__' : 'gnes_pb2' # @@protoc_insertion_point(class_scope:gnes.Request.TrainRequest) - )) + }) , - IndexRequest = _reflection.GeneratedProtocolMessageType('IndexRequest', (_message.Message,), dict( - DESCRIPTOR = _REQUEST_INDEXREQUEST, - __module__ = 'gnes_pb2' + 'IndexRequest' : _reflection.GeneratedProtocolMessageType('IndexRequest', (_message.Message,), { + 'DESCRIPTOR' : _REQUEST_INDEXREQUEST, + '__module__' : 'gnes_pb2' # @@protoc_insertion_point(class_scope:gnes.Request.IndexRequest) - )) + }) , - QueryRequest = _reflection.GeneratedProtocolMessageType('QueryRequest', (_message.Message,), dict( - DESCRIPTOR = _REQUEST_QUERYREQUEST, - __module__ = 'gnes_pb2' + 'QueryRequest' : _reflection.GeneratedProtocolMessageType('QueryRequest', (_message.Message,), { + 'DESCRIPTOR' : _REQUEST_QUERYREQUEST, + '__module__' : 'gnes_pb2' # @@protoc_insertion_point(class_scope:gnes.Request.QueryRequest) - )) + }) , - ControlRequest = _reflection.GeneratedProtocolMessageType('ControlRequest', (_message.Message,), dict( - DESCRIPTOR = _REQUEST_CONTROLREQUEST, - __module__ = 'gnes_pb2' + 'ControlRequest' : _reflection.GeneratedProtocolMessageType('ControlRequest', (_message.Message,), { + 'DESCRIPTOR' : _REQUEST_CONTROLREQUEST, + '__module__' : 'gnes_pb2' # @@protoc_insertion_point(class_scope:gnes.Request.ControlRequest) - )) + }) , - DESCRIPTOR = _REQUEST, - __module__ = 'gnes_pb2' + 'DESCRIPTOR' : _REQUEST, + '__module__' : 'gnes_pb2' # @@protoc_insertion_point(class_scope:gnes.Request) - )) + }) _sym_db.RegisterMessage(Request) _sym_db.RegisterMessage(Request.TrainRequest) _sym_db.RegisterMessage(Request.IndexRequest) _sym_db.RegisterMessage(Request.QueryRequest) _sym_db.RegisterMessage(Request.ControlRequest) -Response = _reflection.GeneratedProtocolMessageType('Response', (_message.Message,), dict( +Response = _reflection.GeneratedProtocolMessageType('Response', (_message.Message,), { - TrainResponse = _reflection.GeneratedProtocolMessageType('TrainResponse', (_message.Message,), dict( - DESCRIPTOR = _RESPONSE_TRAINRESPONSE, - __module__ = 'gnes_pb2' + 'TrainResponse' : _reflection.GeneratedProtocolMessageType('TrainResponse', (_message.Message,), { + 'DESCRIPTOR' : _RESPONSE_TRAINRESPONSE, + '__module__' : 'gnes_pb2' # @@protoc_insertion_point(class_scope:gnes.Response.TrainResponse) - )) + }) , - IndexResponse = _reflection.GeneratedProtocolMessageType('IndexResponse', (_message.Message,), dict( - DESCRIPTOR = _RESPONSE_INDEXRESPONSE, - __module__ = 'gnes_pb2' + 'IndexResponse' : _reflection.GeneratedProtocolMessageType('IndexResponse', (_message.Message,), { + 'DESCRIPTOR' : _RESPONSE_INDEXRESPONSE, + '__module__' : 'gnes_pb2' # @@protoc_insertion_point(class_scope:gnes.Response.IndexResponse) - )) + }) , - ControlResponse = _reflection.GeneratedProtocolMessageType('ControlResponse', (_message.Message,), dict( - DESCRIPTOR = _RESPONSE_CONTROLRESPONSE, - __module__ = 'gnes_pb2' + 'ControlResponse' : _reflection.GeneratedProtocolMessageType('ControlResponse', (_message.Message,), { + 'DESCRIPTOR' : _RESPONSE_CONTROLRESPONSE, + '__module__' : 'gnes_pb2' # @@protoc_insertion_point(class_scope:gnes.Response.ControlResponse) - )) + }) , - QueryResponse = _reflection.GeneratedProtocolMessageType('QueryResponse', (_message.Message,), dict( + 'QueryResponse' : _reflection.GeneratedProtocolMessageType('QueryResponse', (_message.Message,), { - ScoredResult = _reflection.GeneratedProtocolMessageType('ScoredResult', (_message.Message,), dict( - DESCRIPTOR = _RESPONSE_QUERYRESPONSE_SCOREDRESULT, - __module__ = 'gnes_pb2' + 'ScoredResult' : _reflection.GeneratedProtocolMessageType('ScoredResult', (_message.Message,), { + 'DESCRIPTOR' : _RESPONSE_QUERYRESPONSE_SCOREDRESULT, + '__module__' : 'gnes_pb2' # @@protoc_insertion_point(class_scope:gnes.Response.QueryResponse.ScoredResult) - )) + }) , - DESCRIPTOR = _RESPONSE_QUERYRESPONSE, - __module__ = 'gnes_pb2' + 'DESCRIPTOR' : _RESPONSE_QUERYRESPONSE, + '__module__' : 'gnes_pb2' # @@protoc_insertion_point(class_scope:gnes.Response.QueryResponse) - )) + }) , - DESCRIPTOR = _RESPONSE, - __module__ = 'gnes_pb2' + 'DESCRIPTOR' : _RESPONSE, + '__module__' : 'gnes_pb2' # @@protoc_insertion_point(class_scope:gnes.Response) - )) + }) _sym_db.RegisterMessage(Response) _sym_db.RegisterMessage(Response.TrainResponse) _sym_db.RegisterMessage(Response.IndexResponse) @@ -1237,8 +1260,8 @@ file=DESCRIPTOR, index=0, serialized_options=None, - serialized_start=2343, - serialized_end=2570, + serialized_start=2462, + serialized_end=2689, methods=[ _descriptor.MethodDescriptor( name='Train',