tracking_service_pb2_grpc.py 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
  1. # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
  2. """Client and server classes corresponding to protobuf-defined services."""
  3. import grpc
  4. from easyfl.pb import tracking_service_pb2 as easyfl_dot_pb_dot_tracking__service__pb2
  5. class TrackingServiceStub(object):
  6. """Missing associated documentation comment in .proto file."""
  7. def __init__(self, channel):
  8. """Constructor.
  9. Args:
  10. channel: A grpc.Channel.
  11. """
  12. self.TrackTaskMetric = channel.unary_unary(
  13. '/easyfl.pb.TrackingService/TrackTaskMetric',
  14. request_serializer=easyfl_dot_pb_dot_tracking__service__pb2.TrackTaskMetricRequest.SerializeToString,
  15. response_deserializer=easyfl_dot_pb_dot_tracking__service__pb2.TrackTaskMetricResponse.FromString,
  16. )
  17. self.TrackRoundMetric = channel.unary_unary(
  18. '/easyfl.pb.TrackingService/TrackRoundMetric',
  19. request_serializer=easyfl_dot_pb_dot_tracking__service__pb2.TrackRoundMetricRequest.SerializeToString,
  20. response_deserializer=easyfl_dot_pb_dot_tracking__service__pb2.TrackRoundMetricResponse.FromString,
  21. )
  22. self.TrackClientMetric = channel.unary_unary(
  23. '/easyfl.pb.TrackingService/TrackClientMetric',
  24. request_serializer=easyfl_dot_pb_dot_tracking__service__pb2.TrackClientMetricRequest.SerializeToString,
  25. response_deserializer=easyfl_dot_pb_dot_tracking__service__pb2.TrackClientMetricResponse.FromString,
  26. )
  27. self.TrackClientTrainMetric = channel.unary_unary(
  28. '/easyfl.pb.TrackingService/TrackClientTrainMetric',
  29. request_serializer=easyfl_dot_pb_dot_tracking__service__pb2.TrackClientTrainMetricRequest.SerializeToString,
  30. response_deserializer=easyfl_dot_pb_dot_tracking__service__pb2.TrackClientTrainMetricResponse.FromString,
  31. )
  32. self.TrackClientTestMetric = channel.unary_unary(
  33. '/easyfl.pb.TrackingService/TrackClientTestMetric',
  34. request_serializer=easyfl_dot_pb_dot_tracking__service__pb2.TrackClientTestMetricRequest.SerializeToString,
  35. response_deserializer=easyfl_dot_pb_dot_tracking__service__pb2.TrackClientTestMetricResponse.FromString,
  36. )
  37. self.GetRoundMetrics = channel.unary_unary(
  38. '/easyfl.pb.TrackingService/GetRoundMetrics',
  39. request_serializer=easyfl_dot_pb_dot_tracking__service__pb2.GetRoundMetricsRequest.SerializeToString,
  40. response_deserializer=easyfl_dot_pb_dot_tracking__service__pb2.GetRoundMetricsResponse.FromString,
  41. )
  42. self.GetClientMetrics = channel.unary_unary(
  43. '/easyfl.pb.TrackingService/GetClientMetrics',
  44. request_serializer=easyfl_dot_pb_dot_tracking__service__pb2.GetClientMetricsRequest.SerializeToString,
  45. response_deserializer=easyfl_dot_pb_dot_tracking__service__pb2.GetClientMetricsResponse.FromString,
  46. )
  47. self.GetRoundTrainTestTime = channel.unary_unary(
  48. '/easyfl.pb.TrackingService/GetRoundTrainTestTime',
  49. request_serializer=easyfl_dot_pb_dot_tracking__service__pb2.GetRoundTrainTestTimeRequest.SerializeToString,
  50. response_deserializer=easyfl_dot_pb_dot_tracking__service__pb2.GetRoundTrainTestTimeResponse.FromString,
  51. )
  52. class TrackingServiceServicer(object):
  53. """Missing associated documentation comment in .proto file."""
  54. def TrackTaskMetric(self, request, context):
  55. """Missing associated documentation comment in .proto file."""
  56. context.set_code(grpc.StatusCode.UNIMPLEMENTED)
  57. context.set_details('Method not implemented!')
  58. raise NotImplementedError('Method not implemented!')
  59. def TrackRoundMetric(self, request, context):
  60. """Missing associated documentation comment in .proto file."""
  61. context.set_code(grpc.StatusCode.UNIMPLEMENTED)
  62. context.set_details('Method not implemented!')
  63. raise NotImplementedError('Method not implemented!')
  64. def TrackClientMetric(self, request, context):
  65. """Missing associated documentation comment in .proto file."""
  66. context.set_code(grpc.StatusCode.UNIMPLEMENTED)
  67. context.set_details('Method not implemented!')
  68. raise NotImplementedError('Method not implemented!')
  69. def TrackClientTrainMetric(self, request, context):
  70. """Missing associated documentation comment in .proto file."""
  71. context.set_code(grpc.StatusCode.UNIMPLEMENTED)
  72. context.set_details('Method not implemented!')
  73. raise NotImplementedError('Method not implemented!')
  74. def TrackClientTestMetric(self, request, context):
  75. """Missing associated documentation comment in .proto file."""
  76. context.set_code(grpc.StatusCode.UNIMPLEMENTED)
  77. context.set_details('Method not implemented!')
  78. raise NotImplementedError('Method not implemented!')
  79. def GetRoundMetrics(self, request, context):
  80. """Missing associated documentation comment in .proto file."""
  81. context.set_code(grpc.StatusCode.UNIMPLEMENTED)
  82. context.set_details('Method not implemented!')
  83. raise NotImplementedError('Method not implemented!')
  84. def GetClientMetrics(self, request, context):
  85. """Missing associated documentation comment in .proto file."""
  86. context.set_code(grpc.StatusCode.UNIMPLEMENTED)
  87. context.set_details('Method not implemented!')
  88. raise NotImplementedError('Method not implemented!')
  89. def GetRoundTrainTestTime(self, request, context):
  90. """Missing associated documentation comment in .proto file."""
  91. context.set_code(grpc.StatusCode.UNIMPLEMENTED)
  92. context.set_details('Method not implemented!')
  93. raise NotImplementedError('Method not implemented!')
  94. def add_TrackingServiceServicer_to_server(servicer, server):
  95. rpc_method_handlers = {
  96. 'TrackTaskMetric': grpc.unary_unary_rpc_method_handler(
  97. servicer.TrackTaskMetric,
  98. request_deserializer=easyfl_dot_pb_dot_tracking__service__pb2.TrackTaskMetricRequest.FromString,
  99. response_serializer=easyfl_dot_pb_dot_tracking__service__pb2.TrackTaskMetricResponse.SerializeToString,
  100. ),
  101. 'TrackRoundMetric': grpc.unary_unary_rpc_method_handler(
  102. servicer.TrackRoundMetric,
  103. request_deserializer=easyfl_dot_pb_dot_tracking__service__pb2.TrackRoundMetricRequest.FromString,
  104. response_serializer=easyfl_dot_pb_dot_tracking__service__pb2.TrackRoundMetricResponse.SerializeToString,
  105. ),
  106. 'TrackClientMetric': grpc.unary_unary_rpc_method_handler(
  107. servicer.TrackClientMetric,
  108. request_deserializer=easyfl_dot_pb_dot_tracking__service__pb2.TrackClientMetricRequest.FromString,
  109. response_serializer=easyfl_dot_pb_dot_tracking__service__pb2.TrackClientMetricResponse.SerializeToString,
  110. ),
  111. 'TrackClientTrainMetric': grpc.unary_unary_rpc_method_handler(
  112. servicer.TrackClientTrainMetric,
  113. request_deserializer=easyfl_dot_pb_dot_tracking__service__pb2.TrackClientTrainMetricRequest.FromString,
  114. response_serializer=easyfl_dot_pb_dot_tracking__service__pb2.TrackClientTrainMetricResponse.SerializeToString,
  115. ),
  116. 'TrackClientTestMetric': grpc.unary_unary_rpc_method_handler(
  117. servicer.TrackClientTestMetric,
  118. request_deserializer=easyfl_dot_pb_dot_tracking__service__pb2.TrackClientTestMetricRequest.FromString,
  119. response_serializer=easyfl_dot_pb_dot_tracking__service__pb2.TrackClientTestMetricResponse.SerializeToString,
  120. ),
  121. 'GetRoundMetrics': grpc.unary_unary_rpc_method_handler(
  122. servicer.GetRoundMetrics,
  123. request_deserializer=easyfl_dot_pb_dot_tracking__service__pb2.GetRoundMetricsRequest.FromString,
  124. response_serializer=easyfl_dot_pb_dot_tracking__service__pb2.GetRoundMetricsResponse.SerializeToString,
  125. ),
  126. 'GetClientMetrics': grpc.unary_unary_rpc_method_handler(
  127. servicer.GetClientMetrics,
  128. request_deserializer=easyfl_dot_pb_dot_tracking__service__pb2.GetClientMetricsRequest.FromString,
  129. response_serializer=easyfl_dot_pb_dot_tracking__service__pb2.GetClientMetricsResponse.SerializeToString,
  130. ),
  131. 'GetRoundTrainTestTime': grpc.unary_unary_rpc_method_handler(
  132. servicer.GetRoundTrainTestTime,
  133. request_deserializer=easyfl_dot_pb_dot_tracking__service__pb2.GetRoundTrainTestTimeRequest.FromString,
  134. response_serializer=easyfl_dot_pb_dot_tracking__service__pb2.GetRoundTrainTestTimeResponse.SerializeToString,
  135. ),
  136. }
  137. generic_handler = grpc.method_handlers_generic_handler(
  138. 'easyfl.pb.TrackingService', rpc_method_handlers)
  139. server.add_generic_rpc_handlers((generic_handler,))
  140. # This class is part of an EXPERIMENTAL API.
  141. class TrackingService(object):
  142. """Missing associated documentation comment in .proto file."""
  143. @staticmethod
  144. def TrackTaskMetric(request,
  145. target,
  146. options=(),
  147. channel_credentials=None,
  148. call_credentials=None,
  149. insecure=False,
  150. compression=None,
  151. wait_for_ready=None,
  152. timeout=None,
  153. metadata=None):
  154. return grpc.experimental.unary_unary(request, target, '/easyfl.pb.TrackingService/TrackTaskMetric',
  155. easyfl_dot_pb_dot_tracking__service__pb2.TrackTaskMetricRequest.SerializeToString,
  156. easyfl_dot_pb_dot_tracking__service__pb2.TrackTaskMetricResponse.FromString,
  157. options, channel_credentials,
  158. insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
  159. @staticmethod
  160. def TrackRoundMetric(request,
  161. target,
  162. options=(),
  163. channel_credentials=None,
  164. call_credentials=None,
  165. insecure=False,
  166. compression=None,
  167. wait_for_ready=None,
  168. timeout=None,
  169. metadata=None):
  170. return grpc.experimental.unary_unary(request, target, '/easyfl.pb.TrackingService/TrackRoundMetric',
  171. easyfl_dot_pb_dot_tracking__service__pb2.TrackRoundMetricRequest.SerializeToString,
  172. easyfl_dot_pb_dot_tracking__service__pb2.TrackRoundMetricResponse.FromString,
  173. options, channel_credentials,
  174. insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
  175. @staticmethod
  176. def TrackClientMetric(request,
  177. target,
  178. options=(),
  179. channel_credentials=None,
  180. call_credentials=None,
  181. insecure=False,
  182. compression=None,
  183. wait_for_ready=None,
  184. timeout=None,
  185. metadata=None):
  186. return grpc.experimental.unary_unary(request, target, '/easyfl.pb.TrackingService/TrackClientMetric',
  187. easyfl_dot_pb_dot_tracking__service__pb2.TrackClientMetricRequest.SerializeToString,
  188. easyfl_dot_pb_dot_tracking__service__pb2.TrackClientMetricResponse.FromString,
  189. options, channel_credentials,
  190. insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
  191. @staticmethod
  192. def TrackClientTrainMetric(request,
  193. target,
  194. options=(),
  195. channel_credentials=None,
  196. call_credentials=None,
  197. insecure=False,
  198. compression=None,
  199. wait_for_ready=None,
  200. timeout=None,
  201. metadata=None):
  202. return grpc.experimental.unary_unary(request, target, '/easyfl.pb.TrackingService/TrackClientTrainMetric',
  203. easyfl_dot_pb_dot_tracking__service__pb2.TrackClientTrainMetricRequest.SerializeToString,
  204. easyfl_dot_pb_dot_tracking__service__pb2.TrackClientTrainMetricResponse.FromString,
  205. options, channel_credentials,
  206. insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
  207. @staticmethod
  208. def TrackClientTestMetric(request,
  209. target,
  210. options=(),
  211. channel_credentials=None,
  212. call_credentials=None,
  213. insecure=False,
  214. compression=None,
  215. wait_for_ready=None,
  216. timeout=None,
  217. metadata=None):
  218. return grpc.experimental.unary_unary(request, target, '/easyfl.pb.TrackingService/TrackClientTestMetric',
  219. easyfl_dot_pb_dot_tracking__service__pb2.TrackClientTestMetricRequest.SerializeToString,
  220. easyfl_dot_pb_dot_tracking__service__pb2.TrackClientTestMetricResponse.FromString,
  221. options, channel_credentials,
  222. insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
  223. @staticmethod
  224. def GetRoundMetrics(request,
  225. target,
  226. options=(),
  227. channel_credentials=None,
  228. call_credentials=None,
  229. insecure=False,
  230. compression=None,
  231. wait_for_ready=None,
  232. timeout=None,
  233. metadata=None):
  234. return grpc.experimental.unary_unary(request, target, '/easyfl.pb.TrackingService/GetRoundMetrics',
  235. easyfl_dot_pb_dot_tracking__service__pb2.GetRoundMetricsRequest.SerializeToString,
  236. easyfl_dot_pb_dot_tracking__service__pb2.GetRoundMetricsResponse.FromString,
  237. options, channel_credentials,
  238. insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
  239. @staticmethod
  240. def GetClientMetrics(request,
  241. target,
  242. options=(),
  243. channel_credentials=None,
  244. call_credentials=None,
  245. insecure=False,
  246. compression=None,
  247. wait_for_ready=None,
  248. timeout=None,
  249. metadata=None):
  250. return grpc.experimental.unary_unary(request, target, '/easyfl.pb.TrackingService/GetClientMetrics',
  251. easyfl_dot_pb_dot_tracking__service__pb2.GetClientMetricsRequest.SerializeToString,
  252. easyfl_dot_pb_dot_tracking__service__pb2.GetClientMetricsResponse.FromString,
  253. options, channel_credentials,
  254. insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
  255. @staticmethod
  256. def GetRoundTrainTestTime(request,
  257. target,
  258. options=(),
  259. channel_credentials=None,
  260. call_credentials=None,
  261. insecure=False,
  262. compression=None,
  263. wait_for_ready=None,
  264. timeout=None,
  265. metadata=None):
  266. return grpc.experimental.unary_unary(request, target, '/easyfl.pb.TrackingService/GetRoundTrainTestTime',
  267. easyfl_dot_pb_dot_tracking__service__pb2.GetRoundTrainTestTimeRequest.SerializeToString,
  268. easyfl_dot_pb_dot_tracking__service__pb2.GetRoundTrainTestTimeResponse.FromString,
  269. options, channel_credentials,
  270. insecure, call_credentials, compression, wait_for_ready, timeout, metadata)