You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

debug_grpc_pb2_grpc.py 12 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  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 mindinsight.debugger.proto import debug_grpc_pb2 as mindinsight_dot_debugger_dot_proto_dot_debug__grpc__pb2
  5. from mindinsight.debugger.proto import ms_graph_pb2 as mindinsight_dot_debugger_dot_proto_dot_ms__graph__pb2
  6. class EventListenerStub(object):
  7. """Missing associated documentation comment in .proto file."""
  8. def __init__(self, channel):
  9. """Constructor.
  10. Args:
  11. channel: A grpc.Channel.
  12. """
  13. self.WaitCMD = channel.unary_unary(
  14. '/debugger.EventListener/WaitCMD',
  15. request_serializer=mindinsight_dot_debugger_dot_proto_dot_debug__grpc__pb2.Metadata.SerializeToString,
  16. response_deserializer=mindinsight_dot_debugger_dot_proto_dot_debug__grpc__pb2.EventReply.FromString,
  17. )
  18. self.SendMetadata = channel.unary_unary(
  19. '/debugger.EventListener/SendMetadata',
  20. request_serializer=mindinsight_dot_debugger_dot_proto_dot_debug__grpc__pb2.Metadata.SerializeToString,
  21. response_deserializer=mindinsight_dot_debugger_dot_proto_dot_debug__grpc__pb2.EventReply.FromString,
  22. )
  23. self.SendGraph = channel.stream_unary(
  24. '/debugger.EventListener/SendGraph',
  25. request_serializer=mindinsight_dot_debugger_dot_proto_dot_debug__grpc__pb2.Chunk.SerializeToString,
  26. response_deserializer=mindinsight_dot_debugger_dot_proto_dot_debug__grpc__pb2.EventReply.FromString,
  27. )
  28. self.SendTensors = channel.stream_unary(
  29. '/debugger.EventListener/SendTensors',
  30. request_serializer=mindinsight_dot_debugger_dot_proto_dot_ms__graph__pb2.TensorProto.SerializeToString,
  31. response_deserializer=mindinsight_dot_debugger_dot_proto_dot_debug__grpc__pb2.EventReply.FromString,
  32. )
  33. self.SendWatchpointHits = channel.stream_unary(
  34. '/debugger.EventListener/SendWatchpointHits',
  35. request_serializer=mindinsight_dot_debugger_dot_proto_dot_debug__grpc__pb2.WatchpointHit.SerializeToString,
  36. response_deserializer=mindinsight_dot_debugger_dot_proto_dot_debug__grpc__pb2.EventReply.FromString,
  37. )
  38. self.SendMultiGraphs = channel.stream_unary(
  39. '/debugger.EventListener/SendMultiGraphs',
  40. request_serializer=mindinsight_dot_debugger_dot_proto_dot_debug__grpc__pb2.Chunk.SerializeToString,
  41. response_deserializer=mindinsight_dot_debugger_dot_proto_dot_debug__grpc__pb2.EventReply.FromString,
  42. )
  43. class EventListenerServicer(object):
  44. """Missing associated documentation comment in .proto file."""
  45. def WaitCMD(self, request, context):
  46. """Missing associated documentation comment in .proto file."""
  47. context.set_code(grpc.StatusCode.UNIMPLEMENTED)
  48. context.set_details('Method not implemented!')
  49. raise NotImplementedError('Method not implemented!')
  50. def SendMetadata(self, request, context):
  51. """Missing associated documentation comment in .proto file."""
  52. context.set_code(grpc.StatusCode.UNIMPLEMENTED)
  53. context.set_details('Method not implemented!')
  54. raise NotImplementedError('Method not implemented!')
  55. def SendGraph(self, request_iterator, context):
  56. """Missing associated documentation comment in .proto file."""
  57. context.set_code(grpc.StatusCode.UNIMPLEMENTED)
  58. context.set_details('Method not implemented!')
  59. raise NotImplementedError('Method not implemented!')
  60. def SendTensors(self, request_iterator, context):
  61. """Missing associated documentation comment in .proto file."""
  62. context.set_code(grpc.StatusCode.UNIMPLEMENTED)
  63. context.set_details('Method not implemented!')
  64. raise NotImplementedError('Method not implemented!')
  65. def SendWatchpointHits(self, request_iterator, context):
  66. """Missing associated documentation comment in .proto file."""
  67. context.set_code(grpc.StatusCode.UNIMPLEMENTED)
  68. context.set_details('Method not implemented!')
  69. raise NotImplementedError('Method not implemented!')
  70. def SendMultiGraphs(self, request_iterator, context):
  71. """Missing associated documentation comment in .proto file."""
  72. context.set_code(grpc.StatusCode.UNIMPLEMENTED)
  73. context.set_details('Method not implemented!')
  74. raise NotImplementedError('Method not implemented!')
  75. def add_EventListenerServicer_to_server(servicer, server):
  76. rpc_method_handlers = {
  77. 'WaitCMD': grpc.unary_unary_rpc_method_handler(
  78. servicer.WaitCMD,
  79. request_deserializer=mindinsight_dot_debugger_dot_proto_dot_debug__grpc__pb2.Metadata.FromString,
  80. response_serializer=mindinsight_dot_debugger_dot_proto_dot_debug__grpc__pb2.EventReply.SerializeToString,
  81. ),
  82. 'SendMetadata': grpc.unary_unary_rpc_method_handler(
  83. servicer.SendMetadata,
  84. request_deserializer=mindinsight_dot_debugger_dot_proto_dot_debug__grpc__pb2.Metadata.FromString,
  85. response_serializer=mindinsight_dot_debugger_dot_proto_dot_debug__grpc__pb2.EventReply.SerializeToString,
  86. ),
  87. 'SendGraph': grpc.stream_unary_rpc_method_handler(
  88. servicer.SendGraph,
  89. request_deserializer=mindinsight_dot_debugger_dot_proto_dot_debug__grpc__pb2.Chunk.FromString,
  90. response_serializer=mindinsight_dot_debugger_dot_proto_dot_debug__grpc__pb2.EventReply.SerializeToString,
  91. ),
  92. 'SendTensors': grpc.stream_unary_rpc_method_handler(
  93. servicer.SendTensors,
  94. request_deserializer=mindinsight_dot_debugger_dot_proto_dot_ms__graph__pb2.TensorProto.FromString,
  95. response_serializer=mindinsight_dot_debugger_dot_proto_dot_debug__grpc__pb2.EventReply.SerializeToString,
  96. ),
  97. 'SendWatchpointHits': grpc.stream_unary_rpc_method_handler(
  98. servicer.SendWatchpointHits,
  99. request_deserializer=mindinsight_dot_debugger_dot_proto_dot_debug__grpc__pb2.WatchpointHit.FromString,
  100. response_serializer=mindinsight_dot_debugger_dot_proto_dot_debug__grpc__pb2.EventReply.SerializeToString,
  101. ),
  102. 'SendMultiGraphs': grpc.stream_unary_rpc_method_handler(
  103. servicer.SendMultiGraphs,
  104. request_deserializer=mindinsight_dot_debugger_dot_proto_dot_debug__grpc__pb2.Chunk.FromString,
  105. response_serializer=mindinsight_dot_debugger_dot_proto_dot_debug__grpc__pb2.EventReply.SerializeToString,
  106. ),
  107. }
  108. generic_handler = grpc.method_handlers_generic_handler(
  109. 'debugger.EventListener', rpc_method_handlers)
  110. server.add_generic_rpc_handlers((generic_handler,))
  111. # This class is part of an EXPERIMENTAL API.
  112. class EventListener(object):
  113. """Missing associated documentation comment in .proto file."""
  114. @staticmethod
  115. def WaitCMD(request,
  116. target,
  117. options=(),
  118. channel_credentials=None,
  119. call_credentials=None,
  120. insecure=False,
  121. compression=None,
  122. wait_for_ready=None,
  123. timeout=None,
  124. metadata=None):
  125. return grpc.experimental.unary_unary(request, target, '/debugger.EventListener/WaitCMD',
  126. mindinsight_dot_debugger_dot_proto_dot_debug__grpc__pb2.Metadata.SerializeToString,
  127. mindinsight_dot_debugger_dot_proto_dot_debug__grpc__pb2.EventReply.FromString,
  128. options, channel_credentials,
  129. insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
  130. @staticmethod
  131. def SendMetadata(request,
  132. target,
  133. options=(),
  134. channel_credentials=None,
  135. call_credentials=None,
  136. insecure=False,
  137. compression=None,
  138. wait_for_ready=None,
  139. timeout=None,
  140. metadata=None):
  141. return grpc.experimental.unary_unary(request, target, '/debugger.EventListener/SendMetadata',
  142. mindinsight_dot_debugger_dot_proto_dot_debug__grpc__pb2.Metadata.SerializeToString,
  143. mindinsight_dot_debugger_dot_proto_dot_debug__grpc__pb2.EventReply.FromString,
  144. options, channel_credentials,
  145. insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
  146. @staticmethod
  147. def SendGraph(request_iterator,
  148. target,
  149. options=(),
  150. channel_credentials=None,
  151. call_credentials=None,
  152. insecure=False,
  153. compression=None,
  154. wait_for_ready=None,
  155. timeout=None,
  156. metadata=None):
  157. return grpc.experimental.stream_unary(request_iterator, target, '/debugger.EventListener/SendGraph',
  158. mindinsight_dot_debugger_dot_proto_dot_debug__grpc__pb2.Chunk.SerializeToString,
  159. mindinsight_dot_debugger_dot_proto_dot_debug__grpc__pb2.EventReply.FromString,
  160. options, channel_credentials,
  161. insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
  162. @staticmethod
  163. def SendTensors(request_iterator,
  164. target,
  165. options=(),
  166. channel_credentials=None,
  167. call_credentials=None,
  168. insecure=False,
  169. compression=None,
  170. wait_for_ready=None,
  171. timeout=None,
  172. metadata=None):
  173. return grpc.experimental.stream_unary(request_iterator, target, '/debugger.EventListener/SendTensors',
  174. mindinsight_dot_debugger_dot_proto_dot_ms__graph__pb2.TensorProto.SerializeToString,
  175. mindinsight_dot_debugger_dot_proto_dot_debug__grpc__pb2.EventReply.FromString,
  176. options, channel_credentials,
  177. insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
  178. @staticmethod
  179. def SendWatchpointHits(request_iterator,
  180. target,
  181. options=(),
  182. channel_credentials=None,
  183. call_credentials=None,
  184. insecure=False,
  185. compression=None,
  186. wait_for_ready=None,
  187. timeout=None,
  188. metadata=None):
  189. return grpc.experimental.stream_unary(request_iterator, target, '/debugger.EventListener/SendWatchpointHits',
  190. mindinsight_dot_debugger_dot_proto_dot_debug__grpc__pb2.WatchpointHit.SerializeToString,
  191. mindinsight_dot_debugger_dot_proto_dot_debug__grpc__pb2.EventReply.FromString,
  192. options, channel_credentials,
  193. insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
  194. @staticmethod
  195. def SendMultiGraphs(request_iterator,
  196. target,
  197. options=(),
  198. channel_credentials=None,
  199. call_credentials=None,
  200. insecure=False,
  201. compression=None,
  202. wait_for_ready=None,
  203. timeout=None,
  204. metadata=None):
  205. return grpc.experimental.stream_unary(request_iterator, target, '/debugger.EventListener/SendMultiGraphs',
  206. mindinsight_dot_debugger_dot_proto_dot_debug__grpc__pb2.Chunk.SerializeToString,
  207. mindinsight_dot_debugger_dot_proto_dot_debug__grpc__pb2.EventReply.FromString,
  208. options, channel_credentials,
  209. insecure, call_credentials, compression, wait_for_ready, timeout, metadata)