From f5d86faa870094694162093f60fe9ee397a4c3c6 Mon Sep 17 00:00:00 2001 From: kaideng Date: Fri, 12 Aug 2022 13:26:14 +0800 Subject: [PATCH 1/4] fix security bug --- BUILD_INFO | 2 +- jvm/core/pom.xml | 2 +- jvm/pom.xml | 9 +++++---- jvm/roll_frame/pom.xml | 2 +- jvm/roll_site/pom.xml | 4 ++-- jvm/roll_site_2/pom.xml | 3 ++- python/eggroll/__init__.py | 2 +- 7 files changed, 13 insertions(+), 11 deletions(-) diff --git a/BUILD_INFO b/BUILD_INFO index cb2d290aa..f5dad2901 100644 --- a/BUILD_INFO +++ b/BUILD_INFO @@ -1 +1 @@ -eggroll.version=2.4.4 +eggroll.version=2.4.5 diff --git a/jvm/core/pom.xml b/jvm/core/pom.xml index 4d0458fea..21de3cf3a 100644 --- a/jvm/core/pom.xml +++ b/jvm/core/pom.xml @@ -34,7 +34,7 @@ 1.4 2.7.0 1.3.7 - 8.0.27 + 8.0.28 ${project.basedir}/main 5.0.0 diff --git a/jvm/pom.xml b/jvm/pom.xml index f59be36f5..dddb8253b 100644 --- a/jvm/pom.xml +++ b/jvm/pom.xml @@ -201,7 +201,7 @@ 4.0.0 - 2.4.4 + 2.4.5 512m @@ -219,17 +219,18 @@ 2.11.0 3.8.1 30.1.1-jre - 1.27.2 + 1.31.2 1.3.2 4.13.2 5.5.1 1.5.1 2.17.1 4.1.63.Final - 3.16.1 + + 3.21.5 6.8.1 3.0.8 - 2.4.3 + 2.4.8 3.0.0 diff --git a/jvm/roll_frame/pom.xml b/jvm/roll_frame/pom.xml index 5f75635f4..61308531e 100644 --- a/jvm/roll_frame/pom.xml +++ b/jvm/roll_frame/pom.xml @@ -32,7 +32,7 @@ Eggroll RollFrame - 2.13.2 + 2.13.3 3.9.1 diff --git a/jvm/roll_site/pom.xml b/jvm/roll_site/pom.xml index 698ff3bd6..4da4c6c23 100644 --- a/jvm/roll_site/pom.xml +++ b/jvm/roll_site/pom.xml @@ -33,7 +33,7 @@ - 5.3.18 + 5.3.20 @@ -149,4 +149,4 @@ - \ No newline at end of file + diff --git a/jvm/roll_site_2/pom.xml b/jvm/roll_site_2/pom.xml index 83b008343..5adb17fbd 100644 --- a/jvm/roll_site_2/pom.xml +++ b/jvm/roll_site_2/pom.xml @@ -46,7 +46,8 @@ org.json json - 20160810 + + 20220320 diff --git a/python/eggroll/__init__.py b/python/eggroll/__init__.py index fc4ae84e4..cc5e1f968 100644 --- a/python/eggroll/__init__.py +++ b/python/eggroll/__init__.py @@ -14,4 +14,4 @@ # limitations under the License. # -__version__ = "2.4.4" \ No newline at end of file +__version__ = "2.4.5" \ No newline at end of file From 96d5f337c6d1391ba537bb7d3aea40d3a641a995 Mon Sep 17 00:00:00 2001 From: kaideng Date: Tue, 16 Aug 2022 15:47:42 +0800 Subject: [PATCH 2/4] fix security --- jvm/roll_site/pom.xml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/jvm/roll_site/pom.xml b/jvm/roll_site/pom.xml index 4da4c6c23..f41381a25 100644 --- a/jvm/roll_site/pom.xml +++ b/jvm/roll_site/pom.xml @@ -101,6 +101,14 @@ ${spring.version} + + commons-codec + commons-codec + 1.15 + + + + org.apache.commons @@ -111,7 +119,7 @@ org.json json - 20160810 + 20220320 From 4d3b1ca6bba1c66198ec24ba31cc9f8bce6f1677 Mon Sep 17 00:00:00 2001 From: kaideng Date: Tue, 16 Aug 2022 17:37:59 +0800 Subject: [PATCH 3/4] fix security --- jvm/core/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jvm/core/pom.xml b/jvm/core/pom.xml index 21de3cf3a..e36abd92b 100644 --- a/jvm/core/pom.xml +++ b/jvm/core/pom.xml @@ -32,7 +32,7 @@ 1.4 - 2.7.0 + 2.9.0 1.3.7 8.0.28 ${project.basedir}/main From 60bfb292f7abdc1ca1a4b1dcb1822c5867276bfb Mon Sep 17 00:00:00 2001 From: mgqa34 Date: Tue, 16 Aug 2022 22:24:37 +0800 Subject: [PATCH 4/4] update pb generated by grpcio_tools 1.46.3 & requirements of eggroll Signed-off-by: mgqa34 --- python/eggroll/core/proto/basic_meta_pb2.py | 573 +------- python/eggroll/core/proto/command_pb2.py | 195 +-- python/eggroll/core/proto/command_pb2_grpc.py | 80 +- python/eggroll/core/proto/meta_pb2.py | 1184 ++--------------- python/eggroll/core/proto/meta_pb2_grpc.py | 1 + python/eggroll/core/proto/proxy_pb2.py | 665 +-------- python/eggroll/core/proto/proxy_pb2_grpc.py | 314 +++-- python/eggroll/core/proto/transfer_pb2.py | 360 +---- .../eggroll/core/proto/transfer_pb2_grpc.py | 185 ++- .../eggroll/roll_site/proto/basic_meta_pb2.py | 671 ++-------- python/eggroll/roll_site/proto/proxy_pb2.py | 658 ++------- .../eggroll/roll_site/proto/proxy_pb2_grpc.py | 264 ++-- requirements.txt | 18 +- 13 files changed, 932 insertions(+), 4236 deletions(-) diff --git a/python/eggroll/core/proto/basic_meta_pb2.py b/python/eggroll/core/proto/basic_meta_pb2.py index 6e4a07fbd..6c2d589cf 100644 --- a/python/eggroll/core/proto/basic_meta_pb2.py +++ b/python/eggroll/core/proto/basic_meta_pb2.py @@ -1,8 +1,9 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: basic-meta.proto - +"""Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database @@ -13,535 +14,22 @@ -DESCRIPTOR = _descriptor.FileDescriptor( - name='basic-meta.proto', - package='com.webank.ai.eggroll.api.core', - syntax='proto3', - serialized_options=None, - serialized_pb=b'\n\x10\x62\x61sic-meta.proto\x12\x1e\x63om.webank.ai.eggroll.api.core\"6\n\x08\x45ndpoint\x12\n\n\x02ip\x18\x01 \x01(\t\x12\x0c\n\x04port\x18\x02 \x01(\x05\x12\x10\n\x08hostname\x18\x03 \x01(\t\"H\n\tEndpoints\x12;\n\tendpoints\x18\x01 \x03(\x0b\x32(.com.webank.ai.eggroll.api.core.Endpoint\"H\n\x04\x44\x61ta\x12\x0e\n\x06isNull\x18\x01 \x01(\x08\x12\x14\n\x0chostLanguage\x18\x02 \x01(\t\x12\x0c\n\x04type\x18\x03 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x04 \x01(\x0c\"F\n\x0cRepeatedData\x12\x36\n\x08\x64\x61talist\x18\x01 \x03(\x0b\x32$.com.webank.ai.eggroll.api.core.Data\"u\n\x0b\x43\x61llRequest\x12\x0f\n\x07isAsync\x18\x01 \x01(\x08\x12\x0f\n\x07timeout\x18\x02 \x01(\x03\x12\x0f\n\x07\x63ommand\x18\x03 \x01(\t\x12\x33\n\x05param\x18\x04 \x01(\x0b\x32$.com.webank.ai.eggroll.api.core.Data\"\x88\x01\n\x0c\x43\x61llResponse\x12\x42\n\x0creturnStatus\x18\x01 \x01(\x0b\x32,.com.webank.ai.eggroll.api.core.ReturnStatus\x12\x34\n\x06result\x18\x02 \x01(\x0b\x32$.com.webank.ai.eggroll.api.core.Data\"\"\n\x03Job\x12\r\n\x05jobId\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\"Y\n\x04Task\x12\x30\n\x03job\x18\x01 \x01(\x0b\x32#.com.webank.ai.eggroll.api.core.Job\x12\x0e\n\x06taskId\x18\x02 \x01(\x03\x12\x0f\n\x07tableId\x18\x03 \x01(\x03\"N\n\x06Result\x12\x32\n\x04task\x18\x01 \x01(\x0b\x32$.com.webank.ai.eggroll.api.core.Task\x12\x10\n\x08resultId\x18\x02 \x01(\x03\"-\n\x0cReturnStatus\x12\x0c\n\x04\x63ode\x18\x01 \x01(\x05\x12\x0f\n\x07message\x18\x02 \x01(\t\"\xe2\x01\n\x0bSessionInfo\x12\x11\n\tsessionId\x18\x01 \x01(\t\x12\x61\n\x13\x63omputingEngineConf\x18\x02 \x03(\x0b\x32\x44.com.webank.ai.eggroll.api.core.SessionInfo.ComputingEngineConfEntry\x12\x14\n\x0cnamingPolicy\x18\x03 \x01(\t\x12\x0b\n\x03tag\x18\x04 \x01(\t\x1a:\n\x18\x43omputingEngineConfEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x62\x06proto3' -) - - - - -_ENDPOINT = _descriptor.Descriptor( - name='Endpoint', - full_name='com.webank.ai.eggroll.api.core.Endpoint', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='ip', full_name='com.webank.ai.eggroll.api.core.Endpoint.ip', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='port', full_name='com.webank.ai.eggroll.api.core.Endpoint.port', index=1, - number=2, 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='hostname', full_name='com.webank.ai.eggroll.api.core.Endpoint.hostname', index=2, - number=3, 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, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=52, - serialized_end=106, -) - - -_ENDPOINTS = _descriptor.Descriptor( - name='Endpoints', - full_name='com.webank.ai.eggroll.api.core.Endpoints', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='endpoints', full_name='com.webank.ai.eggroll.api.core.Endpoints.endpoints', index=0, - number=1, 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=108, - serialized_end=180, -) - - -_DATA = _descriptor.Descriptor( - name='Data', - full_name='com.webank.ai.eggroll.api.core.Data', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='isNull', full_name='com.webank.ai.eggroll.api.core.Data.isNull', index=0, - number=1, 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='hostLanguage', full_name='com.webank.ai.eggroll.api.core.Data.hostLanguage', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='type', full_name='com.webank.ai.eggroll.api.core.Data.type', index=2, - number=3, 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='data', full_name='com.webank.ai.eggroll.api.core.Data.data', index=3, - 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, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=182, - serialized_end=254, -) - - -_REPEATEDDATA = _descriptor.Descriptor( - name='RepeatedData', - full_name='com.webank.ai.eggroll.api.core.RepeatedData', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='datalist', full_name='com.webank.ai.eggroll.api.core.RepeatedData.datalist', index=0, - number=1, 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=256, - serialized_end=326, -) - - -_CALLREQUEST = _descriptor.Descriptor( - name='CallRequest', - full_name='com.webank.ai.eggroll.api.core.CallRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='isAsync', full_name='com.webank.ai.eggroll.api.core.CallRequest.isAsync', index=0, - number=1, 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='timeout', full_name='com.webank.ai.eggroll.api.core.CallRequest.timeout', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='command', full_name='com.webank.ai.eggroll.api.core.CallRequest.command', index=2, - number=3, 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='param', full_name='com.webank.ai.eggroll.api.core.CallRequest.param', index=3, - number=4, 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=328, - serialized_end=445, -) +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x10\x62\x61sic-meta.proto\x12\x1e\x63om.webank.ai.eggroll.api.core\"6\n\x08\x45ndpoint\x12\n\n\x02ip\x18\x01 \x01(\t\x12\x0c\n\x04port\x18\x02 \x01(\x05\x12\x10\n\x08hostname\x18\x03 \x01(\t\"H\n\tEndpoints\x12;\n\tendpoints\x18\x01 \x03(\x0b\x32(.com.webank.ai.eggroll.api.core.Endpoint\"H\n\x04\x44\x61ta\x12\x0e\n\x06isNull\x18\x01 \x01(\x08\x12\x14\n\x0chostLanguage\x18\x02 \x01(\t\x12\x0c\n\x04type\x18\x03 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x04 \x01(\x0c\"F\n\x0cRepeatedData\x12\x36\n\x08\x64\x61talist\x18\x01 \x03(\x0b\x32$.com.webank.ai.eggroll.api.core.Data\"u\n\x0b\x43\x61llRequest\x12\x0f\n\x07isAsync\x18\x01 \x01(\x08\x12\x0f\n\x07timeout\x18\x02 \x01(\x03\x12\x0f\n\x07\x63ommand\x18\x03 \x01(\t\x12\x33\n\x05param\x18\x04 \x01(\x0b\x32$.com.webank.ai.eggroll.api.core.Data\"\x88\x01\n\x0c\x43\x61llResponse\x12\x42\n\x0creturnStatus\x18\x01 \x01(\x0b\x32,.com.webank.ai.eggroll.api.core.ReturnStatus\x12\x34\n\x06result\x18\x02 \x01(\x0b\x32$.com.webank.ai.eggroll.api.core.Data\"\"\n\x03Job\x12\r\n\x05jobId\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\"Y\n\x04Task\x12\x30\n\x03job\x18\x01 \x01(\x0b\x32#.com.webank.ai.eggroll.api.core.Job\x12\x0e\n\x06taskId\x18\x02 \x01(\x03\x12\x0f\n\x07tableId\x18\x03 \x01(\x03\"N\n\x06Result\x12\x32\n\x04task\x18\x01 \x01(\x0b\x32$.com.webank.ai.eggroll.api.core.Task\x12\x10\n\x08resultId\x18\x02 \x01(\x03\"-\n\x0cReturnStatus\x12\x0c\n\x04\x63ode\x18\x01 \x01(\x05\x12\x0f\n\x07message\x18\x02 \x01(\t\"\xe2\x01\n\x0bSessionInfo\x12\x11\n\tsessionId\x18\x01 \x01(\t\x12\x61\n\x13\x63omputingEngineConf\x18\x02 \x03(\x0b\x32\x44.com.webank.ai.eggroll.api.core.SessionInfo.ComputingEngineConfEntry\x12\x14\n\x0cnamingPolicy\x18\x03 \x01(\t\x12\x0b\n\x03tag\x18\x04 \x01(\t\x1a:\n\x18\x43omputingEngineConfEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x62\x06proto3') -_CALLRESPONSE = _descriptor.Descriptor( - name='CallResponse', - full_name='com.webank.ai.eggroll.api.core.CallResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='returnStatus', full_name='com.webank.ai.eggroll.api.core.CallResponse.returnStatus', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='result', full_name='com.webank.ai.eggroll.api.core.CallResponse.result', index=1, - number=2, 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=448, - serialized_end=584, -) - - -_JOB = _descriptor.Descriptor( - name='Job', - full_name='com.webank.ai.eggroll.api.core.Job', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='jobId', full_name='com.webank.ai.eggroll.api.core.Job.jobId', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='name', full_name='com.webank.ai.eggroll.api.core.Job.name', 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, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=586, - serialized_end=620, -) - - -_TASK = _descriptor.Descriptor( - name='Task', - full_name='com.webank.ai.eggroll.api.core.Task', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='job', full_name='com.webank.ai.eggroll.api.core.Task.job', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='taskId', full_name='com.webank.ai.eggroll.api.core.Task.taskId', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='tableId', full_name='com.webank.ai.eggroll.api.core.Task.tableId', index=2, - number=3, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=622, - serialized_end=711, -) - - -_RESULT = _descriptor.Descriptor( - name='Result', - full_name='com.webank.ai.eggroll.api.core.Result', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='task', full_name='com.webank.ai.eggroll.api.core.Result.task', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='resultId', full_name='com.webank.ai.eggroll.api.core.Result.resultId', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=713, - serialized_end=791, -) - - -_RETURNSTATUS = _descriptor.Descriptor( - name='ReturnStatus', - full_name='com.webank.ai.eggroll.api.core.ReturnStatus', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='code', full_name='com.webank.ai.eggroll.api.core.ReturnStatus.code', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='message', full_name='com.webank.ai.eggroll.api.core.ReturnStatus.message', 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, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=793, - serialized_end=838, -) - - -_SESSIONINFO_COMPUTINGENGINECONFENTRY = _descriptor.Descriptor( - name='ComputingEngineConfEntry', - full_name='com.webank.ai.eggroll.api.core.SessionInfo.ComputingEngineConfEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='com.webank.ai.eggroll.api.core.SessionInfo.ComputingEngineConfEntry.key', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='com.webank.ai.eggroll.api.core.SessionInfo.ComputingEngineConfEntry.value', 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, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=b'8\001', - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1009, - serialized_end=1067, -) - -_SESSIONINFO = _descriptor.Descriptor( - name='SessionInfo', - full_name='com.webank.ai.eggroll.api.core.SessionInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='sessionId', full_name='com.webank.ai.eggroll.api.core.SessionInfo.sessionId', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='computingEngineConf', full_name='com.webank.ai.eggroll.api.core.SessionInfo.computingEngineConf', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='namingPolicy', full_name='com.webank.ai.eggroll.api.core.SessionInfo.namingPolicy', index=2, - number=3, 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='tag', full_name='com.webank.ai.eggroll.api.core.SessionInfo.tag', index=3, - number=4, 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, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_SESSIONINFO_COMPUTINGENGINECONFENTRY, ], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=841, - serialized_end=1067, -) - -_ENDPOINTS.fields_by_name['endpoints'].message_type = _ENDPOINT -_REPEATEDDATA.fields_by_name['datalist'].message_type = _DATA -_CALLREQUEST.fields_by_name['param'].message_type = _DATA -_CALLRESPONSE.fields_by_name['returnStatus'].message_type = _RETURNSTATUS -_CALLRESPONSE.fields_by_name['result'].message_type = _DATA -_TASK.fields_by_name['job'].message_type = _JOB -_RESULT.fields_by_name['task'].message_type = _TASK -_SESSIONINFO_COMPUTINGENGINECONFENTRY.containing_type = _SESSIONINFO -_SESSIONINFO.fields_by_name['computingEngineConf'].message_type = _SESSIONINFO_COMPUTINGENGINECONFENTRY -DESCRIPTOR.message_types_by_name['Endpoint'] = _ENDPOINT -DESCRIPTOR.message_types_by_name['Endpoints'] = _ENDPOINTS -DESCRIPTOR.message_types_by_name['Data'] = _DATA -DESCRIPTOR.message_types_by_name['RepeatedData'] = _REPEATEDDATA -DESCRIPTOR.message_types_by_name['CallRequest'] = _CALLREQUEST -DESCRIPTOR.message_types_by_name['CallResponse'] = _CALLRESPONSE -DESCRIPTOR.message_types_by_name['Job'] = _JOB -DESCRIPTOR.message_types_by_name['Task'] = _TASK -DESCRIPTOR.message_types_by_name['Result'] = _RESULT -DESCRIPTOR.message_types_by_name['ReturnStatus'] = _RETURNSTATUS -DESCRIPTOR.message_types_by_name['SessionInfo'] = _SESSIONINFO -_sym_db.RegisterFileDescriptor(DESCRIPTOR) +_ENDPOINT = DESCRIPTOR.message_types_by_name['Endpoint'] +_ENDPOINTS = DESCRIPTOR.message_types_by_name['Endpoints'] +_DATA = DESCRIPTOR.message_types_by_name['Data'] +_REPEATEDDATA = DESCRIPTOR.message_types_by_name['RepeatedData'] +_CALLREQUEST = DESCRIPTOR.message_types_by_name['CallRequest'] +_CALLRESPONSE = DESCRIPTOR.message_types_by_name['CallResponse'] +_JOB = DESCRIPTOR.message_types_by_name['Job'] +_TASK = DESCRIPTOR.message_types_by_name['Task'] +_RESULT = DESCRIPTOR.message_types_by_name['Result'] +_RETURNSTATUS = DESCRIPTOR.message_types_by_name['ReturnStatus'] +_SESSIONINFO = DESCRIPTOR.message_types_by_name['SessionInfo'] +_SESSIONINFO_COMPUTINGENGINECONFENTRY = _SESSIONINFO.nested_types_by_name['ComputingEngineConfEntry'] Endpoint = _reflection.GeneratedProtocolMessageType('Endpoint', (_message.Message,), { 'DESCRIPTOR' : _ENDPOINT, '__module__' : 'basic_meta_pb2' @@ -627,6 +115,33 @@ _sym_db.RegisterMessage(SessionInfo) _sym_db.RegisterMessage(SessionInfo.ComputingEngineConfEntry) - -_SESSIONINFO_COMPUTINGENGINECONFENTRY._options = None +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + _SESSIONINFO_COMPUTINGENGINECONFENTRY._options = None + _SESSIONINFO_COMPUTINGENGINECONFENTRY._serialized_options = b'8\001' + _ENDPOINT._serialized_start=52 + _ENDPOINT._serialized_end=106 + _ENDPOINTS._serialized_start=108 + _ENDPOINTS._serialized_end=180 + _DATA._serialized_start=182 + _DATA._serialized_end=254 + _REPEATEDDATA._serialized_start=256 + _REPEATEDDATA._serialized_end=326 + _CALLREQUEST._serialized_start=328 + _CALLREQUEST._serialized_end=445 + _CALLRESPONSE._serialized_start=448 + _CALLRESPONSE._serialized_end=584 + _JOB._serialized_start=586 + _JOB._serialized_end=620 + _TASK._serialized_start=622 + _TASK._serialized_end=711 + _RESULT._serialized_start=713 + _RESULT._serialized_end=791 + _RETURNSTATUS._serialized_start=793 + _RETURNSTATUS._serialized_end=838 + _SESSIONINFO._serialized_start=841 + _SESSIONINFO._serialized_end=1067 + _SESSIONINFO_COMPUTINGENGINECONFENTRY._serialized_start=1009 + _SESSIONINFO_COMPUTINGENGINECONFENTRY._serialized_end=1067 # @@protoc_insertion_point(module_scope) diff --git a/python/eggroll/core/proto/command_pb2.py b/python/eggroll/core/proto/command_pb2.py index 97cb5810f..5c023f9d1 100644 --- a/python/eggroll/core/proto/command_pb2.py +++ b/python/eggroll/core/proto/command_pb2.py @@ -1,8 +1,9 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: command.proto - +"""Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database @@ -13,157 +14,13 @@ -DESCRIPTOR = _descriptor.FileDescriptor( - name='command.proto', - package='com.webank.eggroll.core.command', - syntax='proto3', - serialized_options=None, - serialized_pb=b'\n\rcommand.proto\x12\x1f\x63om.webank.eggroll.core.command\"\xb3\x01\n\x0e\x43ommandRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0b\n\x03uri\x18\x02 \x01(\t\x12\x0c\n\x04\x61rgs\x18\x03 \x03(\x0c\x12K\n\x06kwargs\x18\x04 \x03(\x0b\x32;.com.webank.eggroll.core.command.CommandRequest.KwargsEntry\x1a-\n\x0bKwargsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c:\x02\x38\x01\"p\n\x0f\x43ommandResponse\x12\n\n\x02id\x18\x01 \x01(\t\x12@\n\x07request\x18\x02 \x01(\x0b\x32/.com.webank.eggroll.core.command.CommandRequest\x12\x0f\n\x07results\x18\x03 \x03(\x0c\x32{\n\x0e\x43ommandService\x12i\n\x04\x63\x61ll\x12/.com.webank.eggroll.core.command.CommandRequest\x1a\x30.com.webank.eggroll.core.command.CommandResponseb\x06proto3' -) - - - - -_COMMANDREQUEST_KWARGSENTRY = _descriptor.Descriptor( - name='KwargsEntry', - full_name='com.webank.eggroll.core.command.CommandRequest.KwargsEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='com.webank.eggroll.core.command.CommandRequest.KwargsEntry.key', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='com.webank.eggroll.core.command.CommandRequest.KwargsEntry.value', 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, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=b'8\001', - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=185, - serialized_end=230, -) - -_COMMANDREQUEST = _descriptor.Descriptor( - name='CommandRequest', - full_name='com.webank.eggroll.core.command.CommandRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='id', full_name='com.webank.eggroll.core.command.CommandRequest.id', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='uri', full_name='com.webank.eggroll.core.command.CommandRequest.uri', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='args', full_name='com.webank.eggroll.core.command.CommandRequest.args', index=2, - number=3, type=12, cpp_type=9, 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='kwargs', full_name='com.webank.eggroll.core.command.CommandRequest.kwargs', index=3, - number=4, 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), - ], - extensions=[ - ], - nested_types=[_COMMANDREQUEST_KWARGSENTRY, ], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=51, - serialized_end=230, -) +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\rcommand.proto\x12\x1f\x63om.webank.eggroll.core.command\"\xb3\x01\n\x0e\x43ommandRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0b\n\x03uri\x18\x02 \x01(\t\x12\x0c\n\x04\x61rgs\x18\x03 \x03(\x0c\x12K\n\x06kwargs\x18\x04 \x03(\x0b\x32;.com.webank.eggroll.core.command.CommandRequest.KwargsEntry\x1a-\n\x0bKwargsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c:\x02\x38\x01\"p\n\x0f\x43ommandResponse\x12\n\n\x02id\x18\x01 \x01(\t\x12@\n\x07request\x18\x02 \x01(\x0b\x32/.com.webank.eggroll.core.command.CommandRequest\x12\x0f\n\x07results\x18\x03 \x03(\x0c\x32{\n\x0e\x43ommandService\x12i\n\x04\x63\x61ll\x12/.com.webank.eggroll.core.command.CommandRequest\x1a\x30.com.webank.eggroll.core.command.CommandResponseb\x06proto3') -_COMMANDRESPONSE = _descriptor.Descriptor( - name='CommandResponse', - full_name='com.webank.eggroll.core.command.CommandResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='id', full_name='com.webank.eggroll.core.command.CommandResponse.id', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='request', full_name='com.webank.eggroll.core.command.CommandResponse.request', index=1, - number=2, 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='results', full_name='com.webank.eggroll.core.command.CommandResponse.results', index=2, - number=3, type=12, cpp_type=9, 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=232, - serialized_end=344, -) - -_COMMANDREQUEST_KWARGSENTRY.containing_type = _COMMANDREQUEST -_COMMANDREQUEST.fields_by_name['kwargs'].message_type = _COMMANDREQUEST_KWARGSENTRY -_COMMANDRESPONSE.fields_by_name['request'].message_type = _COMMANDREQUEST -DESCRIPTOR.message_types_by_name['CommandRequest'] = _COMMANDREQUEST -DESCRIPTOR.message_types_by_name['CommandResponse'] = _COMMANDRESPONSE -_sym_db.RegisterFileDescriptor(DESCRIPTOR) +_COMMANDREQUEST = DESCRIPTOR.message_types_by_name['CommandRequest'] +_COMMANDREQUEST_KWARGSENTRY = _COMMANDREQUEST.nested_types_by_name['KwargsEntry'] +_COMMANDRESPONSE = DESCRIPTOR.message_types_by_name['CommandResponse'] CommandRequest = _reflection.GeneratedProtocolMessageType('CommandRequest', (_message.Message,), { 'KwargsEntry' : _reflection.GeneratedProtocolMessageType('KwargsEntry', (_message.Message,), { @@ -186,30 +43,18 @@ }) _sym_db.RegisterMessage(CommandResponse) - -_COMMANDREQUEST_KWARGSENTRY._options = None - -_COMMANDSERVICE = _descriptor.ServiceDescriptor( - name='CommandService', - full_name='com.webank.eggroll.core.command.CommandService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=346, - serialized_end=469, - methods=[ - _descriptor.MethodDescriptor( - name='call', - full_name='com.webank.eggroll.core.command.CommandService.call', - index=0, - containing_service=None, - input_type=_COMMANDREQUEST, - output_type=_COMMANDRESPONSE, - serialized_options=None, - ), -]) -_sym_db.RegisterServiceDescriptor(_COMMANDSERVICE) - -DESCRIPTOR.services_by_name['CommandService'] = _COMMANDSERVICE - +_COMMANDSERVICE = DESCRIPTOR.services_by_name['CommandService'] +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + _COMMANDREQUEST_KWARGSENTRY._options = None + _COMMANDREQUEST_KWARGSENTRY._serialized_options = b'8\001' + _COMMANDREQUEST._serialized_start=51 + _COMMANDREQUEST._serialized_end=230 + _COMMANDREQUEST_KWARGSENTRY._serialized_start=185 + _COMMANDREQUEST_KWARGSENTRY._serialized_end=230 + _COMMANDRESPONSE._serialized_start=232 + _COMMANDRESPONSE._serialized_end=344 + _COMMANDSERVICE._serialized_start=346 + _COMMANDSERVICE._serialized_end=469 # @@protoc_insertion_point(module_scope) diff --git a/python/eggroll/core/proto/command_pb2_grpc.py b/python/eggroll/core/proto/command_pb2_grpc.py index cd11c84b3..235a17175 100644 --- a/python/eggroll/core/proto/command_pb2_grpc.py +++ b/python/eggroll/core/proto/command_pb2_grpc.py @@ -1,46 +1,66 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" import grpc import command_pb2 as command__pb2 class CommandServiceStub(object): - # missing associated documentation comment in .proto file - pass + """Missing associated documentation comment in .proto file.""" - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. - Args: - channel: A grpc.Channel. - """ - self.call = channel.unary_unary( - '/com.webank.eggroll.core.command.CommandService/call', - request_serializer=command__pb2.CommandRequest.SerializeToString, - response_deserializer=command__pb2.CommandResponse.FromString, - ) + Args: + channel: A grpc.Channel. + """ + self.call = channel.unary_unary( + '/com.webank.eggroll.core.command.CommandService/call', + request_serializer=command__pb2.CommandRequest.SerializeToString, + response_deserializer=command__pb2.CommandResponse.FromString, + ) class CommandServiceServicer(object): - # missing associated documentation comment in .proto file - pass + """Missing associated documentation comment in .proto file.""" - def call(self, request, context): - # missing associated documentation comment in .proto file - pass - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + def call(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') def add_CommandServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'call': grpc.unary_unary_rpc_method_handler( - servicer.call, - request_deserializer=command__pb2.CommandRequest.FromString, - response_serializer=command__pb2.CommandResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'com.webank.eggroll.core.command.CommandService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + 'call': grpc.unary_unary_rpc_method_handler( + servicer.call, + request_deserializer=command__pb2.CommandRequest.FromString, + response_serializer=command__pb2.CommandResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'com.webank.eggroll.core.command.CommandService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class CommandService(object): + """Missing associated documentation comment in .proto file.""" + + @staticmethod + def call(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/com.webank.eggroll.core.command.CommandService/call', + command__pb2.CommandRequest.SerializeToString, + command__pb2.CommandResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/python/eggroll/core/proto/meta_pb2.py b/python/eggroll/core/proto/meta_pb2.py index cedca191d..a27fbaaee 100644 --- a/python/eggroll/core/proto/meta_pb2.py +++ b/python/eggroll/core/proto/meta_pb2.py @@ -1,8 +1,9 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: meta.proto - +"""Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database @@ -13,1107 +14,31 @@ -DESCRIPTOR = _descriptor.FileDescriptor( - name='meta.proto', - package='com.webank.eggroll.core.meta', - syntax='proto3', - serialized_options=None, - serialized_pb=b'\n\nmeta.proto\x12\x1c\x63om.webank.eggroll.core.meta\"&\n\x08\x45ndpoint\x12\x0c\n\x04host\x18\x01 \x01(\t\x12\x0c\n\x04port\x18\x02 \x01(\x05\"\x95\x01\n\nServerNode\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x11\n\tclusterId\x18\x03 \x01(\x03\x12\x38\n\x08\x65ndpoint\x18\x04 \x01(\x0b\x32&.com.webank.eggroll.core.meta.Endpoint\x12\x10\n\x08nodeType\x18\x05 \x01(\t\x12\x0e\n\x06status\x18\x06 \x01(\t\"u\n\rServerCluster\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x0c\n\x04name\x18\x02 \x01(\t\x12=\n\x0bserverNodes\x18\x03 \x03(\x0b\x32(.com.webank.eggroll.core.meta.ServerNode\x12\x0b\n\x03tag\x18\x04 \x01(\t\"\xf6\x02\n\tProcessor\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x14\n\x0cserverNodeId\x18\x02 \x01(\x03\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x15\n\rprocessorType\x18\x04 \x01(\t\x12\x0e\n\x06status\x18\x05 \x01(\t\x12?\n\x0f\x63ommandEndpoint\x18\x06 \x01(\x0b\x32&.com.webank.eggroll.core.meta.Endpoint\x12@\n\x10transferEndpoint\x18\x07 \x01(\x0b\x32&.com.webank.eggroll.core.meta.Endpoint\x12\x0b\n\x03pid\x18\t \x01(\x05\x12\x45\n\x07options\x18\x08 \x03(\x0b\x32\x34.com.webank.eggroll.core.meta.Processor.OptionsEntry\x12\x0b\n\x03tag\x18\n \x01(\t\x1a.\n\x0cOptionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"t\n\x0eProcessorBatch\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x0c\n\x04name\x18\x02 \x01(\t\x12;\n\nprocessors\x18\x03 \x03(\x0b\x32\'.com.webank.eggroll.core.meta.Processor\x12\x0b\n\x03tag\x18\x04 \x01(\t\"\xaa\x01\n\x07\x46unctor\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0e\n\x06serdes\x18\x02 \x01(\t\x12\x0c\n\x04\x62ody\x18\x03 \x01(\x0c\x12\x43\n\x07options\x18\x04 \x03(\x0b\x32\x32.com.webank.eggroll.core.meta.Functor.OptionsEntry\x1a.\n\x0cOptionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\"\n\x04Pair\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12\r\n\x05value\x18\x02 \x01(\x0c\">\n\tPairBatch\x12\x31\n\x05pairs\x18\x01 \x03(\x0b\x32\".com.webank.eggroll.core.meta.Pair\"\x9a\x01\n\x0cStoreLocator\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x11\n\tstoreType\x18\x02 \x01(\t\x12\x11\n\tnamespace\x18\x03 \x01(\t\x12\x0c\n\x04name\x18\x04 \x01(\t\x12\x0c\n\x04path\x18\x05 \x01(\t\x12\x17\n\x0ftotalPartitions\x18\x06 \x01(\x05\x12\x13\n\x0bpartitioner\x18\x07 \x01(\t\x12\x0e\n\x06serdes\x18\x08 \x01(\t\"\xf9\x01\n\x05Store\x12@\n\x0cstoreLocator\x18\x01 \x01(\x0b\x32*.com.webank.eggroll.core.meta.StoreLocator\x12;\n\npartitions\x18\x02 \x03(\x0b\x32\'.com.webank.eggroll.core.meta.Partition\x12\x41\n\x07options\x18\x03 \x03(\x0b\x32\x30.com.webank.eggroll.core.meta.Store.OptionsEntry\x1a.\n\x0cOptionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"@\n\tStoreList\x12\x33\n\x06stores\x18\x01 \x03(\x0b\x32#.com.webank.eggroll.core.meta.Store\"\xbf\x01\n\tPartition\x12\n\n\x02id\x18\x01 \x01(\x05\x12@\n\x0cstoreLocator\x18\x02 \x01(\x0b\x32*.com.webank.eggroll.core.meta.StoreLocator\x12:\n\tprocessor\x18\x03 \x01(\x0b\x32\'.com.webank.eggroll.core.meta.Processor\x12\x14\n\x0cserverNodeId\x18\x04 \x01(\x03\x12\x12\n\nrankInNode\x18\x05 \x01(\x05\"\x1b\n\x08\x43\x61llInfo\x12\x0f\n\x07\x63\x61llSeq\x18\x01 \x01(\t\"\xb4\x02\n\x03Job\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x33\n\x06inputs\x18\x03 \x03(\x0b\x32#.com.webank.eggroll.core.meta.Store\x12\x34\n\x07outputs\x18\x04 \x03(\x0b\x32#.com.webank.eggroll.core.meta.Store\x12\x37\n\x08\x66unctors\x18\x05 \x03(\x0b\x32%.com.webank.eggroll.core.meta.Functor\x12?\n\x07options\x18\x06 \x03(\x0b\x32..com.webank.eggroll.core.meta.Job.OptionsEntry\x1a.\n\x0cOptionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xc3\x01\n\x04Task\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x37\n\x06inputs\x18\x03 \x03(\x0b\x32\'.com.webank.eggroll.core.meta.Partition\x12\x38\n\x07outputs\x18\x04 \x03(\x0b\x32\'.com.webank.eggroll.core.meta.Partition\x12.\n\x03job\x18\x05 \x01(\x0b\x32!.com.webank.eggroll.core.meta.Job\"\xfa\x01\n\x0bSessionMeta\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x0e\n\x06status\x18\x03 \x01(\t\x12\x0b\n\x03tag\x18\x04 \x01(\t\x12;\n\nprocessors\x18\x05 \x03(\x0b\x32\'.com.webank.eggroll.core.meta.Processor\x12G\n\x07options\x18\x06 \x03(\x0b\x32\x36.com.webank.eggroll.core.meta.SessionMeta.OptionsEntry\x1a.\n\x0cOptionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x62\x06proto3' -) - - - - -_ENDPOINT = _descriptor.Descriptor( - name='Endpoint', - full_name='com.webank.eggroll.core.meta.Endpoint', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='host', full_name='com.webank.eggroll.core.meta.Endpoint.host', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='port', full_name='com.webank.eggroll.core.meta.Endpoint.port', index=1, - number=2, 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, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=44, - serialized_end=82, -) - - -_SERVERNODE = _descriptor.Descriptor( - name='ServerNode', - full_name='com.webank.eggroll.core.meta.ServerNode', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='id', full_name='com.webank.eggroll.core.meta.ServerNode.id', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='name', full_name='com.webank.eggroll.core.meta.ServerNode.name', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='clusterId', full_name='com.webank.eggroll.core.meta.ServerNode.clusterId', index=2, - number=3, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='endpoint', full_name='com.webank.eggroll.core.meta.ServerNode.endpoint', index=3, - number=4, 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='nodeType', full_name='com.webank.eggroll.core.meta.ServerNode.nodeType', index=4, - number=5, 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='status', full_name='com.webank.eggroll.core.meta.ServerNode.status', index=5, - number=6, 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, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=85, - serialized_end=234, -) - - -_SERVERCLUSTER = _descriptor.Descriptor( - name='ServerCluster', - full_name='com.webank.eggroll.core.meta.ServerCluster', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='id', full_name='com.webank.eggroll.core.meta.ServerCluster.id', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='name', full_name='com.webank.eggroll.core.meta.ServerCluster.name', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='serverNodes', full_name='com.webank.eggroll.core.meta.ServerCluster.serverNodes', index=2, - number=3, 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='tag', full_name='com.webank.eggroll.core.meta.ServerCluster.tag', index=3, - number=4, 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, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=236, - serialized_end=353, -) - - -_PROCESSOR_OPTIONSENTRY = _descriptor.Descriptor( - name='OptionsEntry', - full_name='com.webank.eggroll.core.meta.Processor.OptionsEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='com.webank.eggroll.core.meta.Processor.OptionsEntry.key', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='com.webank.eggroll.core.meta.Processor.OptionsEntry.value', 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, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=b'8\001', - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=684, - serialized_end=730, -) - -_PROCESSOR = _descriptor.Descriptor( - name='Processor', - full_name='com.webank.eggroll.core.meta.Processor', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='id', full_name='com.webank.eggroll.core.meta.Processor.id', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='serverNodeId', full_name='com.webank.eggroll.core.meta.Processor.serverNodeId', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='name', full_name='com.webank.eggroll.core.meta.Processor.name', index=2, - number=3, 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='processorType', full_name='com.webank.eggroll.core.meta.Processor.processorType', index=3, - number=4, 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='status', full_name='com.webank.eggroll.core.meta.Processor.status', index=4, - number=5, 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='commandEndpoint', full_name='com.webank.eggroll.core.meta.Processor.commandEndpoint', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='transferEndpoint', full_name='com.webank.eggroll.core.meta.Processor.transferEndpoint', 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, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='pid', full_name='com.webank.eggroll.core.meta.Processor.pid', index=7, - number=9, 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='options', full_name='com.webank.eggroll.core.meta.Processor.options', index=8, - number=8, 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='tag', full_name='com.webank.eggroll.core.meta.Processor.tag', index=9, - number=10, 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, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_PROCESSOR_OPTIONSENTRY, ], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=356, - serialized_end=730, -) - - -_PROCESSORBATCH = _descriptor.Descriptor( - name='ProcessorBatch', - full_name='com.webank.eggroll.core.meta.ProcessorBatch', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='id', full_name='com.webank.eggroll.core.meta.ProcessorBatch.id', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='name', full_name='com.webank.eggroll.core.meta.ProcessorBatch.name', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='processors', full_name='com.webank.eggroll.core.meta.ProcessorBatch.processors', index=2, - number=3, 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='tag', full_name='com.webank.eggroll.core.meta.ProcessorBatch.tag', index=3, - number=4, 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, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=732, - serialized_end=848, -) - - -_FUNCTOR_OPTIONSENTRY = _descriptor.Descriptor( - name='OptionsEntry', - full_name='com.webank.eggroll.core.meta.Functor.OptionsEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='com.webank.eggroll.core.meta.Functor.OptionsEntry.key', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='com.webank.eggroll.core.meta.Functor.OptionsEntry.value', 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, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=b'8\001', - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=684, - serialized_end=730, -) - -_FUNCTOR = _descriptor.Descriptor( - name='Functor', - full_name='com.webank.eggroll.core.meta.Functor', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='com.webank.eggroll.core.meta.Functor.name', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='serdes', full_name='com.webank.eggroll.core.meta.Functor.serdes', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='body', full_name='com.webank.eggroll.core.meta.Functor.body', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='options', full_name='com.webank.eggroll.core.meta.Functor.options', index=3, - number=4, 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), - ], - extensions=[ - ], - nested_types=[_FUNCTOR_OPTIONSENTRY, ], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=851, - serialized_end=1021, -) - - -_PAIR = _descriptor.Descriptor( - name='Pair', - full_name='com.webank.eggroll.core.meta.Pair', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='com.webank.eggroll.core.meta.Pair.key', index=0, - number=1, 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='com.webank.eggroll.core.meta.Pair.value', 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, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1023, - serialized_end=1057, -) - +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\nmeta.proto\x12\x1c\x63om.webank.eggroll.core.meta\"&\n\x08\x45ndpoint\x12\x0c\n\x04host\x18\x01 \x01(\t\x12\x0c\n\x04port\x18\x02 \x01(\x05\"\x95\x01\n\nServerNode\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x11\n\tclusterId\x18\x03 \x01(\x03\x12\x38\n\x08\x65ndpoint\x18\x04 \x01(\x0b\x32&.com.webank.eggroll.core.meta.Endpoint\x12\x10\n\x08nodeType\x18\x05 \x01(\t\x12\x0e\n\x06status\x18\x06 \x01(\t\"u\n\rServerCluster\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x0c\n\x04name\x18\x02 \x01(\t\x12=\n\x0bserverNodes\x18\x03 \x03(\x0b\x32(.com.webank.eggroll.core.meta.ServerNode\x12\x0b\n\x03tag\x18\x04 \x01(\t\"\xf6\x02\n\tProcessor\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x14\n\x0cserverNodeId\x18\x02 \x01(\x03\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x15\n\rprocessorType\x18\x04 \x01(\t\x12\x0e\n\x06status\x18\x05 \x01(\t\x12?\n\x0f\x63ommandEndpoint\x18\x06 \x01(\x0b\x32&.com.webank.eggroll.core.meta.Endpoint\x12@\n\x10transferEndpoint\x18\x07 \x01(\x0b\x32&.com.webank.eggroll.core.meta.Endpoint\x12\x0b\n\x03pid\x18\t \x01(\x05\x12\x45\n\x07options\x18\x08 \x03(\x0b\x32\x34.com.webank.eggroll.core.meta.Processor.OptionsEntry\x12\x0b\n\x03tag\x18\n \x01(\t\x1a.\n\x0cOptionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"t\n\x0eProcessorBatch\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x0c\n\x04name\x18\x02 \x01(\t\x12;\n\nprocessors\x18\x03 \x03(\x0b\x32\'.com.webank.eggroll.core.meta.Processor\x12\x0b\n\x03tag\x18\x04 \x01(\t\"\xaa\x01\n\x07\x46unctor\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0e\n\x06serdes\x18\x02 \x01(\t\x12\x0c\n\x04\x62ody\x18\x03 \x01(\x0c\x12\x43\n\x07options\x18\x04 \x03(\x0b\x32\x32.com.webank.eggroll.core.meta.Functor.OptionsEntry\x1a.\n\x0cOptionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\"\n\x04Pair\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12\r\n\x05value\x18\x02 \x01(\x0c\">\n\tPairBatch\x12\x31\n\x05pairs\x18\x01 \x03(\x0b\x32\".com.webank.eggroll.core.meta.Pair\"\x9a\x01\n\x0cStoreLocator\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x11\n\tstoreType\x18\x02 \x01(\t\x12\x11\n\tnamespace\x18\x03 \x01(\t\x12\x0c\n\x04name\x18\x04 \x01(\t\x12\x0c\n\x04path\x18\x05 \x01(\t\x12\x17\n\x0ftotalPartitions\x18\x06 \x01(\x05\x12\x13\n\x0bpartitioner\x18\x07 \x01(\t\x12\x0e\n\x06serdes\x18\x08 \x01(\t\"\xf9\x01\n\x05Store\x12@\n\x0cstoreLocator\x18\x01 \x01(\x0b\x32*.com.webank.eggroll.core.meta.StoreLocator\x12;\n\npartitions\x18\x02 \x03(\x0b\x32\'.com.webank.eggroll.core.meta.Partition\x12\x41\n\x07options\x18\x03 \x03(\x0b\x32\x30.com.webank.eggroll.core.meta.Store.OptionsEntry\x1a.\n\x0cOptionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"@\n\tStoreList\x12\x33\n\x06stores\x18\x01 \x03(\x0b\x32#.com.webank.eggroll.core.meta.Store\"\xbf\x01\n\tPartition\x12\n\n\x02id\x18\x01 \x01(\x05\x12@\n\x0cstoreLocator\x18\x02 \x01(\x0b\x32*.com.webank.eggroll.core.meta.StoreLocator\x12:\n\tprocessor\x18\x03 \x01(\x0b\x32\'.com.webank.eggroll.core.meta.Processor\x12\x14\n\x0cserverNodeId\x18\x04 \x01(\x03\x12\x12\n\nrankInNode\x18\x05 \x01(\x05\"\x1b\n\x08\x43\x61llInfo\x12\x0f\n\x07\x63\x61llSeq\x18\x01 \x01(\t\"\xb4\x02\n\x03Job\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x33\n\x06inputs\x18\x03 \x03(\x0b\x32#.com.webank.eggroll.core.meta.Store\x12\x34\n\x07outputs\x18\x04 \x03(\x0b\x32#.com.webank.eggroll.core.meta.Store\x12\x37\n\x08\x66unctors\x18\x05 \x03(\x0b\x32%.com.webank.eggroll.core.meta.Functor\x12?\n\x07options\x18\x06 \x03(\x0b\x32..com.webank.eggroll.core.meta.Job.OptionsEntry\x1a.\n\x0cOptionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xc3\x01\n\x04Task\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x37\n\x06inputs\x18\x03 \x03(\x0b\x32\'.com.webank.eggroll.core.meta.Partition\x12\x38\n\x07outputs\x18\x04 \x03(\x0b\x32\'.com.webank.eggroll.core.meta.Partition\x12.\n\x03job\x18\x05 \x01(\x0b\x32!.com.webank.eggroll.core.meta.Job\"\xfa\x01\n\x0bSessionMeta\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x0e\n\x06status\x18\x03 \x01(\t\x12\x0b\n\x03tag\x18\x04 \x01(\t\x12;\n\nprocessors\x18\x05 \x03(\x0b\x32\'.com.webank.eggroll.core.meta.Processor\x12G\n\x07options\x18\x06 \x03(\x0b\x32\x36.com.webank.eggroll.core.meta.SessionMeta.OptionsEntry\x1a.\n\x0cOptionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x62\x06proto3') -_PAIRBATCH = _descriptor.Descriptor( - name='PairBatch', - full_name='com.webank.eggroll.core.meta.PairBatch', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='pairs', full_name='com.webank.eggroll.core.meta.PairBatch.pairs', index=0, - number=1, 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1059, - serialized_end=1121, -) -_STORELOCATOR = _descriptor.Descriptor( - name='StoreLocator', - full_name='com.webank.eggroll.core.meta.StoreLocator', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='id', full_name='com.webank.eggroll.core.meta.StoreLocator.id', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='storeType', full_name='com.webank.eggroll.core.meta.StoreLocator.storeType', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='namespace', full_name='com.webank.eggroll.core.meta.StoreLocator.namespace', index=2, - number=3, 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='name', full_name='com.webank.eggroll.core.meta.StoreLocator.name', index=3, - number=4, 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='path', full_name='com.webank.eggroll.core.meta.StoreLocator.path', index=4, - number=5, 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='totalPartitions', full_name='com.webank.eggroll.core.meta.StoreLocator.totalPartitions', index=5, - number=6, 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='partitioner', full_name='com.webank.eggroll.core.meta.StoreLocator.partitioner', index=6, - number=7, 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='serdes', full_name='com.webank.eggroll.core.meta.StoreLocator.serdes', index=7, - number=8, 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, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1124, - serialized_end=1278, -) - - -_STORE_OPTIONSENTRY = _descriptor.Descriptor( - name='OptionsEntry', - full_name='com.webank.eggroll.core.meta.Store.OptionsEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='com.webank.eggroll.core.meta.Store.OptionsEntry.key', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='com.webank.eggroll.core.meta.Store.OptionsEntry.value', 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, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=b'8\001', - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=684, - serialized_end=730, -) - -_STORE = _descriptor.Descriptor( - name='Store', - full_name='com.webank.eggroll.core.meta.Store', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='storeLocator', full_name='com.webank.eggroll.core.meta.Store.storeLocator', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='partitions', full_name='com.webank.eggroll.core.meta.Store.partitions', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='options', full_name='com.webank.eggroll.core.meta.Store.options', index=2, - number=3, 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), - ], - extensions=[ - ], - nested_types=[_STORE_OPTIONSENTRY, ], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1281, - serialized_end=1530, -) - - -_STORELIST = _descriptor.Descriptor( - name='StoreList', - full_name='com.webank.eggroll.core.meta.StoreList', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='stores', full_name='com.webank.eggroll.core.meta.StoreList.stores', index=0, - number=1, 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1532, - serialized_end=1596, -) - - -_PARTITION = _descriptor.Descriptor( - name='Partition', - full_name='com.webank.eggroll.core.meta.Partition', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='id', full_name='com.webank.eggroll.core.meta.Partition.id', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='storeLocator', full_name='com.webank.eggroll.core.meta.Partition.storeLocator', index=1, - number=2, 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='processor', full_name='com.webank.eggroll.core.meta.Partition.processor', index=2, - number=3, 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='serverNodeId', full_name='com.webank.eggroll.core.meta.Partition.serverNodeId', index=3, - number=4, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='rankInNode', full_name='com.webank.eggroll.core.meta.Partition.rankInNode', index=4, - number=5, 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, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1599, - serialized_end=1790, -) - - -_CALLINFO = _descriptor.Descriptor( - name='CallInfo', - full_name='com.webank.eggroll.core.meta.CallInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='callSeq', full_name='com.webank.eggroll.core.meta.CallInfo.callSeq', 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, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1792, - serialized_end=1819, -) - - -_JOB_OPTIONSENTRY = _descriptor.Descriptor( - name='OptionsEntry', - full_name='com.webank.eggroll.core.meta.Job.OptionsEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='com.webank.eggroll.core.meta.Job.OptionsEntry.key', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='com.webank.eggroll.core.meta.Job.OptionsEntry.value', 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, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=b'8\001', - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=684, - serialized_end=730, -) - -_JOB = _descriptor.Descriptor( - name='Job', - full_name='com.webank.eggroll.core.meta.Job', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='id', full_name='com.webank.eggroll.core.meta.Job.id', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='name', full_name='com.webank.eggroll.core.meta.Job.name', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='inputs', full_name='com.webank.eggroll.core.meta.Job.inputs', index=2, - number=3, 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='outputs', full_name='com.webank.eggroll.core.meta.Job.outputs', index=3, - number=4, 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='functors', full_name='com.webank.eggroll.core.meta.Job.functors', index=4, - number=5, 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='options', full_name='com.webank.eggroll.core.meta.Job.options', index=5, - number=6, 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), - ], - extensions=[ - ], - nested_types=[_JOB_OPTIONSENTRY, ], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1822, - serialized_end=2130, -) - - -_TASK = _descriptor.Descriptor( - name='Task', - full_name='com.webank.eggroll.core.meta.Task', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='id', full_name='com.webank.eggroll.core.meta.Task.id', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='name', full_name='com.webank.eggroll.core.meta.Task.name', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='inputs', full_name='com.webank.eggroll.core.meta.Task.inputs', index=2, - number=3, 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='outputs', full_name='com.webank.eggroll.core.meta.Task.outputs', index=3, - number=4, 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='job', full_name='com.webank.eggroll.core.meta.Task.job', index=4, - 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, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2133, - serialized_end=2328, -) - - -_SESSIONMETA_OPTIONSENTRY = _descriptor.Descriptor( - name='OptionsEntry', - full_name='com.webank.eggroll.core.meta.SessionMeta.OptionsEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='com.webank.eggroll.core.meta.SessionMeta.OptionsEntry.key', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='com.webank.eggroll.core.meta.SessionMeta.OptionsEntry.value', 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, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=b'8\001', - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=684, - serialized_end=730, -) - -_SESSIONMETA = _descriptor.Descriptor( - name='SessionMeta', - full_name='com.webank.eggroll.core.meta.SessionMeta', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='id', full_name='com.webank.eggroll.core.meta.SessionMeta.id', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='name', full_name='com.webank.eggroll.core.meta.SessionMeta.name', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='status', full_name='com.webank.eggroll.core.meta.SessionMeta.status', index=2, - number=3, 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='tag', full_name='com.webank.eggroll.core.meta.SessionMeta.tag', index=3, - number=4, 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='processors', full_name='com.webank.eggroll.core.meta.SessionMeta.processors', index=4, - number=5, 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='options', full_name='com.webank.eggroll.core.meta.SessionMeta.options', index=5, - number=6, 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), - ], - extensions=[ - ], - nested_types=[_SESSIONMETA_OPTIONSENTRY, ], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=2331, - serialized_end=2581, -) - -_SERVERNODE.fields_by_name['endpoint'].message_type = _ENDPOINT -_SERVERCLUSTER.fields_by_name['serverNodes'].message_type = _SERVERNODE -_PROCESSOR_OPTIONSENTRY.containing_type = _PROCESSOR -_PROCESSOR.fields_by_name['commandEndpoint'].message_type = _ENDPOINT -_PROCESSOR.fields_by_name['transferEndpoint'].message_type = _ENDPOINT -_PROCESSOR.fields_by_name['options'].message_type = _PROCESSOR_OPTIONSENTRY -_PROCESSORBATCH.fields_by_name['processors'].message_type = _PROCESSOR -_FUNCTOR_OPTIONSENTRY.containing_type = _FUNCTOR -_FUNCTOR.fields_by_name['options'].message_type = _FUNCTOR_OPTIONSENTRY -_PAIRBATCH.fields_by_name['pairs'].message_type = _PAIR -_STORE_OPTIONSENTRY.containing_type = _STORE -_STORE.fields_by_name['storeLocator'].message_type = _STORELOCATOR -_STORE.fields_by_name['partitions'].message_type = _PARTITION -_STORE.fields_by_name['options'].message_type = _STORE_OPTIONSENTRY -_STORELIST.fields_by_name['stores'].message_type = _STORE -_PARTITION.fields_by_name['storeLocator'].message_type = _STORELOCATOR -_PARTITION.fields_by_name['processor'].message_type = _PROCESSOR -_JOB_OPTIONSENTRY.containing_type = _JOB -_JOB.fields_by_name['inputs'].message_type = _STORE -_JOB.fields_by_name['outputs'].message_type = _STORE -_JOB.fields_by_name['functors'].message_type = _FUNCTOR -_JOB.fields_by_name['options'].message_type = _JOB_OPTIONSENTRY -_TASK.fields_by_name['inputs'].message_type = _PARTITION -_TASK.fields_by_name['outputs'].message_type = _PARTITION -_TASK.fields_by_name['job'].message_type = _JOB -_SESSIONMETA_OPTIONSENTRY.containing_type = _SESSIONMETA -_SESSIONMETA.fields_by_name['processors'].message_type = _PROCESSOR -_SESSIONMETA.fields_by_name['options'].message_type = _SESSIONMETA_OPTIONSENTRY -DESCRIPTOR.message_types_by_name['Endpoint'] = _ENDPOINT -DESCRIPTOR.message_types_by_name['ServerNode'] = _SERVERNODE -DESCRIPTOR.message_types_by_name['ServerCluster'] = _SERVERCLUSTER -DESCRIPTOR.message_types_by_name['Processor'] = _PROCESSOR -DESCRIPTOR.message_types_by_name['ProcessorBatch'] = _PROCESSORBATCH -DESCRIPTOR.message_types_by_name['Functor'] = _FUNCTOR -DESCRIPTOR.message_types_by_name['Pair'] = _PAIR -DESCRIPTOR.message_types_by_name['PairBatch'] = _PAIRBATCH -DESCRIPTOR.message_types_by_name['StoreLocator'] = _STORELOCATOR -DESCRIPTOR.message_types_by_name['Store'] = _STORE -DESCRIPTOR.message_types_by_name['StoreList'] = _STORELIST -DESCRIPTOR.message_types_by_name['Partition'] = _PARTITION -DESCRIPTOR.message_types_by_name['CallInfo'] = _CALLINFO -DESCRIPTOR.message_types_by_name['Job'] = _JOB -DESCRIPTOR.message_types_by_name['Task'] = _TASK -DESCRIPTOR.message_types_by_name['SessionMeta'] = _SESSIONMETA -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - +_ENDPOINT = DESCRIPTOR.message_types_by_name['Endpoint'] +_SERVERNODE = DESCRIPTOR.message_types_by_name['ServerNode'] +_SERVERCLUSTER = DESCRIPTOR.message_types_by_name['ServerCluster'] +_PROCESSOR = DESCRIPTOR.message_types_by_name['Processor'] +_PROCESSOR_OPTIONSENTRY = _PROCESSOR.nested_types_by_name['OptionsEntry'] +_PROCESSORBATCH = DESCRIPTOR.message_types_by_name['ProcessorBatch'] +_FUNCTOR = DESCRIPTOR.message_types_by_name['Functor'] +_FUNCTOR_OPTIONSENTRY = _FUNCTOR.nested_types_by_name['OptionsEntry'] +_PAIR = DESCRIPTOR.message_types_by_name['Pair'] +_PAIRBATCH = DESCRIPTOR.message_types_by_name['PairBatch'] +_STORELOCATOR = DESCRIPTOR.message_types_by_name['StoreLocator'] +_STORE = DESCRIPTOR.message_types_by_name['Store'] +_STORE_OPTIONSENTRY = _STORE.nested_types_by_name['OptionsEntry'] +_STORELIST = DESCRIPTOR.message_types_by_name['StoreList'] +_PARTITION = DESCRIPTOR.message_types_by_name['Partition'] +_CALLINFO = DESCRIPTOR.message_types_by_name['CallInfo'] +_JOB = DESCRIPTOR.message_types_by_name['Job'] +_JOB_OPTIONSENTRY = _JOB.nested_types_by_name['OptionsEntry'] +_TASK = DESCRIPTOR.message_types_by_name['Task'] +_SESSIONMETA = DESCRIPTOR.message_types_by_name['SessionMeta'] +_SESSIONMETA_OPTIONSENTRY = _SESSIONMETA.nested_types_by_name['OptionsEntry'] Endpoint = _reflection.GeneratedProtocolMessageType('Endpoint', (_message.Message,), { 'DESCRIPTOR' : _ENDPOINT, '__module__' : 'meta_pb2' @@ -1266,10 +191,59 @@ _sym_db.RegisterMessage(SessionMeta) _sym_db.RegisterMessage(SessionMeta.OptionsEntry) - -_PROCESSOR_OPTIONSENTRY._options = None -_FUNCTOR_OPTIONSENTRY._options = None -_STORE_OPTIONSENTRY._options = None -_JOB_OPTIONSENTRY._options = None -_SESSIONMETA_OPTIONSENTRY._options = None +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + _PROCESSOR_OPTIONSENTRY._options = None + _PROCESSOR_OPTIONSENTRY._serialized_options = b'8\001' + _FUNCTOR_OPTIONSENTRY._options = None + _FUNCTOR_OPTIONSENTRY._serialized_options = b'8\001' + _STORE_OPTIONSENTRY._options = None + _STORE_OPTIONSENTRY._serialized_options = b'8\001' + _JOB_OPTIONSENTRY._options = None + _JOB_OPTIONSENTRY._serialized_options = b'8\001' + _SESSIONMETA_OPTIONSENTRY._options = None + _SESSIONMETA_OPTIONSENTRY._serialized_options = b'8\001' + _ENDPOINT._serialized_start=44 + _ENDPOINT._serialized_end=82 + _SERVERNODE._serialized_start=85 + _SERVERNODE._serialized_end=234 + _SERVERCLUSTER._serialized_start=236 + _SERVERCLUSTER._serialized_end=353 + _PROCESSOR._serialized_start=356 + _PROCESSOR._serialized_end=730 + _PROCESSOR_OPTIONSENTRY._serialized_start=684 + _PROCESSOR_OPTIONSENTRY._serialized_end=730 + _PROCESSORBATCH._serialized_start=732 + _PROCESSORBATCH._serialized_end=848 + _FUNCTOR._serialized_start=851 + _FUNCTOR._serialized_end=1021 + _FUNCTOR_OPTIONSENTRY._serialized_start=684 + _FUNCTOR_OPTIONSENTRY._serialized_end=730 + _PAIR._serialized_start=1023 + _PAIR._serialized_end=1057 + _PAIRBATCH._serialized_start=1059 + _PAIRBATCH._serialized_end=1121 + _STORELOCATOR._serialized_start=1124 + _STORELOCATOR._serialized_end=1278 + _STORE._serialized_start=1281 + _STORE._serialized_end=1530 + _STORE_OPTIONSENTRY._serialized_start=684 + _STORE_OPTIONSENTRY._serialized_end=730 + _STORELIST._serialized_start=1532 + _STORELIST._serialized_end=1596 + _PARTITION._serialized_start=1599 + _PARTITION._serialized_end=1790 + _CALLINFO._serialized_start=1792 + _CALLINFO._serialized_end=1819 + _JOB._serialized_start=1822 + _JOB._serialized_end=2130 + _JOB_OPTIONSENTRY._serialized_start=684 + _JOB_OPTIONSENTRY._serialized_end=730 + _TASK._serialized_start=2133 + _TASK._serialized_end=2328 + _SESSIONMETA._serialized_start=2331 + _SESSIONMETA._serialized_end=2581 + _SESSIONMETA_OPTIONSENTRY._serialized_start=684 + _SESSIONMETA_OPTIONSENTRY._serialized_end=730 # @@protoc_insertion_point(module_scope) diff --git a/python/eggroll/core/proto/meta_pb2_grpc.py b/python/eggroll/core/proto/meta_pb2_grpc.py index a89435267..2daafffeb 100644 --- a/python/eggroll/core/proto/meta_pb2_grpc.py +++ b/python/eggroll/core/proto/meta_pb2_grpc.py @@ -1,3 +1,4 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" import grpc diff --git a/python/eggroll/core/proto/proxy_pb2.py b/python/eggroll/core/proto/proxy_pb2.py index 105ed778b..4c8b785d7 100644 --- a/python/eggroll/core/proto/proxy_pb2.py +++ b/python/eggroll/core/proto/proxy_pb2.py @@ -1,9 +1,10 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: proxy.proto - +"""Generated protocol buffer code.""" from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database @@ -15,53 +16,9 @@ import basic_meta_pb2 as basic__meta__pb2 -DESCRIPTOR = _descriptor.FileDescriptor( - name='proxy.proto', - package='com.webank.ai.eggroll.api.networking.proxy', - syntax='proto3', - serialized_options=None, - serialized_pb=b'\n\x0bproxy.proto\x12*com.webank.ai.eggroll.api.networking.proxy\x1a\x10\x62\x61sic-meta.proto\"&\n\x05Model\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07\x64\x61taKey\x18\x02 \x01(\t\"X\n\x04Task\x12\x0e\n\x06taskId\x18\x01 \x01(\t\x12@\n\x05model\x18\x02 \x01(\x0b\x32\x31.com.webank.ai.eggroll.api.networking.proxy.Model\"p\n\x05Topic\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07partyId\x18\x02 \x01(\t\x12\x0c\n\x04role\x18\x03 \x01(\t\x12:\n\x08\x63\x61llback\x18\x04 \x01(\x0b\x32(.com.webank.ai.eggroll.api.core.Endpoint\"\x17\n\x07\x43ommand\x12\x0c\n\x04name\x18\x01 \x01(\t\"p\n\x04\x43onf\x12\x16\n\x0eoverallTimeout\x18\x01 \x01(\x03\x12\x1d\n\x15\x63ompletionWaitTimeout\x18\x02 \x01(\x03\x12\x1d\n\x15packetIntervalTimeout\x18\x03 \x01(\x03\x12\x12\n\nmaxRetries\x18\x04 \x01(\x05\"\x9a\x03\n\x08Metadata\x12>\n\x04task\x18\x01 \x01(\x0b\x32\x30.com.webank.ai.eggroll.api.networking.proxy.Task\x12>\n\x03src\x18\x02 \x01(\x0b\x32\x31.com.webank.ai.eggroll.api.networking.proxy.Topic\x12>\n\x03\x64st\x18\x03 \x01(\x0b\x32\x31.com.webank.ai.eggroll.api.networking.proxy.Topic\x12\x44\n\x07\x63ommand\x18\x04 \x01(\x0b\x32\x33.com.webank.ai.eggroll.api.networking.proxy.Command\x12\x10\n\x08operator\x18\x05 \x01(\t\x12\x0b\n\x03seq\x18\x06 \x01(\x03\x12\x0b\n\x03\x61\x63k\x18\x07 \x01(\x03\x12>\n\x04\x63onf\x18\x08 \x01(\x0b\x32\x30.com.webank.ai.eggroll.api.networking.proxy.Conf\x12\x0b\n\x03\x65xt\x18\t \x01(\x0c\x12\x0f\n\x07version\x18\x64 \x01(\t\"\"\n\x04\x44\x61ta\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c\"\x8e\x01\n\x06Packet\x12\x44\n\x06header\x18\x01 \x01(\x0b\x32\x34.com.webank.ai.eggroll.api.networking.proxy.Metadata\x12>\n\x04\x62ody\x18\x02 \x01(\x0b\x32\x30.com.webank.ai.eggroll.api.networking.proxy.Data\"\xa3\x01\n\x11HeartbeatResponse\x12\x44\n\x06header\x18\x01 \x01(\x0b\x32\x34.com.webank.ai.eggroll.api.networking.proxy.Metadata\x12H\n\toperation\x18\x02 \x01(\x0e\x32\x35.com.webank.ai.eggroll.api.networking.proxy.Operation\"\xb7\x01\n\x0cPollingFrame\x12\x0e\n\x06method\x18\x01 \x01(\t\x12\x0b\n\x03seq\x18\x02 \x01(\x03\x12\x46\n\x08metadata\x18\n \x01(\x0b\x32\x34.com.webank.ai.eggroll.api.networking.proxy.Metadata\x12\x42\n\x06packet\x18\x14 \x01(\x0b\x32\x32.com.webank.ai.eggroll.api.networking.proxy.Packet*O\n\tOperation\x12\t\n\x05START\x10\x00\x12\x07\n\x03RUN\x10\x01\x12\x08\n\x04STOP\x10\x02\x12\x08\n\x04KILL\x10\x03\x12\x0c\n\x08GET_DATA\x10\x04\x12\x0c\n\x08PUT_DATA\x10\x05\x32\xf6\x03\n\x13\x44\x61taTransferService\x12r\n\x04push\x12\x32.com.webank.ai.eggroll.api.networking.proxy.Packet\x1a\x34.com.webank.ai.eggroll.api.networking.proxy.Metadata(\x01\x12r\n\x04pull\x12\x34.com.webank.ai.eggroll.api.networking.proxy.Metadata\x1a\x32.com.webank.ai.eggroll.api.networking.proxy.Packet0\x01\x12s\n\tunaryCall\x12\x32.com.webank.ai.eggroll.api.networking.proxy.Packet\x1a\x32.com.webank.ai.eggroll.api.networking.proxy.Packet\x12\x81\x01\n\x07polling\x12\x38.com.webank.ai.eggroll.api.networking.proxy.PollingFrame\x1a\x38.com.webank.ai.eggroll.api.networking.proxy.PollingFrame(\x01\x30\x01\x32t\n\x0cRouteService\x12\x64\n\x05query\x12\x31.com.webank.ai.eggroll.api.networking.proxy.Topic\x1a(.com.webank.ai.eggroll.api.core.Endpointb\x06proto3' - , - dependencies=[basic__meta__pb2.DESCRIPTOR,]) - -_OPERATION = _descriptor.EnumDescriptor( - name='Operation', - full_name='com.webank.ai.eggroll.api.networking.proxy.Operation', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='START', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RUN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='STOP', index=2, number=2, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='KILL', index=3, number=3, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='GET_DATA', index=4, number=4, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PUT_DATA', index=5, number=5, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=1406, - serialized_end=1485, -) -_sym_db.RegisterEnumDescriptor(_OPERATION) +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0bproxy.proto\x12*com.webank.ai.eggroll.api.networking.proxy\x1a\x10\x62\x61sic-meta.proto\"&\n\x05Model\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07\x64\x61taKey\x18\x02 \x01(\t\"X\n\x04Task\x12\x0e\n\x06taskId\x18\x01 \x01(\t\x12@\n\x05model\x18\x02 \x01(\x0b\x32\x31.com.webank.ai.eggroll.api.networking.proxy.Model\"p\n\x05Topic\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07partyId\x18\x02 \x01(\t\x12\x0c\n\x04role\x18\x03 \x01(\t\x12:\n\x08\x63\x61llback\x18\x04 \x01(\x0b\x32(.com.webank.ai.eggroll.api.core.Endpoint\"\x17\n\x07\x43ommand\x12\x0c\n\x04name\x18\x01 \x01(\t\"p\n\x04\x43onf\x12\x16\n\x0eoverallTimeout\x18\x01 \x01(\x03\x12\x1d\n\x15\x63ompletionWaitTimeout\x18\x02 \x01(\x03\x12\x1d\n\x15packetIntervalTimeout\x18\x03 \x01(\x03\x12\x12\n\nmaxRetries\x18\x04 \x01(\x05\"\x9a\x03\n\x08Metadata\x12>\n\x04task\x18\x01 \x01(\x0b\x32\x30.com.webank.ai.eggroll.api.networking.proxy.Task\x12>\n\x03src\x18\x02 \x01(\x0b\x32\x31.com.webank.ai.eggroll.api.networking.proxy.Topic\x12>\n\x03\x64st\x18\x03 \x01(\x0b\x32\x31.com.webank.ai.eggroll.api.networking.proxy.Topic\x12\x44\n\x07\x63ommand\x18\x04 \x01(\x0b\x32\x33.com.webank.ai.eggroll.api.networking.proxy.Command\x12\x10\n\x08operator\x18\x05 \x01(\t\x12\x0b\n\x03seq\x18\x06 \x01(\x03\x12\x0b\n\x03\x61\x63k\x18\x07 \x01(\x03\x12>\n\x04\x63onf\x18\x08 \x01(\x0b\x32\x30.com.webank.ai.eggroll.api.networking.proxy.Conf\x12\x0b\n\x03\x65xt\x18\t \x01(\x0c\x12\x0f\n\x07version\x18\x64 \x01(\t\"\"\n\x04\x44\x61ta\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c\"\x8e\x01\n\x06Packet\x12\x44\n\x06header\x18\x01 \x01(\x0b\x32\x34.com.webank.ai.eggroll.api.networking.proxy.Metadata\x12>\n\x04\x62ody\x18\x02 \x01(\x0b\x32\x30.com.webank.ai.eggroll.api.networking.proxy.Data\"\xa3\x01\n\x11HeartbeatResponse\x12\x44\n\x06header\x18\x01 \x01(\x0b\x32\x34.com.webank.ai.eggroll.api.networking.proxy.Metadata\x12H\n\toperation\x18\x02 \x01(\x0e\x32\x35.com.webank.ai.eggroll.api.networking.proxy.Operation\"\xc5\x01\n\x0cPollingFrame\x12\x0e\n\x06method\x18\x01 \x01(\t\x12\x0b\n\x03seq\x18\x02 \x01(\x03\x12\x46\n\x08metadata\x18\n \x01(\x0b\x32\x34.com.webank.ai.eggroll.api.networking.proxy.Metadata\x12\x42\n\x06packet\x18\x14 \x01(\x0b\x32\x32.com.webank.ai.eggroll.api.networking.proxy.Packet\x12\x0c\n\x04\x64\x65sc\x18\x1e \x01(\t*O\n\tOperation\x12\t\n\x05START\x10\x00\x12\x07\n\x03RUN\x10\x01\x12\x08\n\x04STOP\x10\x02\x12\x08\n\x04KILL\x10\x03\x12\x0c\n\x08GET_DATA\x10\x04\x12\x0c\n\x08PUT_DATA\x10\x05\x32\xf6\x03\n\x13\x44\x61taTransferService\x12r\n\x04push\x12\x32.com.webank.ai.eggroll.api.networking.proxy.Packet\x1a\x34.com.webank.ai.eggroll.api.networking.proxy.Metadata(\x01\x12r\n\x04pull\x12\x34.com.webank.ai.eggroll.api.networking.proxy.Metadata\x1a\x32.com.webank.ai.eggroll.api.networking.proxy.Packet0\x01\x12s\n\tunaryCall\x12\x32.com.webank.ai.eggroll.api.networking.proxy.Packet\x1a\x32.com.webank.ai.eggroll.api.networking.proxy.Packet\x12\x81\x01\n\x07polling\x12\x38.com.webank.ai.eggroll.api.networking.proxy.PollingFrame\x1a\x38.com.webank.ai.eggroll.api.networking.proxy.PollingFrame(\x01\x30\x01\x32t\n\x0cRouteService\x12\x64\n\x05query\x12\x31.com.webank.ai.eggroll.api.networking.proxy.Topic\x1a(.com.webank.ai.eggroll.api.core.Endpointb\x06proto3') +_OPERATION = DESCRIPTOR.enum_types_by_name['Operation'] Operation = enum_type_wrapper.EnumTypeWrapper(_OPERATION) START = 0 RUN = 1 @@ -71,503 +28,16 @@ PUT_DATA = 5 - -_MODEL = _descriptor.Descriptor( - name='Model', - full_name='com.webank.ai.eggroll.api.networking.proxy.Model', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='com.webank.ai.eggroll.api.networking.proxy.Model.name', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='dataKey', full_name='com.webank.ai.eggroll.api.networking.proxy.Model.dataKey', 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, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=77, - serialized_end=115, -) - - -_TASK = _descriptor.Descriptor( - name='Task', - full_name='com.webank.ai.eggroll.api.networking.proxy.Task', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='taskId', full_name='com.webank.ai.eggroll.api.networking.proxy.Task.taskId', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='model', full_name='com.webank.ai.eggroll.api.networking.proxy.Task.model', index=1, - number=2, 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=117, - serialized_end=205, -) - - -_TOPIC = _descriptor.Descriptor( - name='Topic', - full_name='com.webank.ai.eggroll.api.networking.proxy.Topic', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='com.webank.ai.eggroll.api.networking.proxy.Topic.name', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='partyId', full_name='com.webank.ai.eggroll.api.networking.proxy.Topic.partyId', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='role', full_name='com.webank.ai.eggroll.api.networking.proxy.Topic.role', index=2, - number=3, 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='callback', full_name='com.webank.ai.eggroll.api.networking.proxy.Topic.callback', index=3, - number=4, 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=207, - serialized_end=319, -) - - -_COMMAND = _descriptor.Descriptor( - name='Command', - full_name='com.webank.ai.eggroll.api.networking.proxy.Command', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='com.webank.ai.eggroll.api.networking.proxy.Command.name', 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, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=321, - serialized_end=344, -) - - -_CONF = _descriptor.Descriptor( - name='Conf', - full_name='com.webank.ai.eggroll.api.networking.proxy.Conf', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='overallTimeout', full_name='com.webank.ai.eggroll.api.networking.proxy.Conf.overallTimeout', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='completionWaitTimeout', full_name='com.webank.ai.eggroll.api.networking.proxy.Conf.completionWaitTimeout', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='packetIntervalTimeout', full_name='com.webank.ai.eggroll.api.networking.proxy.Conf.packetIntervalTimeout', index=2, - number=3, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='maxRetries', full_name='com.webank.ai.eggroll.api.networking.proxy.Conf.maxRetries', index=3, - number=4, 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, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=346, - serialized_end=458, -) - - -_METADATA = _descriptor.Descriptor( - name='Metadata', - full_name='com.webank.ai.eggroll.api.networking.proxy.Metadata', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='task', full_name='com.webank.ai.eggroll.api.networking.proxy.Metadata.task', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='src', full_name='com.webank.ai.eggroll.api.networking.proxy.Metadata.src', index=1, - number=2, 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='dst', full_name='com.webank.ai.eggroll.api.networking.proxy.Metadata.dst', index=2, - number=3, 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='command', full_name='com.webank.ai.eggroll.api.networking.proxy.Metadata.command', index=3, - number=4, 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='operator', full_name='com.webank.ai.eggroll.api.networking.proxy.Metadata.operator', index=4, - number=5, 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='seq', full_name='com.webank.ai.eggroll.api.networking.proxy.Metadata.seq', index=5, - number=6, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ack', full_name='com.webank.ai.eggroll.api.networking.proxy.Metadata.ack', index=6, - number=7, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='conf', full_name='com.webank.ai.eggroll.api.networking.proxy.Metadata.conf', index=7, - number=8, 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='ext', full_name='com.webank.ai.eggroll.api.networking.proxy.Metadata.ext', index=8, - number=9, 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='version', full_name='com.webank.ai.eggroll.api.networking.proxy.Metadata.version', index=9, - number=100, 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, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=461, - serialized_end=871, -) - - -_DATA = _descriptor.Descriptor( - name='Data', - full_name='com.webank.ai.eggroll.api.networking.proxy.Data', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='com.webank.ai.eggroll.api.networking.proxy.Data.key', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='com.webank.ai.eggroll.api.networking.proxy.Data.value', 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, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=873, - serialized_end=907, -) - - -_PACKET = _descriptor.Descriptor( - name='Packet', - full_name='com.webank.ai.eggroll.api.networking.proxy.Packet', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='header', full_name='com.webank.ai.eggroll.api.networking.proxy.Packet.header', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='body', full_name='com.webank.ai.eggroll.api.networking.proxy.Packet.body', index=1, - number=2, 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=910, - serialized_end=1052, -) - - -_HEARTBEATRESPONSE = _descriptor.Descriptor( - name='HeartbeatResponse', - full_name='com.webank.ai.eggroll.api.networking.proxy.HeartbeatResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='header', full_name='com.webank.ai.eggroll.api.networking.proxy.HeartbeatResponse.header', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='operation', full_name='com.webank.ai.eggroll.api.networking.proxy.HeartbeatResponse.operation', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1055, - serialized_end=1218, -) - - -_POLLINGFRAME = _descriptor.Descriptor( - name='PollingFrame', - full_name='com.webank.ai.eggroll.api.networking.proxy.PollingFrame', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='method', full_name='com.webank.ai.eggroll.api.networking.proxy.PollingFrame.method', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='seq', full_name='com.webank.ai.eggroll.api.networking.proxy.PollingFrame.seq', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='metadata', full_name='com.webank.ai.eggroll.api.networking.proxy.PollingFrame.metadata', index=2, - number=10, 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='packet', full_name='com.webank.ai.eggroll.api.networking.proxy.PollingFrame.packet', index=3, - number=20, 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1221, - serialized_end=1404, -) - -_TASK.fields_by_name['model'].message_type = _MODEL -_TOPIC.fields_by_name['callback'].message_type = basic__meta__pb2._ENDPOINT -_METADATA.fields_by_name['task'].message_type = _TASK -_METADATA.fields_by_name['src'].message_type = _TOPIC -_METADATA.fields_by_name['dst'].message_type = _TOPIC -_METADATA.fields_by_name['command'].message_type = _COMMAND -_METADATA.fields_by_name['conf'].message_type = _CONF -_PACKET.fields_by_name['header'].message_type = _METADATA -_PACKET.fields_by_name['body'].message_type = _DATA -_HEARTBEATRESPONSE.fields_by_name['header'].message_type = _METADATA -_HEARTBEATRESPONSE.fields_by_name['operation'].enum_type = _OPERATION -_POLLINGFRAME.fields_by_name['metadata'].message_type = _METADATA -_POLLINGFRAME.fields_by_name['packet'].message_type = _PACKET -DESCRIPTOR.message_types_by_name['Model'] = _MODEL -DESCRIPTOR.message_types_by_name['Task'] = _TASK -DESCRIPTOR.message_types_by_name['Topic'] = _TOPIC -DESCRIPTOR.message_types_by_name['Command'] = _COMMAND -DESCRIPTOR.message_types_by_name['Conf'] = _CONF -DESCRIPTOR.message_types_by_name['Metadata'] = _METADATA -DESCRIPTOR.message_types_by_name['Data'] = _DATA -DESCRIPTOR.message_types_by_name['Packet'] = _PACKET -DESCRIPTOR.message_types_by_name['HeartbeatResponse'] = _HEARTBEATRESPONSE -DESCRIPTOR.message_types_by_name['PollingFrame'] = _POLLINGFRAME -DESCRIPTOR.enum_types_by_name['Operation'] = _OPERATION -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - +_MODEL = DESCRIPTOR.message_types_by_name['Model'] +_TASK = DESCRIPTOR.message_types_by_name['Task'] +_TOPIC = DESCRIPTOR.message_types_by_name['Topic'] +_COMMAND = DESCRIPTOR.message_types_by_name['Command'] +_CONF = DESCRIPTOR.message_types_by_name['Conf'] +_METADATA = DESCRIPTOR.message_types_by_name['Metadata'] +_DATA = DESCRIPTOR.message_types_by_name['Data'] +_PACKET = DESCRIPTOR.message_types_by_name['Packet'] +_HEARTBEATRESPONSE = DESCRIPTOR.message_types_by_name['HeartbeatResponse'] +_POLLINGFRAME = DESCRIPTOR.message_types_by_name['PollingFrame'] Model = _reflection.GeneratedProtocolMessageType('Model', (_message.Message,), { 'DESCRIPTOR' : _MODEL, '__module__' : 'proxy_pb2' @@ -638,80 +108,35 @@ }) _sym_db.RegisterMessage(PollingFrame) - - -_DATATRANSFERSERVICE = _descriptor.ServiceDescriptor( - name='DataTransferService', - full_name='com.webank.ai.eggroll.api.networking.proxy.DataTransferService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=1488, - serialized_end=1990, - methods=[ - _descriptor.MethodDescriptor( - name='push', - full_name='com.webank.ai.eggroll.api.networking.proxy.DataTransferService.push', - index=0, - containing_service=None, - input_type=_PACKET, - output_type=_METADATA, - serialized_options=None, - ), - _descriptor.MethodDescriptor( - name='pull', - full_name='com.webank.ai.eggroll.api.networking.proxy.DataTransferService.pull', - index=1, - containing_service=None, - input_type=_METADATA, - output_type=_PACKET, - serialized_options=None, - ), - _descriptor.MethodDescriptor( - name='unaryCall', - full_name='com.webank.ai.eggroll.api.networking.proxy.DataTransferService.unaryCall', - index=2, - containing_service=None, - input_type=_PACKET, - output_type=_PACKET, - serialized_options=None, - ), - _descriptor.MethodDescriptor( - name='polling', - full_name='com.webank.ai.eggroll.api.networking.proxy.DataTransferService.polling', - index=3, - containing_service=None, - input_type=_POLLINGFRAME, - output_type=_POLLINGFRAME, - serialized_options=None, - ), -]) -_sym_db.RegisterServiceDescriptor(_DATATRANSFERSERVICE) - -DESCRIPTOR.services_by_name['DataTransferService'] = _DATATRANSFERSERVICE - - -_ROUTESERVICE = _descriptor.ServiceDescriptor( - name='RouteService', - full_name='com.webank.ai.eggroll.api.networking.proxy.RouteService', - file=DESCRIPTOR, - index=1, - serialized_options=None, - serialized_start=1992, - serialized_end=2108, - methods=[ - _descriptor.MethodDescriptor( - name='query', - full_name='com.webank.ai.eggroll.api.networking.proxy.RouteService.query', - index=0, - containing_service=None, - input_type=_TOPIC, - output_type=basic__meta__pb2._ENDPOINT, - serialized_options=None, - ), -]) -_sym_db.RegisterServiceDescriptor(_ROUTESERVICE) - -DESCRIPTOR.services_by_name['RouteService'] = _ROUTESERVICE - +_DATATRANSFERSERVICE = DESCRIPTOR.services_by_name['DataTransferService'] +_ROUTESERVICE = DESCRIPTOR.services_by_name['RouteService'] +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + _OPERATION._serialized_start=1420 + _OPERATION._serialized_end=1499 + _MODEL._serialized_start=77 + _MODEL._serialized_end=115 + _TASK._serialized_start=117 + _TASK._serialized_end=205 + _TOPIC._serialized_start=207 + _TOPIC._serialized_end=319 + _COMMAND._serialized_start=321 + _COMMAND._serialized_end=344 + _CONF._serialized_start=346 + _CONF._serialized_end=458 + _METADATA._serialized_start=461 + _METADATA._serialized_end=871 + _DATA._serialized_start=873 + _DATA._serialized_end=907 + _PACKET._serialized_start=910 + _PACKET._serialized_end=1052 + _HEARTBEATRESPONSE._serialized_start=1055 + _HEARTBEATRESPONSE._serialized_end=1218 + _POLLINGFRAME._serialized_start=1221 + _POLLINGFRAME._serialized_end=1418 + _DATATRANSFERSERVICE._serialized_start=1502 + _DATATRANSFERSERVICE._serialized_end=2004 + _ROUTESERVICE._serialized_start=2006 + _ROUTESERVICE._serialized_end=2122 # @@protoc_insertion_point(module_scope) diff --git a/python/eggroll/core/proto/proxy_pb2_grpc.py b/python/eggroll/core/proto/proxy_pb2_grpc.py index 8708e9c22..d9f99065c 100644 --- a/python/eggroll/core/proto/proxy_pb2_grpc.py +++ b/python/eggroll/core/proto/proxy_pb2_grpc.py @@ -1,4 +1,5 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" import grpc import basic_meta_pb2 as basic__meta__pb2 @@ -6,135 +7,224 @@ class DataTransferServiceStub(object): - """data transfer service - """ + """data transfer service + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.push = channel.stream_unary( + '/com.webank.ai.eggroll.api.networking.proxy.DataTransferService/push', + request_serializer=proxy__pb2.Packet.SerializeToString, + response_deserializer=proxy__pb2.Metadata.FromString, + ) + self.pull = channel.unary_stream( + '/com.webank.ai.eggroll.api.networking.proxy.DataTransferService/pull', + request_serializer=proxy__pb2.Metadata.SerializeToString, + response_deserializer=proxy__pb2.Packet.FromString, + ) + self.unaryCall = channel.unary_unary( + '/com.webank.ai.eggroll.api.networking.proxy.DataTransferService/unaryCall', + request_serializer=proxy__pb2.Packet.SerializeToString, + response_deserializer=proxy__pb2.Packet.FromString, + ) + self.polling = channel.stream_stream( + '/com.webank.ai.eggroll.api.networking.proxy.DataTransferService/polling', + request_serializer=proxy__pb2.PollingFrame.SerializeToString, + response_deserializer=proxy__pb2.PollingFrame.FromString, + ) - def __init__(self, channel): - """Constructor. - Args: - channel: A grpc.Channel. +class DataTransferServiceServicer(object): + """data transfer service """ - self.push = channel.stream_unary( - '/com.webank.ai.eggroll.api.networking.proxy.DataTransferService/push', - request_serializer=proxy__pb2.Packet.SerializeToString, - response_deserializer=proxy__pb2.Metadata.FromString, - ) - self.pull = channel.unary_stream( - '/com.webank.ai.eggroll.api.networking.proxy.DataTransferService/pull', - request_serializer=proxy__pb2.Metadata.SerializeToString, - response_deserializer=proxy__pb2.Packet.FromString, - ) - self.unaryCall = channel.unary_unary( - '/com.webank.ai.eggroll.api.networking.proxy.DataTransferService/unaryCall', - request_serializer=proxy__pb2.Packet.SerializeToString, - response_deserializer=proxy__pb2.Packet.FromString, - ) - self.polling = channel.stream_stream( - '/com.webank.ai.eggroll.api.networking.proxy.DataTransferService/polling', - request_serializer=proxy__pb2.PollingFrame.SerializeToString, - response_deserializer=proxy__pb2.PollingFrame.FromString, - ) + def push(self, request_iterator, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') -class DataTransferServiceServicer(object): - """data transfer service - """ - - def push(self, request_iterator, context): - # missing associated documentation comment in .proto file - pass - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def pull(self, request, context): - # missing associated documentation comment in .proto file - pass - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def unaryCall(self, request, context): - # missing associated documentation comment in .proto file - pass - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def polling(self, request_iterator, context): - # missing associated documentation comment in .proto file - pass - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + def pull(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def unaryCall(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def polling(self, request_iterator, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') def add_DataTransferServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'push': grpc.stream_unary_rpc_method_handler( - servicer.push, - request_deserializer=proxy__pb2.Packet.FromString, - response_serializer=proxy__pb2.Metadata.SerializeToString, - ), - 'pull': grpc.unary_stream_rpc_method_handler( - servicer.pull, - request_deserializer=proxy__pb2.Metadata.FromString, - response_serializer=proxy__pb2.Packet.SerializeToString, - ), - 'unaryCall': grpc.unary_unary_rpc_method_handler( - servicer.unaryCall, - request_deserializer=proxy__pb2.Packet.FromString, - response_serializer=proxy__pb2.Packet.SerializeToString, - ), - 'polling': grpc.stream_stream_rpc_method_handler( - servicer.polling, - request_deserializer=proxy__pb2.PollingFrame.FromString, - response_serializer=proxy__pb2.PollingFrame.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'com.webank.ai.eggroll.api.networking.proxy.DataTransferService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + 'push': grpc.stream_unary_rpc_method_handler( + servicer.push, + request_deserializer=proxy__pb2.Packet.FromString, + response_serializer=proxy__pb2.Metadata.SerializeToString, + ), + 'pull': grpc.unary_stream_rpc_method_handler( + servicer.pull, + request_deserializer=proxy__pb2.Metadata.FromString, + response_serializer=proxy__pb2.Packet.SerializeToString, + ), + 'unaryCall': grpc.unary_unary_rpc_method_handler( + servicer.unaryCall, + request_deserializer=proxy__pb2.Packet.FromString, + response_serializer=proxy__pb2.Packet.SerializeToString, + ), + 'polling': grpc.stream_stream_rpc_method_handler( + servicer.polling, + request_deserializer=proxy__pb2.PollingFrame.FromString, + response_serializer=proxy__pb2.PollingFrame.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'com.webank.ai.eggroll.api.networking.proxy.DataTransferService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class DataTransferService(object): + """data transfer service + """ + + @staticmethod + def push(request_iterator, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.stream_unary(request_iterator, target, '/com.webank.ai.eggroll.api.networking.proxy.DataTransferService/push', + proxy__pb2.Packet.SerializeToString, + proxy__pb2.Metadata.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def pull(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_stream(request, target, '/com.webank.ai.eggroll.api.networking.proxy.DataTransferService/pull', + proxy__pb2.Metadata.SerializeToString, + proxy__pb2.Packet.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def unaryCall(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/com.webank.ai.eggroll.api.networking.proxy.DataTransferService/unaryCall', + proxy__pb2.Packet.SerializeToString, + proxy__pb2.Packet.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def polling(request_iterator, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.stream_stream(request_iterator, target, '/com.webank.ai.eggroll.api.networking.proxy.DataTransferService/polling', + proxy__pb2.PollingFrame.SerializeToString, + proxy__pb2.PollingFrame.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) class RouteServiceStub(object): - # missing associated documentation comment in .proto file - pass + """Missing associated documentation comment in .proto file.""" - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. - Args: - channel: A grpc.Channel. - """ - self.query = channel.unary_unary( - '/com.webank.ai.eggroll.api.networking.proxy.RouteService/query', - request_serializer=proxy__pb2.Topic.SerializeToString, - response_deserializer=basic__meta__pb2.Endpoint.FromString, - ) + Args: + channel: A grpc.Channel. + """ + self.query = channel.unary_unary( + '/com.webank.ai.eggroll.api.networking.proxy.RouteService/query', + request_serializer=proxy__pb2.Topic.SerializeToString, + response_deserializer=basic__meta__pb2.Endpoint.FromString, + ) class RouteServiceServicer(object): - # missing associated documentation comment in .proto file - pass + """Missing associated documentation comment in .proto file.""" - def query(self, request, context): - # missing associated documentation comment in .proto file - pass - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + def query(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') def add_RouteServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'query': grpc.unary_unary_rpc_method_handler( - servicer.query, - request_deserializer=proxy__pb2.Topic.FromString, - response_serializer=basic__meta__pb2.Endpoint.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'com.webank.ai.eggroll.api.networking.proxy.RouteService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + 'query': grpc.unary_unary_rpc_method_handler( + servicer.query, + request_deserializer=proxy__pb2.Topic.FromString, + response_serializer=basic__meta__pb2.Endpoint.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'com.webank.ai.eggroll.api.networking.proxy.RouteService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class RouteService(object): + """Missing associated documentation comment in .proto file.""" + + @staticmethod + def query(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/com.webank.ai.eggroll.api.networking.proxy.RouteService/query', + proxy__pb2.Topic.SerializeToString, + basic__meta__pb2.Endpoint.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/python/eggroll/core/proto/transfer_pb2.py b/python/eggroll/core/proto/transfer_pb2.py index 25c812c2e..d6291696c 100644 --- a/python/eggroll/core/proto/transfer_pb2.py +++ b/python/eggroll/core/proto/transfer_pb2.py @@ -1,8 +1,9 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: transfer.proto - +"""Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database @@ -13,301 +14,14 @@ -DESCRIPTOR = _descriptor.FileDescriptor( - name='transfer.proto', - package='com.webank.eggroll.core.transfer', - syntax='proto3', - serialized_options=None, - serialized_pb=b'\n\x0etransfer.proto\x12 com.webank.eggroll.core.transfer\"Y\n\x0eTransferHeader\x12\n\n\x02id\x18\x01 \x01(\x05\x12\x0b\n\x03tag\x18\x02 \x01(\t\x12\x11\n\ttotalSize\x18\x03 \x01(\x03\x12\x0e\n\x06status\x18\x04 \x01(\t\x12\x0b\n\x03\x65xt\x18\x05 \x01(\x0c\"r\n\rTransferBatch\x12@\n\x06header\x18\x01 \x01(\x0b\x32\x30.com.webank.eggroll.core.transfer.TransferHeader\x12\x11\n\tbatchSize\x18\x02 \x01(\x03\x12\x0c\n\x04\x64\x61ta\x18\x03 \x01(\x0c\"\xb0\x03\n\x0eRollSiteHeader\x12\x19\n\x11rollSiteSessionId\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x0b\n\x03tag\x18\x03 \x01(\t\x12\x0f\n\x07srcRole\x18\x04 \x01(\t\x12\x12\n\nsrcPartyId\x18\x05 \x01(\t\x12\x0f\n\x07\x64stRole\x18\x06 \x01(\t\x12\x12\n\ndstPartyId\x18\x07 \x01(\t\x12\x10\n\x08\x64\x61taType\x18\x08 \x01(\t\x12N\n\x07options\x18\n \x03(\x0b\x32=.com.webank.eggroll.core.transfer.RollSiteHeader.OptionsEntry\x12\x17\n\x0ftotalPartitions\x18\x0f \x01(\x05\x12\x13\n\x0bpartitionId\x18\x10 \x01(\x05\x12\x14\n\x0ctotalStreams\x18\x11 \x01(\x03\x12\x14\n\x0ctotalBatches\x18\x12 \x01(\x03\x12\x11\n\tstreamSeq\x18\x14 \x01(\x03\x12\x10\n\x08\x62\x61tchSeq\x18\x15 \x01(\x03\x12\r\n\x05stage\x18\x1e \x01(\t\x1a.\n\x0cOptionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x32\xdb\x02\n\x0fTransferService\x12j\n\x04send\x12/.com.webank.eggroll.core.transfer.TransferBatch\x1a/.com.webank.eggroll.core.transfer.TransferBatch(\x01\x12j\n\x04recv\x12/.com.webank.eggroll.core.transfer.TransferBatch\x1a/.com.webank.eggroll.core.transfer.TransferBatch0\x01\x12p\n\x08sendRecv\x12/.com.webank.eggroll.core.transfer.TransferBatch\x1a/.com.webank.eggroll.core.transfer.TransferBatch(\x01\x30\x01\x62\x06proto3' -) - - - - -_TRANSFERHEADER = _descriptor.Descriptor( - name='TransferHeader', - full_name='com.webank.eggroll.core.transfer.TransferHeader', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='id', full_name='com.webank.eggroll.core.transfer.TransferHeader.id', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='tag', full_name='com.webank.eggroll.core.transfer.TransferHeader.tag', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='totalSize', full_name='com.webank.eggroll.core.transfer.TransferHeader.totalSize', index=2, - number=3, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='status', full_name='com.webank.eggroll.core.transfer.TransferHeader.status', index=3, - number=4, 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ext', full_name='com.webank.eggroll.core.transfer.TransferHeader.ext', index=4, - number=5, 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, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=52, - serialized_end=141, -) - - -_TRANSFERBATCH = _descriptor.Descriptor( - name='TransferBatch', - full_name='com.webank.eggroll.core.transfer.TransferBatch', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='header', full_name='com.webank.eggroll.core.transfer.TransferBatch.header', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='batchSize', full_name='com.webank.eggroll.core.transfer.TransferBatch.batchSize', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='data', full_name='com.webank.eggroll.core.transfer.TransferBatch.data', 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, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=143, - serialized_end=257, -) +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0etransfer.proto\x12 com.webank.eggroll.core.transfer\"Y\n\x0eTransferHeader\x12\n\n\x02id\x18\x01 \x01(\x05\x12\x0b\n\x03tag\x18\x02 \x01(\t\x12\x11\n\ttotalSize\x18\x03 \x01(\x03\x12\x0e\n\x06status\x18\x04 \x01(\t\x12\x0b\n\x03\x65xt\x18\x05 \x01(\x0c\"r\n\rTransferBatch\x12@\n\x06header\x18\x01 \x01(\x0b\x32\x30.com.webank.eggroll.core.transfer.TransferHeader\x12\x11\n\tbatchSize\x18\x02 \x01(\x03\x12\x0c\n\x04\x64\x61ta\x18\x03 \x01(\x0c\"\xb0\x03\n\x0eRollSiteHeader\x12\x19\n\x11rollSiteSessionId\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x0b\n\x03tag\x18\x03 \x01(\t\x12\x0f\n\x07srcRole\x18\x04 \x01(\t\x12\x12\n\nsrcPartyId\x18\x05 \x01(\t\x12\x0f\n\x07\x64stRole\x18\x06 \x01(\t\x12\x12\n\ndstPartyId\x18\x07 \x01(\t\x12\x10\n\x08\x64\x61taType\x18\x08 \x01(\t\x12N\n\x07options\x18\n \x03(\x0b\x32=.com.webank.eggroll.core.transfer.RollSiteHeader.OptionsEntry\x12\x17\n\x0ftotalPartitions\x18\x0f \x01(\x05\x12\x13\n\x0bpartitionId\x18\x10 \x01(\x05\x12\x14\n\x0ctotalStreams\x18\x11 \x01(\x03\x12\x14\n\x0ctotalBatches\x18\x12 \x01(\x03\x12\x11\n\tstreamSeq\x18\x14 \x01(\x03\x12\x10\n\x08\x62\x61tchSeq\x18\x15 \x01(\x03\x12\r\n\x05stage\x18\x1e \x01(\t\x1a.\n\x0cOptionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x32\xdb\x02\n\x0fTransferService\x12j\n\x04send\x12/.com.webank.eggroll.core.transfer.TransferBatch\x1a/.com.webank.eggroll.core.transfer.TransferBatch(\x01\x12j\n\x04recv\x12/.com.webank.eggroll.core.transfer.TransferBatch\x1a/.com.webank.eggroll.core.transfer.TransferBatch0\x01\x12p\n\x08sendRecv\x12/.com.webank.eggroll.core.transfer.TransferBatch\x1a/.com.webank.eggroll.core.transfer.TransferBatch(\x01\x30\x01\x62\x06proto3') -_ROLLSITEHEADER_OPTIONSENTRY = _descriptor.Descriptor( - name='OptionsEntry', - full_name='com.webank.eggroll.core.transfer.RollSiteHeader.OptionsEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='com.webank.eggroll.core.transfer.RollSiteHeader.OptionsEntry.key', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='com.webank.eggroll.core.transfer.RollSiteHeader.OptionsEntry.value', 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, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=b'8\001', - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=646, - serialized_end=692, -) - -_ROLLSITEHEADER = _descriptor.Descriptor( - name='RollSiteHeader', - full_name='com.webank.eggroll.core.transfer.RollSiteHeader', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='rollSiteSessionId', full_name='com.webank.eggroll.core.transfer.RollSiteHeader.rollSiteSessionId', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='name', full_name='com.webank.eggroll.core.transfer.RollSiteHeader.name', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='tag', full_name='com.webank.eggroll.core.transfer.RollSiteHeader.tag', index=2, - number=3, 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='srcRole', full_name='com.webank.eggroll.core.transfer.RollSiteHeader.srcRole', index=3, - number=4, 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='srcPartyId', full_name='com.webank.eggroll.core.transfer.RollSiteHeader.srcPartyId', index=4, - number=5, 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='dstRole', full_name='com.webank.eggroll.core.transfer.RollSiteHeader.dstRole', index=5, - number=6, 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='dstPartyId', full_name='com.webank.eggroll.core.transfer.RollSiteHeader.dstPartyId', index=6, - number=7, 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='dataType', full_name='com.webank.eggroll.core.transfer.RollSiteHeader.dataType', index=7, - number=8, 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='options', full_name='com.webank.eggroll.core.transfer.RollSiteHeader.options', index=8, - number=10, 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='totalPartitions', full_name='com.webank.eggroll.core.transfer.RollSiteHeader.totalPartitions', index=9, - number=15, 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='partitionId', full_name='com.webank.eggroll.core.transfer.RollSiteHeader.partitionId', index=10, - number=16, 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='totalStreams', full_name='com.webank.eggroll.core.transfer.RollSiteHeader.totalStreams', index=11, - number=17, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='totalBatches', full_name='com.webank.eggroll.core.transfer.RollSiteHeader.totalBatches', index=12, - number=18, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='streamSeq', full_name='com.webank.eggroll.core.transfer.RollSiteHeader.streamSeq', index=13, - number=20, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='batchSeq', full_name='com.webank.eggroll.core.transfer.RollSiteHeader.batchSeq', index=14, - number=21, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='stage', full_name='com.webank.eggroll.core.transfer.RollSiteHeader.stage', index=15, - number=30, 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, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_ROLLSITEHEADER_OPTIONSENTRY, ], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=260, - serialized_end=692, -) - -_TRANSFERBATCH.fields_by_name['header'].message_type = _TRANSFERHEADER -_ROLLSITEHEADER_OPTIONSENTRY.containing_type = _ROLLSITEHEADER -_ROLLSITEHEADER.fields_by_name['options'].message_type = _ROLLSITEHEADER_OPTIONSENTRY -DESCRIPTOR.message_types_by_name['TransferHeader'] = _TRANSFERHEADER -DESCRIPTOR.message_types_by_name['TransferBatch'] = _TRANSFERBATCH -DESCRIPTOR.message_types_by_name['RollSiteHeader'] = _ROLLSITEHEADER -_sym_db.RegisterFileDescriptor(DESCRIPTOR) +_TRANSFERHEADER = DESCRIPTOR.message_types_by_name['TransferHeader'] +_TRANSFERBATCH = DESCRIPTOR.message_types_by_name['TransferBatch'] +_ROLLSITEHEADER = DESCRIPTOR.message_types_by_name['RollSiteHeader'] +_ROLLSITEHEADER_OPTIONSENTRY = _ROLLSITEHEADER.nested_types_by_name['OptionsEntry'] TransferHeader = _reflection.GeneratedProtocolMessageType('TransferHeader', (_message.Message,), { 'DESCRIPTOR' : _TRANSFERHEADER, '__module__' : 'transfer_pb2' @@ -337,48 +51,20 @@ _sym_db.RegisterMessage(RollSiteHeader) _sym_db.RegisterMessage(RollSiteHeader.OptionsEntry) - -_ROLLSITEHEADER_OPTIONSENTRY._options = None - -_TRANSFERSERVICE = _descriptor.ServiceDescriptor( - name='TransferService', - full_name='com.webank.eggroll.core.transfer.TransferService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=695, - serialized_end=1042, - methods=[ - _descriptor.MethodDescriptor( - name='send', - full_name='com.webank.eggroll.core.transfer.TransferService.send', - index=0, - containing_service=None, - input_type=_TRANSFERBATCH, - output_type=_TRANSFERBATCH, - serialized_options=None, - ), - _descriptor.MethodDescriptor( - name='recv', - full_name='com.webank.eggroll.core.transfer.TransferService.recv', - index=1, - containing_service=None, - input_type=_TRANSFERBATCH, - output_type=_TRANSFERBATCH, - serialized_options=None, - ), - _descriptor.MethodDescriptor( - name='sendRecv', - full_name='com.webank.eggroll.core.transfer.TransferService.sendRecv', - index=2, - containing_service=None, - input_type=_TRANSFERBATCH, - output_type=_TRANSFERBATCH, - serialized_options=None, - ), -]) -_sym_db.RegisterServiceDescriptor(_TRANSFERSERVICE) - -DESCRIPTOR.services_by_name['TransferService'] = _TRANSFERSERVICE - +_TRANSFERSERVICE = DESCRIPTOR.services_by_name['TransferService'] +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + _ROLLSITEHEADER_OPTIONSENTRY._options = None + _ROLLSITEHEADER_OPTIONSENTRY._serialized_options = b'8\001' + _TRANSFERHEADER._serialized_start=52 + _TRANSFERHEADER._serialized_end=141 + _TRANSFERBATCH._serialized_start=143 + _TRANSFERBATCH._serialized_end=257 + _ROLLSITEHEADER._serialized_start=260 + _ROLLSITEHEADER._serialized_end=692 + _ROLLSITEHEADER_OPTIONSENTRY._serialized_start=646 + _ROLLSITEHEADER_OPTIONSENTRY._serialized_end=692 + _TRANSFERSERVICE._serialized_start=695 + _TRANSFERSERVICE._serialized_end=1042 # @@protoc_insertion_point(module_scope) diff --git a/python/eggroll/core/proto/transfer_pb2_grpc.py b/python/eggroll/core/proto/transfer_pb2_grpc.py index 506158b3a..394091532 100644 --- a/python/eggroll/core/proto/transfer_pb2_grpc.py +++ b/python/eggroll/core/proto/transfer_pb2_grpc.py @@ -1,80 +1,135 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" import grpc import transfer_pb2 as transfer__pb2 class TransferServiceStub(object): - """TODO: use transfer lib - """ + """TODO: use transfer lib + """ - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. - Args: - channel: A grpc.Channel. - """ - self.send = channel.stream_unary( - '/com.webank.eggroll.core.transfer.TransferService/send', - request_serializer=transfer__pb2.TransferBatch.SerializeToString, - response_deserializer=transfer__pb2.TransferBatch.FromString, - ) - self.recv = channel.unary_stream( - '/com.webank.eggroll.core.transfer.TransferService/recv', - request_serializer=transfer__pb2.TransferBatch.SerializeToString, - response_deserializer=transfer__pb2.TransferBatch.FromString, - ) - self.sendRecv = channel.stream_stream( - '/com.webank.eggroll.core.transfer.TransferService/sendRecv', - request_serializer=transfer__pb2.TransferBatch.SerializeToString, - response_deserializer=transfer__pb2.TransferBatch.FromString, - ) + Args: + channel: A grpc.Channel. + """ + self.send = channel.stream_unary( + '/com.webank.eggroll.core.transfer.TransferService/send', + request_serializer=transfer__pb2.TransferBatch.SerializeToString, + response_deserializer=transfer__pb2.TransferBatch.FromString, + ) + self.recv = channel.unary_stream( + '/com.webank.eggroll.core.transfer.TransferService/recv', + request_serializer=transfer__pb2.TransferBatch.SerializeToString, + response_deserializer=transfer__pb2.TransferBatch.FromString, + ) + self.sendRecv = channel.stream_stream( + '/com.webank.eggroll.core.transfer.TransferService/sendRecv', + request_serializer=transfer__pb2.TransferBatch.SerializeToString, + response_deserializer=transfer__pb2.TransferBatch.FromString, + ) class TransferServiceServicer(object): - """TODO: use transfer lib - """ - - def send(self, request_iterator, context): - # missing associated documentation comment in .proto file - pass - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def recv(self, request, context): - # missing associated documentation comment in .proto file - pass - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def sendRecv(self, request_iterator, context): - # missing associated documentation comment in .proto file - pass - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + """TODO: use transfer lib + """ + + def send(self, request_iterator, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def recv(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def sendRecv(self, request_iterator, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') def add_TransferServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'send': grpc.stream_unary_rpc_method_handler( - servicer.send, - request_deserializer=transfer__pb2.TransferBatch.FromString, - response_serializer=transfer__pb2.TransferBatch.SerializeToString, - ), - 'recv': grpc.unary_stream_rpc_method_handler( - servicer.recv, - request_deserializer=transfer__pb2.TransferBatch.FromString, - response_serializer=transfer__pb2.TransferBatch.SerializeToString, - ), - 'sendRecv': grpc.stream_stream_rpc_method_handler( - servicer.sendRecv, - request_deserializer=transfer__pb2.TransferBatch.FromString, - response_serializer=transfer__pb2.TransferBatch.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'com.webank.eggroll.core.transfer.TransferService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + 'send': grpc.stream_unary_rpc_method_handler( + servicer.send, + request_deserializer=transfer__pb2.TransferBatch.FromString, + response_serializer=transfer__pb2.TransferBatch.SerializeToString, + ), + 'recv': grpc.unary_stream_rpc_method_handler( + servicer.recv, + request_deserializer=transfer__pb2.TransferBatch.FromString, + response_serializer=transfer__pb2.TransferBatch.SerializeToString, + ), + 'sendRecv': grpc.stream_stream_rpc_method_handler( + servicer.sendRecv, + request_deserializer=transfer__pb2.TransferBatch.FromString, + response_serializer=transfer__pb2.TransferBatch.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'com.webank.eggroll.core.transfer.TransferService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class TransferService(object): + """TODO: use transfer lib + """ + + @staticmethod + def send(request_iterator, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.stream_unary(request_iterator, target, '/com.webank.eggroll.core.transfer.TransferService/send', + transfer__pb2.TransferBatch.SerializeToString, + transfer__pb2.TransferBatch.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def recv(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_stream(request, target, '/com.webank.eggroll.core.transfer.TransferService/recv', + transfer__pb2.TransferBatch.SerializeToString, + transfer__pb2.TransferBatch.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def sendRecv(request_iterator, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.stream_stream(request_iterator, target, '/com.webank.eggroll.core.transfer.TransferService/sendRecv', + transfer__pb2.TransferBatch.SerializeToString, + transfer__pb2.TransferBatch.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/python/eggroll/roll_site/proto/basic_meta_pb2.py b/python/eggroll/roll_site/proto/basic_meta_pb2.py index a509a8cbe..6c2d589cf 100644 --- a/python/eggroll/roll_site/proto/basic_meta_pb2.py +++ b/python/eggroll/roll_site/proto/basic_meta_pb2.py @@ -1,10 +1,9 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: basic-meta.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +"""Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database @@ -15,620 +14,134 @@ -DESCRIPTOR = _descriptor.FileDescriptor( - name='basic-meta.proto', - package='com.webank.ai.eggroll.api.core', - syntax='proto3', - serialized_options=None, - serialized_pb=_b('\n\x10\x62\x61sic-meta.proto\x12\x1e\x63om.webank.ai.eggroll.api.core\"6\n\x08\x45ndpoint\x12\n\n\x02ip\x18\x01 \x01(\t\x12\x0c\n\x04port\x18\x02 \x01(\x05\x12\x10\n\x08hostname\x18\x03 \x01(\t\"H\n\tEndpoints\x12;\n\tendpoints\x18\x01 \x03(\x0b\x32(.com.webank.ai.eggroll.api.core.Endpoint\"H\n\x04\x44\x61ta\x12\x0e\n\x06isNull\x18\x01 \x01(\x08\x12\x14\n\x0chostLanguage\x18\x02 \x01(\t\x12\x0c\n\x04type\x18\x03 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x04 \x01(\x0c\"F\n\x0cRepeatedData\x12\x36\n\x08\x64\x61talist\x18\x01 \x03(\x0b\x32$.com.webank.ai.eggroll.api.core.Data\"u\n\x0b\x43\x61llRequest\x12\x0f\n\x07isAsync\x18\x01 \x01(\x08\x12\x0f\n\x07timeout\x18\x02 \x01(\x03\x12\x0f\n\x07\x63ommand\x18\x03 \x01(\t\x12\x33\n\x05param\x18\x04 \x01(\x0b\x32$.com.webank.ai.eggroll.api.core.Data\"\x88\x01\n\x0c\x43\x61llResponse\x12\x42\n\x0creturnStatus\x18\x01 \x01(\x0b\x32,.com.webank.ai.eggroll.api.core.ReturnStatus\x12\x34\n\x06result\x18\x02 \x01(\x0b\x32$.com.webank.ai.eggroll.api.core.Data\"\"\n\x03Job\x12\r\n\x05jobId\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\"Y\n\x04Task\x12\x30\n\x03job\x18\x01 \x01(\x0b\x32#.com.webank.ai.eggroll.api.core.Job\x12\x0e\n\x06taskId\x18\x02 \x01(\x03\x12\x0f\n\x07tableId\x18\x03 \x01(\x03\"N\n\x06Result\x12\x32\n\x04task\x18\x01 \x01(\x0b\x32$.com.webank.ai.eggroll.api.core.Task\x12\x10\n\x08resultId\x18\x02 \x01(\x03\"-\n\x0cReturnStatus\x12\x0c\n\x04\x63ode\x18\x01 \x01(\x05\x12\x0f\n\x07message\x18\x02 \x01(\t\"\xe2\x01\n\x0bSessionInfo\x12\x11\n\tsessionId\x18\x01 \x01(\t\x12\x61\n\x13\x63omputingEngineConf\x18\x02 \x03(\x0b\x32\x44.com.webank.ai.eggroll.api.core.SessionInfo.ComputingEngineConfEntry\x12\x14\n\x0cnamingPolicy\x18\x03 \x01(\t\x12\x0b\n\x03tag\x18\x04 \x01(\t\x1a:\n\x18\x43omputingEngineConfEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x62\x06proto3') -) - - - - -_ENDPOINT = _descriptor.Descriptor( - name='Endpoint', - full_name='com.webank.ai.eggroll.api.core.Endpoint', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='ip', full_name='com.webank.ai.eggroll.api.core.Endpoint.ip', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='port', full_name='com.webank.ai.eggroll.api.core.Endpoint.port', index=1, - number=2, 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='hostname', full_name='com.webank.ai.eggroll.api.core.Endpoint.hostname', index=2, - number=3, 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, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=52, - serialized_end=106, -) - - -_ENDPOINTS = _descriptor.Descriptor( - name='Endpoints', - full_name='com.webank.ai.eggroll.api.core.Endpoints', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='endpoints', full_name='com.webank.ai.eggroll.api.core.Endpoints.endpoints', index=0, - number=1, 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=108, - serialized_end=180, -) - - -_DATA = _descriptor.Descriptor( - name='Data', - full_name='com.webank.ai.eggroll.api.core.Data', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='isNull', full_name='com.webank.ai.eggroll.api.core.Data.isNull', index=0, - number=1, 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='hostLanguage', full_name='com.webank.ai.eggroll.api.core.Data.hostLanguage', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='type', full_name='com.webank.ai.eggroll.api.core.Data.type', index=2, - number=3, 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='data', full_name='com.webank.ai.eggroll.api.core.Data.data', index=3, - 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, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=182, - serialized_end=254, -) - - -_REPEATEDDATA = _descriptor.Descriptor( - name='RepeatedData', - full_name='com.webank.ai.eggroll.api.core.RepeatedData', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='datalist', full_name='com.webank.ai.eggroll.api.core.RepeatedData.datalist', index=0, - number=1, 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=256, - serialized_end=326, -) - - -_CALLREQUEST = _descriptor.Descriptor( - name='CallRequest', - full_name='com.webank.ai.eggroll.api.core.CallRequest', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='isAsync', full_name='com.webank.ai.eggroll.api.core.CallRequest.isAsync', index=0, - number=1, 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='timeout', full_name='com.webank.ai.eggroll.api.core.CallRequest.timeout', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='command', full_name='com.webank.ai.eggroll.api.core.CallRequest.command', index=2, - number=3, 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='param', full_name='com.webank.ai.eggroll.api.core.CallRequest.param', index=3, - number=4, 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=328, - serialized_end=445, -) +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x10\x62\x61sic-meta.proto\x12\x1e\x63om.webank.ai.eggroll.api.core\"6\n\x08\x45ndpoint\x12\n\n\x02ip\x18\x01 \x01(\t\x12\x0c\n\x04port\x18\x02 \x01(\x05\x12\x10\n\x08hostname\x18\x03 \x01(\t\"H\n\tEndpoints\x12;\n\tendpoints\x18\x01 \x03(\x0b\x32(.com.webank.ai.eggroll.api.core.Endpoint\"H\n\x04\x44\x61ta\x12\x0e\n\x06isNull\x18\x01 \x01(\x08\x12\x14\n\x0chostLanguage\x18\x02 \x01(\t\x12\x0c\n\x04type\x18\x03 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x04 \x01(\x0c\"F\n\x0cRepeatedData\x12\x36\n\x08\x64\x61talist\x18\x01 \x03(\x0b\x32$.com.webank.ai.eggroll.api.core.Data\"u\n\x0b\x43\x61llRequest\x12\x0f\n\x07isAsync\x18\x01 \x01(\x08\x12\x0f\n\x07timeout\x18\x02 \x01(\x03\x12\x0f\n\x07\x63ommand\x18\x03 \x01(\t\x12\x33\n\x05param\x18\x04 \x01(\x0b\x32$.com.webank.ai.eggroll.api.core.Data\"\x88\x01\n\x0c\x43\x61llResponse\x12\x42\n\x0creturnStatus\x18\x01 \x01(\x0b\x32,.com.webank.ai.eggroll.api.core.ReturnStatus\x12\x34\n\x06result\x18\x02 \x01(\x0b\x32$.com.webank.ai.eggroll.api.core.Data\"\"\n\x03Job\x12\r\n\x05jobId\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\"Y\n\x04Task\x12\x30\n\x03job\x18\x01 \x01(\x0b\x32#.com.webank.ai.eggroll.api.core.Job\x12\x0e\n\x06taskId\x18\x02 \x01(\x03\x12\x0f\n\x07tableId\x18\x03 \x01(\x03\"N\n\x06Result\x12\x32\n\x04task\x18\x01 \x01(\x0b\x32$.com.webank.ai.eggroll.api.core.Task\x12\x10\n\x08resultId\x18\x02 \x01(\x03\"-\n\x0cReturnStatus\x12\x0c\n\x04\x63ode\x18\x01 \x01(\x05\x12\x0f\n\x07message\x18\x02 \x01(\t\"\xe2\x01\n\x0bSessionInfo\x12\x11\n\tsessionId\x18\x01 \x01(\t\x12\x61\n\x13\x63omputingEngineConf\x18\x02 \x03(\x0b\x32\x44.com.webank.ai.eggroll.api.core.SessionInfo.ComputingEngineConfEntry\x12\x14\n\x0cnamingPolicy\x18\x03 \x01(\t\x12\x0b\n\x03tag\x18\x04 \x01(\t\x1a:\n\x18\x43omputingEngineConfEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x62\x06proto3') -_CALLRESPONSE = _descriptor.Descriptor( - name='CallResponse', - full_name='com.webank.ai.eggroll.api.core.CallResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='returnStatus', full_name='com.webank.ai.eggroll.api.core.CallResponse.returnStatus', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='result', full_name='com.webank.ai.eggroll.api.core.CallResponse.result', index=1, - number=2, 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=448, - serialized_end=584, -) - -_JOB = _descriptor.Descriptor( - name='Job', - full_name='com.webank.ai.eggroll.api.core.Job', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='jobId', full_name='com.webank.ai.eggroll.api.core.Job.jobId', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='name', full_name='com.webank.ai.eggroll.api.core.Job.name', 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, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=586, - serialized_end=620, -) - - -_TASK = _descriptor.Descriptor( - name='Task', - full_name='com.webank.ai.eggroll.api.core.Task', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='job', full_name='com.webank.ai.eggroll.api.core.Task.job', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='taskId', full_name='com.webank.ai.eggroll.api.core.Task.taskId', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='tableId', full_name='com.webank.ai.eggroll.api.core.Task.tableId', index=2, - number=3, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=622, - serialized_end=711, -) - - -_RESULT = _descriptor.Descriptor( - name='Result', - full_name='com.webank.ai.eggroll.api.core.Result', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='task', full_name='com.webank.ai.eggroll.api.core.Result.task', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='resultId', full_name='com.webank.ai.eggroll.api.core.Result.resultId', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=713, - serialized_end=791, -) - - -_RETURNSTATUS = _descriptor.Descriptor( - name='ReturnStatus', - full_name='com.webank.ai.eggroll.api.core.ReturnStatus', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='code', full_name='com.webank.ai.eggroll.api.core.ReturnStatus.code', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='message', full_name='com.webank.ai.eggroll.api.core.ReturnStatus.message', 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, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=793, - serialized_end=838, -) - - -_SESSIONINFO_COMPUTINGENGINECONFENTRY = _descriptor.Descriptor( - name='ComputingEngineConfEntry', - full_name='com.webank.ai.eggroll.api.core.SessionInfo.ComputingEngineConfEntry', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='com.webank.ai.eggroll.api.core.SessionInfo.ComputingEngineConfEntry.key', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='com.webank.ai.eggroll.api.core.SessionInfo.ComputingEngineConfEntry.value', 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, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=_b('8\001'), - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1009, - serialized_end=1067, -) - -_SESSIONINFO = _descriptor.Descriptor( - name='SessionInfo', - full_name='com.webank.ai.eggroll.api.core.SessionInfo', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='sessionId', full_name='com.webank.ai.eggroll.api.core.SessionInfo.sessionId', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='computingEngineConf', full_name='com.webank.ai.eggroll.api.core.SessionInfo.computingEngineConf', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='namingPolicy', full_name='com.webank.ai.eggroll.api.core.SessionInfo.namingPolicy', index=2, - number=3, 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='tag', full_name='com.webank.ai.eggroll.api.core.SessionInfo.tag', index=3, - number=4, 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, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[_SESSIONINFO_COMPUTINGENGINECONFENTRY, ], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=841, - serialized_end=1067, -) - -_ENDPOINTS.fields_by_name['endpoints'].message_type = _ENDPOINT -_REPEATEDDATA.fields_by_name['datalist'].message_type = _DATA -_CALLREQUEST.fields_by_name['param'].message_type = _DATA -_CALLRESPONSE.fields_by_name['returnStatus'].message_type = _RETURNSTATUS -_CALLRESPONSE.fields_by_name['result'].message_type = _DATA -_TASK.fields_by_name['job'].message_type = _JOB -_RESULT.fields_by_name['task'].message_type = _TASK -_SESSIONINFO_COMPUTINGENGINECONFENTRY.containing_type = _SESSIONINFO -_SESSIONINFO.fields_by_name['computingEngineConf'].message_type = _SESSIONINFO_COMPUTINGENGINECONFENTRY -DESCRIPTOR.message_types_by_name['Endpoint'] = _ENDPOINT -DESCRIPTOR.message_types_by_name['Endpoints'] = _ENDPOINTS -DESCRIPTOR.message_types_by_name['Data'] = _DATA -DESCRIPTOR.message_types_by_name['RepeatedData'] = _REPEATEDDATA -DESCRIPTOR.message_types_by_name['CallRequest'] = _CALLREQUEST -DESCRIPTOR.message_types_by_name['CallResponse'] = _CALLRESPONSE -DESCRIPTOR.message_types_by_name['Job'] = _JOB -DESCRIPTOR.message_types_by_name['Task'] = _TASK -DESCRIPTOR.message_types_by_name['Result'] = _RESULT -DESCRIPTOR.message_types_by_name['ReturnStatus'] = _RETURNSTATUS -DESCRIPTOR.message_types_by_name['SessionInfo'] = _SESSIONINFO -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -Endpoint = _reflection.GeneratedProtocolMessageType('Endpoint', (_message.Message,), dict( - DESCRIPTOR = _ENDPOINT, - __module__ = 'basic_meta_pb2' +_ENDPOINT = DESCRIPTOR.message_types_by_name['Endpoint'] +_ENDPOINTS = DESCRIPTOR.message_types_by_name['Endpoints'] +_DATA = DESCRIPTOR.message_types_by_name['Data'] +_REPEATEDDATA = DESCRIPTOR.message_types_by_name['RepeatedData'] +_CALLREQUEST = DESCRIPTOR.message_types_by_name['CallRequest'] +_CALLRESPONSE = DESCRIPTOR.message_types_by_name['CallResponse'] +_JOB = DESCRIPTOR.message_types_by_name['Job'] +_TASK = DESCRIPTOR.message_types_by_name['Task'] +_RESULT = DESCRIPTOR.message_types_by_name['Result'] +_RETURNSTATUS = DESCRIPTOR.message_types_by_name['ReturnStatus'] +_SESSIONINFO = DESCRIPTOR.message_types_by_name['SessionInfo'] +_SESSIONINFO_COMPUTINGENGINECONFENTRY = _SESSIONINFO.nested_types_by_name['ComputingEngineConfEntry'] +Endpoint = _reflection.GeneratedProtocolMessageType('Endpoint', (_message.Message,), { + 'DESCRIPTOR' : _ENDPOINT, + '__module__' : 'basic_meta_pb2' # @@protoc_insertion_point(class_scope:com.webank.ai.eggroll.api.core.Endpoint) - )) + }) _sym_db.RegisterMessage(Endpoint) -Endpoints = _reflection.GeneratedProtocolMessageType('Endpoints', (_message.Message,), dict( - DESCRIPTOR = _ENDPOINTS, - __module__ = 'basic_meta_pb2' +Endpoints = _reflection.GeneratedProtocolMessageType('Endpoints', (_message.Message,), { + 'DESCRIPTOR' : _ENDPOINTS, + '__module__' : 'basic_meta_pb2' # @@protoc_insertion_point(class_scope:com.webank.ai.eggroll.api.core.Endpoints) - )) + }) _sym_db.RegisterMessage(Endpoints) -Data = _reflection.GeneratedProtocolMessageType('Data', (_message.Message,), dict( - DESCRIPTOR = _DATA, - __module__ = 'basic_meta_pb2' +Data = _reflection.GeneratedProtocolMessageType('Data', (_message.Message,), { + 'DESCRIPTOR' : _DATA, + '__module__' : 'basic_meta_pb2' # @@protoc_insertion_point(class_scope:com.webank.ai.eggroll.api.core.Data) - )) + }) _sym_db.RegisterMessage(Data) -RepeatedData = _reflection.GeneratedProtocolMessageType('RepeatedData', (_message.Message,), dict( - DESCRIPTOR = _REPEATEDDATA, - __module__ = 'basic_meta_pb2' +RepeatedData = _reflection.GeneratedProtocolMessageType('RepeatedData', (_message.Message,), { + 'DESCRIPTOR' : _REPEATEDDATA, + '__module__' : 'basic_meta_pb2' # @@protoc_insertion_point(class_scope:com.webank.ai.eggroll.api.core.RepeatedData) - )) + }) _sym_db.RegisterMessage(RepeatedData) -CallRequest = _reflection.GeneratedProtocolMessageType('CallRequest', (_message.Message,), dict( - DESCRIPTOR = _CALLREQUEST, - __module__ = 'basic_meta_pb2' +CallRequest = _reflection.GeneratedProtocolMessageType('CallRequest', (_message.Message,), { + 'DESCRIPTOR' : _CALLREQUEST, + '__module__' : 'basic_meta_pb2' # @@protoc_insertion_point(class_scope:com.webank.ai.eggroll.api.core.CallRequest) - )) + }) _sym_db.RegisterMessage(CallRequest) -CallResponse = _reflection.GeneratedProtocolMessageType('CallResponse', (_message.Message,), dict( - DESCRIPTOR = _CALLRESPONSE, - __module__ = 'basic_meta_pb2' +CallResponse = _reflection.GeneratedProtocolMessageType('CallResponse', (_message.Message,), { + 'DESCRIPTOR' : _CALLRESPONSE, + '__module__' : 'basic_meta_pb2' # @@protoc_insertion_point(class_scope:com.webank.ai.eggroll.api.core.CallResponse) - )) + }) _sym_db.RegisterMessage(CallResponse) -Job = _reflection.GeneratedProtocolMessageType('Job', (_message.Message,), dict( - DESCRIPTOR = _JOB, - __module__ = 'basic_meta_pb2' +Job = _reflection.GeneratedProtocolMessageType('Job', (_message.Message,), { + 'DESCRIPTOR' : _JOB, + '__module__' : 'basic_meta_pb2' # @@protoc_insertion_point(class_scope:com.webank.ai.eggroll.api.core.Job) - )) + }) _sym_db.RegisterMessage(Job) -Task = _reflection.GeneratedProtocolMessageType('Task', (_message.Message,), dict( - DESCRIPTOR = _TASK, - __module__ = 'basic_meta_pb2' +Task = _reflection.GeneratedProtocolMessageType('Task', (_message.Message,), { + 'DESCRIPTOR' : _TASK, + '__module__' : 'basic_meta_pb2' # @@protoc_insertion_point(class_scope:com.webank.ai.eggroll.api.core.Task) - )) + }) _sym_db.RegisterMessage(Task) -Result = _reflection.GeneratedProtocolMessageType('Result', (_message.Message,), dict( - DESCRIPTOR = _RESULT, - __module__ = 'basic_meta_pb2' +Result = _reflection.GeneratedProtocolMessageType('Result', (_message.Message,), { + 'DESCRIPTOR' : _RESULT, + '__module__' : 'basic_meta_pb2' # @@protoc_insertion_point(class_scope:com.webank.ai.eggroll.api.core.Result) - )) + }) _sym_db.RegisterMessage(Result) -ReturnStatus = _reflection.GeneratedProtocolMessageType('ReturnStatus', (_message.Message,), dict( - DESCRIPTOR = _RETURNSTATUS, - __module__ = 'basic_meta_pb2' +ReturnStatus = _reflection.GeneratedProtocolMessageType('ReturnStatus', (_message.Message,), { + 'DESCRIPTOR' : _RETURNSTATUS, + '__module__' : 'basic_meta_pb2' # @@protoc_insertion_point(class_scope:com.webank.ai.eggroll.api.core.ReturnStatus) - )) + }) _sym_db.RegisterMessage(ReturnStatus) -SessionInfo = _reflection.GeneratedProtocolMessageType('SessionInfo', (_message.Message,), dict( +SessionInfo = _reflection.GeneratedProtocolMessageType('SessionInfo', (_message.Message,), { - ComputingEngineConfEntry = _reflection.GeneratedProtocolMessageType('ComputingEngineConfEntry', (_message.Message,), dict( - DESCRIPTOR = _SESSIONINFO_COMPUTINGENGINECONFENTRY, - __module__ = 'basic_meta_pb2' + 'ComputingEngineConfEntry' : _reflection.GeneratedProtocolMessageType('ComputingEngineConfEntry', (_message.Message,), { + 'DESCRIPTOR' : _SESSIONINFO_COMPUTINGENGINECONFENTRY, + '__module__' : 'basic_meta_pb2' # @@protoc_insertion_point(class_scope:com.webank.ai.eggroll.api.core.SessionInfo.ComputingEngineConfEntry) - )) + }) , - DESCRIPTOR = _SESSIONINFO, - __module__ = 'basic_meta_pb2' + 'DESCRIPTOR' : _SESSIONINFO, + '__module__' : 'basic_meta_pb2' # @@protoc_insertion_point(class_scope:com.webank.ai.eggroll.api.core.SessionInfo) - )) + }) _sym_db.RegisterMessage(SessionInfo) _sym_db.RegisterMessage(SessionInfo.ComputingEngineConfEntry) - -_SESSIONINFO_COMPUTINGENGINECONFENTRY._options = None +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + _SESSIONINFO_COMPUTINGENGINECONFENTRY._options = None + _SESSIONINFO_COMPUTINGENGINECONFENTRY._serialized_options = b'8\001' + _ENDPOINT._serialized_start=52 + _ENDPOINT._serialized_end=106 + _ENDPOINTS._serialized_start=108 + _ENDPOINTS._serialized_end=180 + _DATA._serialized_start=182 + _DATA._serialized_end=254 + _REPEATEDDATA._serialized_start=256 + _REPEATEDDATA._serialized_end=326 + _CALLREQUEST._serialized_start=328 + _CALLREQUEST._serialized_end=445 + _CALLRESPONSE._serialized_start=448 + _CALLRESPONSE._serialized_end=584 + _JOB._serialized_start=586 + _JOB._serialized_end=620 + _TASK._serialized_start=622 + _TASK._serialized_end=711 + _RESULT._serialized_start=713 + _RESULT._serialized_end=791 + _RETURNSTATUS._serialized_start=793 + _RETURNSTATUS._serialized_end=838 + _SESSIONINFO._serialized_start=841 + _SESSIONINFO._serialized_end=1067 + _SESSIONINFO_COMPUTINGENGINECONFENTRY._serialized_start=1009 + _SESSIONINFO_COMPUTINGENGINECONFENTRY._serialized_end=1067 # @@protoc_insertion_point(module_scope) diff --git a/python/eggroll/roll_site/proto/proxy_pb2.py b/python/eggroll/roll_site/proto/proxy_pb2.py index 611ae1a7c..080201247 100644 --- a/python/eggroll/roll_site/proto/proxy_pb2.py +++ b/python/eggroll/roll_site/proto/proxy_pb2.py @@ -1,11 +1,10 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: proxy.proto - -import sys -_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +"""Generated protocol buffer code.""" from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database @@ -17,53 +16,9 @@ import basic_meta_pb2 as basic__meta__pb2 -DESCRIPTOR = _descriptor.FileDescriptor( - name='proxy.proto', - package='com.webank.ai.eggroll.api.networking.proxy', - syntax='proto3', - serialized_options=None, - serialized_pb=_b('\n\x0bproxy.proto\x12*com.webank.ai.eggroll.api.networking.proxy\x1a\x10\x62\x61sic-meta.proto\"&\n\x05Model\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07\x64\x61taKey\x18\x02 \x01(\t\"X\n\x04Task\x12\x0e\n\x06taskId\x18\x01 \x01(\t\x12@\n\x05model\x18\x02 \x01(\x0b\x32\x31.com.webank.ai.eggroll.api.networking.proxy.Model\"p\n\x05Topic\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07partyId\x18\x02 \x01(\t\x12\x0c\n\x04role\x18\x03 \x01(\t\x12:\n\x08\x63\x61llback\x18\x04 \x01(\x0b\x32(.com.webank.ai.eggroll.api.core.Endpoint\"\x17\n\x07\x43ommand\x12\x0c\n\x04name\x18\x01 \x01(\t\"p\n\x04\x43onf\x12\x16\n\x0eoverallTimeout\x18\x01 \x01(\x03\x12\x1d\n\x15\x63ompletionWaitTimeout\x18\x02 \x01(\x03\x12\x1d\n\x15packetIntervalTimeout\x18\x03 \x01(\x03\x12\x12\n\nmaxRetries\x18\x04 \x01(\x05\"\xfc\x02\n\x08Metadata\x12>\n\x04task\x18\x01 \x01(\x0b\x32\x30.com.webank.ai.eggroll.api.networking.proxy.Task\x12>\n\x03src\x18\x02 \x01(\x0b\x32\x31.com.webank.ai.eggroll.api.networking.proxy.Topic\x12>\n\x03\x64st\x18\x03 \x01(\x0b\x32\x31.com.webank.ai.eggroll.api.networking.proxy.Topic\x12\x44\n\x07\x63ommand\x18\x04 \x01(\x0b\x32\x33.com.webank.ai.eggroll.api.networking.proxy.Command\x12\x10\n\x08operator\x18\x05 \x01(\t\x12\x0b\n\x03seq\x18\x06 \x01(\x03\x12\x0b\n\x03\x61\x63k\x18\x07 \x01(\x03\x12>\n\x04\x63onf\x18\x08 \x01(\x0b\x32\x30.com.webank.ai.eggroll.api.networking.proxy.Conf\"\"\n\x04\x44\x61ta\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c\"\x8e\x01\n\x06Packet\x12\x44\n\x06header\x18\x01 \x01(\x0b\x32\x34.com.webank.ai.eggroll.api.networking.proxy.Metadata\x12>\n\x04\x62ody\x18\x02 \x01(\x0b\x32\x30.com.webank.ai.eggroll.api.networking.proxy.Data\"\xa3\x01\n\x11HeartbeatResponse\x12\x44\n\x06header\x18\x01 \x01(\x0b\x32\x34.com.webank.ai.eggroll.api.networking.proxy.Metadata\x12H\n\toperation\x18\x02 \x01(\x0e\x32\x35.com.webank.ai.eggroll.api.networking.proxy.Operation*O\n\tOperation\x12\t\n\x05START\x10\x00\x12\x07\n\x03RUN\x10\x01\x12\x08\n\x04STOP\x10\x02\x12\x08\n\x04KILL\x10\x03\x12\x0c\n\x08GET_DATA\x10\x04\x12\x0c\n\x08PUT_DATA\x10\x05\x32\xf2\x02\n\x13\x44\x61taTransferService\x12r\n\x04push\x12\x32.com.webank.ai.eggroll.api.networking.proxy.Packet\x1a\x34.com.webank.ai.eggroll.api.networking.proxy.Metadata(\x01\x12r\n\x04pull\x12\x34.com.webank.ai.eggroll.api.networking.proxy.Metadata\x1a\x32.com.webank.ai.eggroll.api.networking.proxy.Packet0\x01\x12s\n\tunaryCall\x12\x32.com.webank.ai.eggroll.api.networking.proxy.Packet\x1a\x32.com.webank.ai.eggroll.api.networking.proxy.Packet2t\n\x0cRouteService\x12\x64\n\x05query\x12\x31.com.webank.ai.eggroll.api.networking.proxy.Topic\x1a(.com.webank.ai.eggroll.api.core.Endpointb\x06proto3') - , - dependencies=[basic__meta__pb2.DESCRIPTOR,]) - -_OPERATION = _descriptor.EnumDescriptor( - name='Operation', - full_name='com.webank.ai.eggroll.api.networking.proxy.Operation', - filename=None, - file=DESCRIPTOR, - values=[ - _descriptor.EnumValueDescriptor( - name='START', index=0, number=0, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='RUN', index=1, number=1, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='STOP', index=2, number=2, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='KILL', index=3, number=3, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='GET_DATA', index=4, number=4, - serialized_options=None, - type=None), - _descriptor.EnumValueDescriptor( - name='PUT_DATA', index=5, number=5, - serialized_options=None, - type=None), - ], - containing_type=None, - serialized_options=None, - serialized_start=1190, - serialized_end=1269, -) -_sym_db.RegisterEnumDescriptor(_OPERATION) +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0bproxy.proto\x12*com.webank.ai.eggroll.api.networking.proxy\x1a\x10\x62\x61sic-meta.proto\"&\n\x05Model\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07\x64\x61taKey\x18\x02 \x01(\t\"X\n\x04Task\x12\x0e\n\x06taskId\x18\x01 \x01(\t\x12@\n\x05model\x18\x02 \x01(\x0b\x32\x31.com.webank.ai.eggroll.api.networking.proxy.Model\"p\n\x05Topic\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07partyId\x18\x02 \x01(\t\x12\x0c\n\x04role\x18\x03 \x01(\t\x12:\n\x08\x63\x61llback\x18\x04 \x01(\x0b\x32(.com.webank.ai.eggroll.api.core.Endpoint\"\x17\n\x07\x43ommand\x12\x0c\n\x04name\x18\x01 \x01(\t\"p\n\x04\x43onf\x12\x16\n\x0eoverallTimeout\x18\x01 \x01(\x03\x12\x1d\n\x15\x63ompletionWaitTimeout\x18\x02 \x01(\x03\x12\x1d\n\x15packetIntervalTimeout\x18\x03 \x01(\x03\x12\x12\n\nmaxRetries\x18\x04 \x01(\x05\"\xfc\x02\n\x08Metadata\x12>\n\x04task\x18\x01 \x01(\x0b\x32\x30.com.webank.ai.eggroll.api.networking.proxy.Task\x12>\n\x03src\x18\x02 \x01(\x0b\x32\x31.com.webank.ai.eggroll.api.networking.proxy.Topic\x12>\n\x03\x64st\x18\x03 \x01(\x0b\x32\x31.com.webank.ai.eggroll.api.networking.proxy.Topic\x12\x44\n\x07\x63ommand\x18\x04 \x01(\x0b\x32\x33.com.webank.ai.eggroll.api.networking.proxy.Command\x12\x10\n\x08operator\x18\x05 \x01(\t\x12\x0b\n\x03seq\x18\x06 \x01(\x03\x12\x0b\n\x03\x61\x63k\x18\x07 \x01(\x03\x12>\n\x04\x63onf\x18\x08 \x01(\x0b\x32\x30.com.webank.ai.eggroll.api.networking.proxy.Conf\"\"\n\x04\x44\x61ta\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c\"\x8e\x01\n\x06Packet\x12\x44\n\x06header\x18\x01 \x01(\x0b\x32\x34.com.webank.ai.eggroll.api.networking.proxy.Metadata\x12>\n\x04\x62ody\x18\x02 \x01(\x0b\x32\x30.com.webank.ai.eggroll.api.networking.proxy.Data\"\xa3\x01\n\x11HeartbeatResponse\x12\x44\n\x06header\x18\x01 \x01(\x0b\x32\x34.com.webank.ai.eggroll.api.networking.proxy.Metadata\x12H\n\toperation\x18\x02 \x01(\x0e\x32\x35.com.webank.ai.eggroll.api.networking.proxy.Operation*O\n\tOperation\x12\t\n\x05START\x10\x00\x12\x07\n\x03RUN\x10\x01\x12\x08\n\x04STOP\x10\x02\x12\x08\n\x04KILL\x10\x03\x12\x0c\n\x08GET_DATA\x10\x04\x12\x0c\n\x08PUT_DATA\x10\x05\x32\xf2\x02\n\x13\x44\x61taTransferService\x12r\n\x04push\x12\x32.com.webank.ai.eggroll.api.networking.proxy.Packet\x1a\x34.com.webank.ai.eggroll.api.networking.proxy.Metadata(\x01\x12r\n\x04pull\x12\x34.com.webank.ai.eggroll.api.networking.proxy.Metadata\x1a\x32.com.webank.ai.eggroll.api.networking.proxy.Packet0\x01\x12s\n\tunaryCall\x12\x32.com.webank.ai.eggroll.api.networking.proxy.Packet\x1a\x32.com.webank.ai.eggroll.api.networking.proxy.Packet2t\n\x0cRouteService\x12\x64\n\x05query\x12\x31.com.webank.ai.eggroll.api.networking.proxy.Topic\x1a(.com.webank.ai.eggroll.api.core.Endpointb\x06proto3') +_OPERATION = DESCRIPTOR.enum_types_by_name['Operation'] Operation = enum_type_wrapper.EnumTypeWrapper(_OPERATION) START = 0 RUN = 1 @@ -73,562 +28,105 @@ PUT_DATA = 5 - -_MODEL = _descriptor.Descriptor( - name='Model', - full_name='com.webank.ai.eggroll.api.networking.proxy.Model', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='com.webank.ai.eggroll.api.networking.proxy.Model.name', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='dataKey', full_name='com.webank.ai.eggroll.api.networking.proxy.Model.dataKey', 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, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=77, - serialized_end=115, -) - - -_TASK = _descriptor.Descriptor( - name='Task', - full_name='com.webank.ai.eggroll.api.networking.proxy.Task', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='taskId', full_name='com.webank.ai.eggroll.api.networking.proxy.Task.taskId', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='model', full_name='com.webank.ai.eggroll.api.networking.proxy.Task.model', index=1, - number=2, 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=117, - serialized_end=205, -) - - -_TOPIC = _descriptor.Descriptor( - name='Topic', - full_name='com.webank.ai.eggroll.api.networking.proxy.Topic', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='com.webank.ai.eggroll.api.networking.proxy.Topic.name', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='partyId', full_name='com.webank.ai.eggroll.api.networking.proxy.Topic.partyId', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='role', full_name='com.webank.ai.eggroll.api.networking.proxy.Topic.role', index=2, - number=3, 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='callback', full_name='com.webank.ai.eggroll.api.networking.proxy.Topic.callback', index=3, - number=4, 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=207, - serialized_end=319, -) - - -_COMMAND = _descriptor.Descriptor( - name='Command', - full_name='com.webank.ai.eggroll.api.networking.proxy.Command', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='name', full_name='com.webank.ai.eggroll.api.networking.proxy.Command.name', 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, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=321, - serialized_end=344, -) - - -_CONF = _descriptor.Descriptor( - name='Conf', - full_name='com.webank.ai.eggroll.api.networking.proxy.Conf', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='overallTimeout', full_name='com.webank.ai.eggroll.api.networking.proxy.Conf.overallTimeout', index=0, - number=1, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='completionWaitTimeout', full_name='com.webank.ai.eggroll.api.networking.proxy.Conf.completionWaitTimeout', index=1, - number=2, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='packetIntervalTimeout', full_name='com.webank.ai.eggroll.api.networking.proxy.Conf.packetIntervalTimeout', index=2, - number=3, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='maxRetries', full_name='com.webank.ai.eggroll.api.networking.proxy.Conf.maxRetries', index=3, - number=4, 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, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=346, - serialized_end=458, -) - - -_METADATA = _descriptor.Descriptor( - name='Metadata', - full_name='com.webank.ai.eggroll.api.networking.proxy.Metadata', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='task', full_name='com.webank.ai.eggroll.api.networking.proxy.Metadata.task', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='src', full_name='com.webank.ai.eggroll.api.networking.proxy.Metadata.src', index=1, - number=2, 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='dst', full_name='com.webank.ai.eggroll.api.networking.proxy.Metadata.dst', index=2, - number=3, 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='command', full_name='com.webank.ai.eggroll.api.networking.proxy.Metadata.command', index=3, - number=4, 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='operator', full_name='com.webank.ai.eggroll.api.networking.proxy.Metadata.operator', index=4, - number=5, 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='seq', full_name='com.webank.ai.eggroll.api.networking.proxy.Metadata.seq', index=5, - number=6, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='ack', full_name='com.webank.ai.eggroll.api.networking.proxy.Metadata.ack', index=6, - number=7, type=3, cpp_type=2, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='conf', full_name='com.webank.ai.eggroll.api.networking.proxy.Metadata.conf', index=7, - number=8, 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=461, - serialized_end=841, -) - - -_DATA = _descriptor.Descriptor( - name='Data', - full_name='com.webank.ai.eggroll.api.networking.proxy.Data', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='key', full_name='com.webank.ai.eggroll.api.networking.proxy.Data.key', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='value', full_name='com.webank.ai.eggroll.api.networking.proxy.Data.value', 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, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=843, - serialized_end=877, -) - - -_PACKET = _descriptor.Descriptor( - name='Packet', - full_name='com.webank.ai.eggroll.api.networking.proxy.Packet', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='header', full_name='com.webank.ai.eggroll.api.networking.proxy.Packet.header', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='body', full_name='com.webank.ai.eggroll.api.networking.proxy.Packet.body', index=1, - number=2, 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), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=880, - serialized_end=1022, -) - - -_HEARTBEATRESPONSE = _descriptor.Descriptor( - name='HeartbeatResponse', - full_name='com.webank.ai.eggroll.api.networking.proxy.HeartbeatResponse', - filename=None, - file=DESCRIPTOR, - containing_type=None, - fields=[ - _descriptor.FieldDescriptor( - name='header', full_name='com.webank.ai.eggroll.api.networking.proxy.HeartbeatResponse.header', 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, - serialized_options=None, file=DESCRIPTOR), - _descriptor.FieldDescriptor( - name='operation', full_name='com.webank.ai.eggroll.api.networking.proxy.HeartbeatResponse.operation', index=1, - number=2, type=14, cpp_type=8, label=1, - has_default_value=False, default_value=0, - message_type=None, enum_type=None, containing_type=None, - is_extension=False, extension_scope=None, - serialized_options=None, file=DESCRIPTOR), - ], - extensions=[ - ], - nested_types=[], - enum_types=[ - ], - serialized_options=None, - is_extendable=False, - syntax='proto3', - extension_ranges=[], - oneofs=[ - ], - serialized_start=1025, - serialized_end=1188, -) - -_TASK.fields_by_name['model'].message_type = _MODEL -_TOPIC.fields_by_name['callback'].message_type = basic__meta__pb2._ENDPOINT -_METADATA.fields_by_name['task'].message_type = _TASK -_METADATA.fields_by_name['src'].message_type = _TOPIC -_METADATA.fields_by_name['dst'].message_type = _TOPIC -_METADATA.fields_by_name['command'].message_type = _COMMAND -_METADATA.fields_by_name['conf'].message_type = _CONF -_PACKET.fields_by_name['header'].message_type = _METADATA -_PACKET.fields_by_name['body'].message_type = _DATA -_HEARTBEATRESPONSE.fields_by_name['header'].message_type = _METADATA -_HEARTBEATRESPONSE.fields_by_name['operation'].enum_type = _OPERATION -DESCRIPTOR.message_types_by_name['Model'] = _MODEL -DESCRIPTOR.message_types_by_name['Task'] = _TASK -DESCRIPTOR.message_types_by_name['Topic'] = _TOPIC -DESCRIPTOR.message_types_by_name['Command'] = _COMMAND -DESCRIPTOR.message_types_by_name['Conf'] = _CONF -DESCRIPTOR.message_types_by_name['Metadata'] = _METADATA -DESCRIPTOR.message_types_by_name['Data'] = _DATA -DESCRIPTOR.message_types_by_name['Packet'] = _PACKET -DESCRIPTOR.message_types_by_name['HeartbeatResponse'] = _HEARTBEATRESPONSE -DESCRIPTOR.enum_types_by_name['Operation'] = _OPERATION -_sym_db.RegisterFileDescriptor(DESCRIPTOR) - -Model = _reflection.GeneratedProtocolMessageType('Model', (_message.Message,), dict( - DESCRIPTOR = _MODEL, - __module__ = 'proxy_pb2' +_MODEL = DESCRIPTOR.message_types_by_name['Model'] +_TASK = DESCRIPTOR.message_types_by_name['Task'] +_TOPIC = DESCRIPTOR.message_types_by_name['Topic'] +_COMMAND = DESCRIPTOR.message_types_by_name['Command'] +_CONF = DESCRIPTOR.message_types_by_name['Conf'] +_METADATA = DESCRIPTOR.message_types_by_name['Metadata'] +_DATA = DESCRIPTOR.message_types_by_name['Data'] +_PACKET = DESCRIPTOR.message_types_by_name['Packet'] +_HEARTBEATRESPONSE = DESCRIPTOR.message_types_by_name['HeartbeatResponse'] +Model = _reflection.GeneratedProtocolMessageType('Model', (_message.Message,), { + 'DESCRIPTOR' : _MODEL, + '__module__' : 'proxy_pb2' # @@protoc_insertion_point(class_scope:com.webank.ai.eggroll.api.networking.proxy.Model) - )) + }) _sym_db.RegisterMessage(Model) -Task = _reflection.GeneratedProtocolMessageType('Task', (_message.Message,), dict( - DESCRIPTOR = _TASK, - __module__ = 'proxy_pb2' +Task = _reflection.GeneratedProtocolMessageType('Task', (_message.Message,), { + 'DESCRIPTOR' : _TASK, + '__module__' : 'proxy_pb2' # @@protoc_insertion_point(class_scope:com.webank.ai.eggroll.api.networking.proxy.Task) - )) + }) _sym_db.RegisterMessage(Task) -Topic = _reflection.GeneratedProtocolMessageType('Topic', (_message.Message,), dict( - DESCRIPTOR = _TOPIC, - __module__ = 'proxy_pb2' +Topic = _reflection.GeneratedProtocolMessageType('Topic', (_message.Message,), { + 'DESCRIPTOR' : _TOPIC, + '__module__' : 'proxy_pb2' # @@protoc_insertion_point(class_scope:com.webank.ai.eggroll.api.networking.proxy.Topic) - )) + }) _sym_db.RegisterMessage(Topic) -Command = _reflection.GeneratedProtocolMessageType('Command', (_message.Message,), dict( - DESCRIPTOR = _COMMAND, - __module__ = 'proxy_pb2' +Command = _reflection.GeneratedProtocolMessageType('Command', (_message.Message,), { + 'DESCRIPTOR' : _COMMAND, + '__module__' : 'proxy_pb2' # @@protoc_insertion_point(class_scope:com.webank.ai.eggroll.api.networking.proxy.Command) - )) + }) _sym_db.RegisterMessage(Command) -Conf = _reflection.GeneratedProtocolMessageType('Conf', (_message.Message,), dict( - DESCRIPTOR = _CONF, - __module__ = 'proxy_pb2' +Conf = _reflection.GeneratedProtocolMessageType('Conf', (_message.Message,), { + 'DESCRIPTOR' : _CONF, + '__module__' : 'proxy_pb2' # @@protoc_insertion_point(class_scope:com.webank.ai.eggroll.api.networking.proxy.Conf) - )) + }) _sym_db.RegisterMessage(Conf) -Metadata = _reflection.GeneratedProtocolMessageType('Metadata', (_message.Message,), dict( - DESCRIPTOR = _METADATA, - __module__ = 'proxy_pb2' +Metadata = _reflection.GeneratedProtocolMessageType('Metadata', (_message.Message,), { + 'DESCRIPTOR' : _METADATA, + '__module__' : 'proxy_pb2' # @@protoc_insertion_point(class_scope:com.webank.ai.eggroll.api.networking.proxy.Metadata) - )) + }) _sym_db.RegisterMessage(Metadata) -Data = _reflection.GeneratedProtocolMessageType('Data', (_message.Message,), dict( - DESCRIPTOR = _DATA, - __module__ = 'proxy_pb2' +Data = _reflection.GeneratedProtocolMessageType('Data', (_message.Message,), { + 'DESCRIPTOR' : _DATA, + '__module__' : 'proxy_pb2' # @@protoc_insertion_point(class_scope:com.webank.ai.eggroll.api.networking.proxy.Data) - )) + }) _sym_db.RegisterMessage(Data) -Packet = _reflection.GeneratedProtocolMessageType('Packet', (_message.Message,), dict( - DESCRIPTOR = _PACKET, - __module__ = 'proxy_pb2' +Packet = _reflection.GeneratedProtocolMessageType('Packet', (_message.Message,), { + 'DESCRIPTOR' : _PACKET, + '__module__' : 'proxy_pb2' # @@protoc_insertion_point(class_scope:com.webank.ai.eggroll.api.networking.proxy.Packet) - )) + }) _sym_db.RegisterMessage(Packet) -HeartbeatResponse = _reflection.GeneratedProtocolMessageType('HeartbeatResponse', (_message.Message,), dict( - DESCRIPTOR = _HEARTBEATRESPONSE, - __module__ = 'proxy_pb2' +HeartbeatResponse = _reflection.GeneratedProtocolMessageType('HeartbeatResponse', (_message.Message,), { + 'DESCRIPTOR' : _HEARTBEATRESPONSE, + '__module__' : 'proxy_pb2' # @@protoc_insertion_point(class_scope:com.webank.ai.eggroll.api.networking.proxy.HeartbeatResponse) - )) + }) _sym_db.RegisterMessage(HeartbeatResponse) - - -_DATATRANSFERSERVICE = _descriptor.ServiceDescriptor( - name='DataTransferService', - full_name='com.webank.ai.eggroll.api.networking.proxy.DataTransferService', - file=DESCRIPTOR, - index=0, - serialized_options=None, - serialized_start=1272, - serialized_end=1642, - methods=[ - _descriptor.MethodDescriptor( - name='push', - full_name='com.webank.ai.eggroll.api.networking.proxy.DataTransferService.push', - index=0, - containing_service=None, - input_type=_PACKET, - output_type=_METADATA, - serialized_options=None, - ), - _descriptor.MethodDescriptor( - name='pull', - full_name='com.webank.ai.eggroll.api.networking.proxy.DataTransferService.pull', - index=1, - containing_service=None, - input_type=_METADATA, - output_type=_PACKET, - serialized_options=None, - ), - _descriptor.MethodDescriptor( - name='unaryCall', - full_name='com.webank.ai.eggroll.api.networking.proxy.DataTransferService.unaryCall', - index=2, - containing_service=None, - input_type=_PACKET, - output_type=_PACKET, - serialized_options=None, - ), -]) -_sym_db.RegisterServiceDescriptor(_DATATRANSFERSERVICE) - -DESCRIPTOR.services_by_name['DataTransferService'] = _DATATRANSFERSERVICE - - -_ROUTESERVICE = _descriptor.ServiceDescriptor( - name='RouteService', - full_name='com.webank.ai.eggroll.api.networking.proxy.RouteService', - file=DESCRIPTOR, - index=1, - serialized_options=None, - serialized_start=1644, - serialized_end=1760, - methods=[ - _descriptor.MethodDescriptor( - name='query', - full_name='com.webank.ai.eggroll.api.networking.proxy.RouteService.query', - index=0, - containing_service=None, - input_type=_TOPIC, - output_type=basic__meta__pb2._ENDPOINT, - serialized_options=None, - ), -]) -_sym_db.RegisterServiceDescriptor(_ROUTESERVICE) - -DESCRIPTOR.services_by_name['RouteService'] = _ROUTESERVICE - +_DATATRANSFERSERVICE = DESCRIPTOR.services_by_name['DataTransferService'] +_ROUTESERVICE = DESCRIPTOR.services_by_name['RouteService'] +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + _OPERATION._serialized_start=1190 + _OPERATION._serialized_end=1269 + _MODEL._serialized_start=77 + _MODEL._serialized_end=115 + _TASK._serialized_start=117 + _TASK._serialized_end=205 + _TOPIC._serialized_start=207 + _TOPIC._serialized_end=319 + _COMMAND._serialized_start=321 + _COMMAND._serialized_end=344 + _CONF._serialized_start=346 + _CONF._serialized_end=458 + _METADATA._serialized_start=461 + _METADATA._serialized_end=841 + _DATA._serialized_start=843 + _DATA._serialized_end=877 + _PACKET._serialized_start=880 + _PACKET._serialized_end=1022 + _HEARTBEATRESPONSE._serialized_start=1025 + _HEARTBEATRESPONSE._serialized_end=1188 + _DATATRANSFERSERVICE._serialized_start=1272 + _DATATRANSFERSERVICE._serialized_end=1642 + _ROUTESERVICE._serialized_start=1644 + _ROUTESERVICE._serialized_end=1760 # @@protoc_insertion_point(module_scope) diff --git a/python/eggroll/roll_site/proto/proxy_pb2_grpc.py b/python/eggroll/roll_site/proto/proxy_pb2_grpc.py index a1b1c7c41..37cecba78 100644 --- a/python/eggroll/roll_site/proto/proxy_pb2_grpc.py +++ b/python/eggroll/roll_site/proto/proxy_pb2_grpc.py @@ -1,4 +1,5 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" import grpc import basic_meta_pb2 as basic__meta__pb2 @@ -6,118 +7,191 @@ class DataTransferServiceStub(object): - """data transfer service - """ + """data transfer service + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.push = channel.stream_unary( + '/com.webank.ai.eggroll.api.networking.proxy.DataTransferService/push', + request_serializer=proxy__pb2.Packet.SerializeToString, + response_deserializer=proxy__pb2.Metadata.FromString, + ) + self.pull = channel.unary_stream( + '/com.webank.ai.eggroll.api.networking.proxy.DataTransferService/pull', + request_serializer=proxy__pb2.Metadata.SerializeToString, + response_deserializer=proxy__pb2.Packet.FromString, + ) + self.unaryCall = channel.unary_unary( + '/com.webank.ai.eggroll.api.networking.proxy.DataTransferService/unaryCall', + request_serializer=proxy__pb2.Packet.SerializeToString, + response_deserializer=proxy__pb2.Packet.FromString, + ) - def __init__(self, channel): - """Constructor. - Args: - channel: A grpc.Channel. +class DataTransferServiceServicer(object): + """data transfer service """ - self.push = channel.stream_unary( - '/com.webank.ai.eggroll.api.networking.proxy.DataTransferService/push', - request_serializer=proxy__pb2.Packet.SerializeToString, - response_deserializer=proxy__pb2.Metadata.FromString, - ) - self.pull = channel.unary_stream( - '/com.webank.ai.eggroll.api.networking.proxy.DataTransferService/pull', - request_serializer=proxy__pb2.Metadata.SerializeToString, - response_deserializer=proxy__pb2.Packet.FromString, - ) - self.unaryCall = channel.unary_unary( - '/com.webank.ai.eggroll.api.networking.proxy.DataTransferService/unaryCall', - request_serializer=proxy__pb2.Packet.SerializeToString, - response_deserializer=proxy__pb2.Packet.FromString, - ) + def push(self, request_iterator, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') -class DataTransferServiceServicer(object): - """data transfer service - """ - - def push(self, request_iterator, context): - # missing associated documentation comment in .proto file - pass - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def pull(self, request, context): - # missing associated documentation comment in .proto file - pass - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def unaryCall(self, request, context): - # missing associated documentation comment in .proto file - pass - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + def pull(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def unaryCall(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') def add_DataTransferServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'push': grpc.stream_unary_rpc_method_handler( - servicer.push, - request_deserializer=proxy__pb2.Packet.FromString, - response_serializer=proxy__pb2.Metadata.SerializeToString, - ), - 'pull': grpc.unary_stream_rpc_method_handler( - servicer.pull, - request_deserializer=proxy__pb2.Metadata.FromString, - response_serializer=proxy__pb2.Packet.SerializeToString, - ), - 'unaryCall': grpc.unary_unary_rpc_method_handler( - servicer.unaryCall, - request_deserializer=proxy__pb2.Packet.FromString, - response_serializer=proxy__pb2.Packet.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'com.webank.ai.eggroll.api.networking.proxy.DataTransferService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + 'push': grpc.stream_unary_rpc_method_handler( + servicer.push, + request_deserializer=proxy__pb2.Packet.FromString, + response_serializer=proxy__pb2.Metadata.SerializeToString, + ), + 'pull': grpc.unary_stream_rpc_method_handler( + servicer.pull, + request_deserializer=proxy__pb2.Metadata.FromString, + response_serializer=proxy__pb2.Packet.SerializeToString, + ), + 'unaryCall': grpc.unary_unary_rpc_method_handler( + servicer.unaryCall, + request_deserializer=proxy__pb2.Packet.FromString, + response_serializer=proxy__pb2.Packet.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'com.webank.ai.eggroll.api.networking.proxy.DataTransferService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class DataTransferService(object): + """data transfer service + """ + + @staticmethod + def push(request_iterator, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.stream_unary(request_iterator, target, '/com.webank.ai.eggroll.api.networking.proxy.DataTransferService/push', + proxy__pb2.Packet.SerializeToString, + proxy__pb2.Metadata.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def pull(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_stream(request, target, '/com.webank.ai.eggroll.api.networking.proxy.DataTransferService/pull', + proxy__pb2.Metadata.SerializeToString, + proxy__pb2.Packet.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def unaryCall(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/com.webank.ai.eggroll.api.networking.proxy.DataTransferService/unaryCall', + proxy__pb2.Packet.SerializeToString, + proxy__pb2.Packet.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) class RouteServiceStub(object): - # missing associated documentation comment in .proto file - pass + """Missing associated documentation comment in .proto file.""" - def __init__(self, channel): - """Constructor. + def __init__(self, channel): + """Constructor. - Args: - channel: A grpc.Channel. - """ - self.query = channel.unary_unary( - '/com.webank.ai.eggroll.api.networking.proxy.RouteService/query', - request_serializer=proxy__pb2.Topic.SerializeToString, - response_deserializer=basic__meta__pb2.Endpoint.FromString, - ) + Args: + channel: A grpc.Channel. + """ + self.query = channel.unary_unary( + '/com.webank.ai.eggroll.api.networking.proxy.RouteService/query', + request_serializer=proxy__pb2.Topic.SerializeToString, + response_deserializer=basic__meta__pb2.Endpoint.FromString, + ) class RouteServiceServicer(object): - # missing associated documentation comment in .proto file - pass + """Missing associated documentation comment in .proto file.""" - def query(self, request, context): - # missing associated documentation comment in .proto file - pass - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') + def query(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') def add_RouteServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'query': grpc.unary_unary_rpc_method_handler( - servicer.query, - request_deserializer=proxy__pb2.Topic.FromString, - response_serializer=basic__meta__pb2.Endpoint.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'com.webank.ai.eggroll.api.networking.proxy.RouteService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) + rpc_method_handlers = { + 'query': grpc.unary_unary_rpc_method_handler( + servicer.query, + request_deserializer=proxy__pb2.Topic.FromString, + response_serializer=basic__meta__pb2.Endpoint.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'com.webank.ai.eggroll.api.networking.proxy.RouteService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class RouteService(object): + """Missing associated documentation comment in .proto file.""" + + @staticmethod + def query(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/com.webank.ai.eggroll.api.networking.proxy.RouteService/query', + proxy__pb2.Topic.SerializeToString, + basic__meta__pb2.Endpoint.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/requirements.txt b/requirements.txt index f0a464335..54b75b52b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,15 +1,15 @@ cachetools>=3.0.0 -cloudpickle==0.6.1 -grpcio==1.24.3 -grpcio-tools==1.24.3 -lmdb==0.98 -numba==0.50.0 -llvmlite==0.33.0 +cloudpickle==2.1.0 +grpcio==1.46.3 +grpcio-tools==1.46.3 +lmdb==1.3.0 +numba==0.53.0 +llvmlite==0.36.0 numpy>=1.17.0 pandas>=1.0.4 -protobuf==3.6.1 +protobuf==3.19.4 psutil>=5.7.0 -pyarrow==0.17.1 +pyarrow==6.0.1 python-rocksdb==0.7.0 pystack-debugger>=0.9.0 -mmh3=3.0.0 \ No newline at end of file +mmh3==3.0.0