common_pb2.py 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. # -*- coding: utf-8 -*-
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: easyfl/pb/common.proto
  4. """Generated protocol buffer code."""
  5. from google.protobuf.internal import enum_type_wrapper
  6. from google.protobuf import descriptor as _descriptor
  7. from google.protobuf import descriptor_pool as _descriptor_pool
  8. from google.protobuf import message as _message
  9. from google.protobuf import reflection as _reflection
  10. from google.protobuf import symbol_database as _symbol_database
  11. # @@protoc_insertion_point(imports)
  12. _sym_db = _symbol_database.Default()
  13. DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x16\x65\x61syfl/pb/common.proto\x12\teasyfl.pb\">\n\x06Status\x12#\n\x04\x63ode\x18\x01 \x01(\x0e\x32\x15.easyfl.pb.StatusCode\x12\x0f\n\x07message\x18\x02 \x01(\t\"4\n\nTaskMetric\x12\x0f\n\x07task_id\x18\x01 \x01(\t\x12\x15\n\rconfiguration\x18\x02 \x01(\t\"\xcf\x02\n\x0bRoundMetric\x12\x0f\n\x07task_id\x18\x01 \x01(\t\x12\x10\n\x08round_id\x18\x02 \x01(\x05\x12\x15\n\rtest_accuracy\x18\x03 \x01(\x02\x12\x11\n\ttest_loss\x18\x04 \x01(\x02\x12\x12\n\nround_time\x18\x05 \x01(\x02\x12\x12\n\ntrain_time\x18\x06 \x01(\x02\x12\x11\n\ttest_time\x18\x07 \x01(\x02\x12\x1d\n\x15train_distribute_time\x18\x08 \x01(\x02\x12\x1c\n\x14test_distribute_time\x18\t \x01(\x02\x12\x19\n\x11train_upload_size\x18\n \x01(\x02\x12\x1b\n\x13train_download_size\x18\x0b \x01(\x02\x12\x18\n\x10test_upload_size\x18\x0c \x01(\x02\x12\x1a\n\x12test_download_size\x18\r \x01(\x02\x12\r\n\x05\x65xtra\x18\x0e \x01(\t\"\xf3\x02\n\x0c\x43lientMetric\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\x16\n\x0etrain_accuracy\x18\x04 \x03(\x02\x12\x12\n\ntrain_loss\x18\x05 \x03(\x02\x12\x15\n\rtest_accuracy\x18\x06 \x01(\x02\x12\x11\n\ttest_loss\x18\x07 \x01(\x02\x12\x12\n\ntrain_time\x18\x08 \x01(\x02\x12\x11\n\ttest_time\x18\t \x01(\x02\x12\x19\n\x11train_upload_time\x18\n \x01(\x02\x12\x18\n\x10test_upload_time\x18\x0b \x01(\x02\x12\x19\n\x11train_upload_size\x18\x0c \x01(\x02\x12\x1b\n\x13train_download_size\x18\r \x01(\x02\x12\x18\n\x10test_upload_size\x18\x0e \x01(\x02\x12\x1a\n\x12test_download_size\x18\x0f \x01(\x02\x12\r\n\x05\x65xtra\x18\x10 \x01(\t*\x82\x01\n\nStatusCode\x12\t\n\x05SC_OK\x10\x00\x12\x0e\n\nSC_UNKNOWN\x10\x01\x12\x16\n\x12SC_INVALID_REQUEST\x10\x02\x12\x18\n\x14SC_DEADLINE_EXCEEDED\x10\x03\x12\x10\n\x0cSC_NOT_FOUND\x10\x04\x12\x15\n\x11SC_ALREADY_EXISTS\x10\x05*;\n\x08\x44\x61taType\x12\x14\n\x10\x44\x41TA_TYPE_PARAMS\x10\x00\x12\x19\n\x15\x44\x41TA_TYPE_PERFORMANCE\x10\x01\x62\x06proto3')
  14. _STATUSCODE = DESCRIPTOR.enum_types_by_name['StatusCode']
  15. StatusCode = enum_type_wrapper.EnumTypeWrapper(_STATUSCODE)
  16. _DATATYPE = DESCRIPTOR.enum_types_by_name['DataType']
  17. DataType = enum_type_wrapper.EnumTypeWrapper(_DATATYPE)
  18. SC_OK = 0
  19. SC_UNKNOWN = 1
  20. SC_INVALID_REQUEST = 2
  21. SC_DEADLINE_EXCEEDED = 3
  22. SC_NOT_FOUND = 4
  23. SC_ALREADY_EXISTS = 5
  24. DATA_TYPE_PARAMS = 0
  25. DATA_TYPE_PERFORMANCE = 1
  26. _STATUS = DESCRIPTOR.message_types_by_name['Status']
  27. _TASKMETRIC = DESCRIPTOR.message_types_by_name['TaskMetric']
  28. _ROUNDMETRIC = DESCRIPTOR.message_types_by_name['RoundMetric']
  29. _CLIENTMETRIC = DESCRIPTOR.message_types_by_name['ClientMetric']
  30. Status = _reflection.GeneratedProtocolMessageType('Status', (_message.Message,), {
  31. 'DESCRIPTOR' : _STATUS,
  32. '__module__' : 'easyfl.pb.common_pb2'
  33. # @@protoc_insertion_point(class_scope:easyfl.pb.Status)
  34. })
  35. _sym_db.RegisterMessage(Status)
  36. TaskMetric = _reflection.GeneratedProtocolMessageType('TaskMetric', (_message.Message,), {
  37. 'DESCRIPTOR' : _TASKMETRIC,
  38. '__module__' : 'easyfl.pb.common_pb2'
  39. # @@protoc_insertion_point(class_scope:easyfl.pb.TaskMetric)
  40. })
  41. _sym_db.RegisterMessage(TaskMetric)
  42. RoundMetric = _reflection.GeneratedProtocolMessageType('RoundMetric', (_message.Message,), {
  43. 'DESCRIPTOR' : _ROUNDMETRIC,
  44. '__module__' : 'easyfl.pb.common_pb2'
  45. # @@protoc_insertion_point(class_scope:easyfl.pb.RoundMetric)
  46. })
  47. _sym_db.RegisterMessage(RoundMetric)
  48. ClientMetric = _reflection.GeneratedProtocolMessageType('ClientMetric', (_message.Message,), {
  49. 'DESCRIPTOR' : _CLIENTMETRIC,
  50. '__module__' : 'easyfl.pb.common_pb2'
  51. # @@protoc_insertion_point(class_scope:easyfl.pb.ClientMetric)
  52. })
  53. _sym_db.RegisterMessage(ClientMetric)
  54. if _descriptor._USE_C_DESCRIPTORS == False:
  55. DESCRIPTOR._options = None
  56. _STATUSCODE._serialized_start=868
  57. _STATUSCODE._serialized_end=998
  58. _DATATYPE._serialized_start=1000
  59. _DATATYPE._serialized_end=1059
  60. _STATUS._serialized_start=37
  61. _STATUS._serialized_end=99
  62. _TASKMETRIC._serialized_start=101
  63. _TASKMETRIC._serialized_end=153
  64. _ROUNDMETRIC._serialized_start=156
  65. _ROUNDMETRIC._serialized_end=491
  66. _CLIENTMETRIC._serialized_start=494
  67. _CLIENTMETRIC._serialized_end=865
  68. # @@protoc_insertion_point(module_scope)