server_service_pb2.py 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. # -*- coding: utf-8 -*-
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: easyfl/pb/server_service.proto
  4. """Generated protocol buffer code."""
  5. from google.protobuf import descriptor as _descriptor
  6. from google.protobuf import descriptor_pool as _descriptor_pool
  7. from google.protobuf import message as _message
  8. from google.protobuf import reflection as _reflection
  9. from google.protobuf import symbol_database as _symbol_database
  10. # @@protoc_insertion_point(imports)
  11. _sym_db = _symbol_database.Default()
  12. from easyfl.pb import common_pb2 as easyfl_dot_pb_dot_common__pb2
  13. DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1e\x65\x61syfl/pb/server_service.proto\x12\teasyfl.pb\x1a\x16\x65\x61syfl/pb/common.proto\"p\n\rUploadRequest\x12\x0f\n\x07task_id\x18\x01 \x01(\t\x12\x10\n\x08round_id\x18\x02 \x01(\x05\x12\x11\n\tclient_id\x18\x03 \x01(\t\x12)\n\x07\x63ontent\x18\x04 \x01(\x0b\x32\x18.easyfl.pb.UploadContent\"\x8b\x01\n\rUploadContent\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\x12!\n\x04type\x18\x02 \x01(\x0e\x32\x13.easyfl.pb.DataType\x12\x11\n\tdata_size\x18\x03 \x01(\x03\x12\'\n\x06metric\x18\x04 \x01(\x0b\x32\x17.easyfl.pb.ClientMetric\x12\r\n\x05\x65xtra\x18\x63 \x01(\x0c\"-\n\x0bPerformance\x12\x10\n\x08\x61\x63\x63uracy\x18\x01 \x01(\x02\x12\x0c\n\x04loss\x18\x02 \x01(\x02\"3\n\x0eUploadResponse\x12!\n\x06status\x18\x01 \x01(\x0b\x32\x11.easyfl.pb.Status\"W\n\nRunRequest\x12\r\n\x05model\x18\x01 \x01(\x0c\x12\"\n\x07\x63lients\x18\x02 \x03(\x0b\x32\x11.easyfl.pb.Client\x12\x16\n\x0e\x65tcd_addresses\x18\x03 \x01(\t\"0\n\x0bRunResponse\x12!\n\x06status\x18\x01 \x01(\x0b\x32\x11.easyfl.pb.Status\"\r\n\x0bStopRequest\"1\n\x0cStopResponse\x12!\n\x06status\x18\x01 \x01(\x0b\x32\x11.easyfl.pb.Status\";\n\x06\x43lient\x12\x11\n\tclient_id\x18\x01 \x01(\t\x12\x0f\n\x07\x61\x64\x64ress\x18\x02 \x01(\t\x12\r\n\x05index\x18\x03 \x01(\x05\x32\xc3\x01\n\rServerService\x12?\n\x06Upload\x12\x18.easyfl.pb.UploadRequest\x1a\x19.easyfl.pb.UploadResponse\"\x00\x12\x36\n\x03Run\x12\x15.easyfl.pb.RunRequest\x1a\x16.easyfl.pb.RunResponse\"\x00\x12\x39\n\x04Stop\x12\x16.easyfl.pb.StopRequest\x1a\x17.easyfl.pb.StopResponse\"\x00\x62\x06proto3')
  14. _UPLOADREQUEST = DESCRIPTOR.message_types_by_name['UploadRequest']
  15. _UPLOADCONTENT = DESCRIPTOR.message_types_by_name['UploadContent']
  16. _PERFORMANCE = DESCRIPTOR.message_types_by_name['Performance']
  17. _UPLOADRESPONSE = DESCRIPTOR.message_types_by_name['UploadResponse']
  18. _RUNREQUEST = DESCRIPTOR.message_types_by_name['RunRequest']
  19. _RUNRESPONSE = DESCRIPTOR.message_types_by_name['RunResponse']
  20. _STOPREQUEST = DESCRIPTOR.message_types_by_name['StopRequest']
  21. _STOPRESPONSE = DESCRIPTOR.message_types_by_name['StopResponse']
  22. _CLIENT = DESCRIPTOR.message_types_by_name['Client']
  23. UploadRequest = _reflection.GeneratedProtocolMessageType('UploadRequest', (_message.Message,), {
  24. 'DESCRIPTOR' : _UPLOADREQUEST,
  25. '__module__' : 'easyfl.pb.server_service_pb2'
  26. # @@protoc_insertion_point(class_scope:easyfl.pb.UploadRequest)
  27. })
  28. _sym_db.RegisterMessage(UploadRequest)
  29. UploadContent = _reflection.GeneratedProtocolMessageType('UploadContent', (_message.Message,), {
  30. 'DESCRIPTOR' : _UPLOADCONTENT,
  31. '__module__' : 'easyfl.pb.server_service_pb2'
  32. # @@protoc_insertion_point(class_scope:easyfl.pb.UploadContent)
  33. })
  34. _sym_db.RegisterMessage(UploadContent)
  35. Performance = _reflection.GeneratedProtocolMessageType('Performance', (_message.Message,), {
  36. 'DESCRIPTOR' : _PERFORMANCE,
  37. '__module__' : 'easyfl.pb.server_service_pb2'
  38. # @@protoc_insertion_point(class_scope:easyfl.pb.Performance)
  39. })
  40. _sym_db.RegisterMessage(Performance)
  41. UploadResponse = _reflection.GeneratedProtocolMessageType('UploadResponse', (_message.Message,), {
  42. 'DESCRIPTOR' : _UPLOADRESPONSE,
  43. '__module__' : 'easyfl.pb.server_service_pb2'
  44. # @@protoc_insertion_point(class_scope:easyfl.pb.UploadResponse)
  45. })
  46. _sym_db.RegisterMessage(UploadResponse)
  47. RunRequest = _reflection.GeneratedProtocolMessageType('RunRequest', (_message.Message,), {
  48. 'DESCRIPTOR' : _RUNREQUEST,
  49. '__module__' : 'easyfl.pb.server_service_pb2'
  50. # @@protoc_insertion_point(class_scope:easyfl.pb.RunRequest)
  51. })
  52. _sym_db.RegisterMessage(RunRequest)
  53. RunResponse = _reflection.GeneratedProtocolMessageType('RunResponse', (_message.Message,), {
  54. 'DESCRIPTOR' : _RUNRESPONSE,
  55. '__module__' : 'easyfl.pb.server_service_pb2'
  56. # @@protoc_insertion_point(class_scope:easyfl.pb.RunResponse)
  57. })
  58. _sym_db.RegisterMessage(RunResponse)
  59. StopRequest = _reflection.GeneratedProtocolMessageType('StopRequest', (_message.Message,), {
  60. 'DESCRIPTOR' : _STOPREQUEST,
  61. '__module__' : 'easyfl.pb.server_service_pb2'
  62. # @@protoc_insertion_point(class_scope:easyfl.pb.StopRequest)
  63. })
  64. _sym_db.RegisterMessage(StopRequest)
  65. StopResponse = _reflection.GeneratedProtocolMessageType('StopResponse', (_message.Message,), {
  66. 'DESCRIPTOR' : _STOPRESPONSE,
  67. '__module__' : 'easyfl.pb.server_service_pb2'
  68. # @@protoc_insertion_point(class_scope:easyfl.pb.StopResponse)
  69. })
  70. _sym_db.RegisterMessage(StopResponse)
  71. Client = _reflection.GeneratedProtocolMessageType('Client', (_message.Message,), {
  72. 'DESCRIPTOR' : _CLIENT,
  73. '__module__' : 'easyfl.pb.server_service_pb2'
  74. # @@protoc_insertion_point(class_scope:easyfl.pb.Client)
  75. })
  76. _sym_db.RegisterMessage(Client)
  77. _SERVERSERVICE = DESCRIPTOR.services_by_name['ServerService']
  78. if _descriptor._USE_C_DESCRIPTORS == False:
  79. DESCRIPTOR._options = None
  80. _UPLOADREQUEST._serialized_start=69
  81. _UPLOADREQUEST._serialized_end=181
  82. _UPLOADCONTENT._serialized_start=184
  83. _UPLOADCONTENT._serialized_end=323
  84. _PERFORMANCE._serialized_start=325
  85. _PERFORMANCE._serialized_end=370
  86. _UPLOADRESPONSE._serialized_start=372
  87. _UPLOADRESPONSE._serialized_end=423
  88. _RUNREQUEST._serialized_start=425
  89. _RUNREQUEST._serialized_end=512
  90. _RUNRESPONSE._serialized_start=514
  91. _RUNRESPONSE._serialized_end=562
  92. _STOPREQUEST._serialized_start=564
  93. _STOPREQUEST._serialized_end=577
  94. _STOPRESPONSE._serialized_start=579
  95. _STOPRESPONSE._serialized_end=628
  96. _CLIENT._serialized_start=630
  97. _CLIENT._serialized_end=689
  98. _SERVERSERVICE._serialized_start=692
  99. _SERVERSERVICE._serialized_end=887
  100. # @@protoc_insertion_point(module_scope)