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 9.7 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
  2. import grpc
  3. from mindinsight.debugger.proto import debug_grpc_pb2 as mindinsight_dot_debugger_dot_proto_dot_debug__grpc__pb2
  4. from mindinsight.debugger.proto import ms_graph_pb2 as mindinsight_dot_debugger_dot_proto_dot_ms__graph__pb2
  5. class EventListenerStub(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.WaitCMD = channel.unary_unary(
  13. '/debugger.EventListener/WaitCMD',
  14. request_serializer=mindinsight_dot_debugger_dot_proto_dot_debug__grpc__pb2.Metadata.SerializeToString,
  15. response_deserializer=mindinsight_dot_debugger_dot_proto_dot_debug__grpc__pb2.EventReply.FromString,
  16. )
  17. self.SendMetadata = channel.unary_unary(
  18. '/debugger.EventListener/SendMetadata',
  19. request_serializer=mindinsight_dot_debugger_dot_proto_dot_debug__grpc__pb2.Metadata.SerializeToString,
  20. response_deserializer=mindinsight_dot_debugger_dot_proto_dot_debug__grpc__pb2.EventReply.FromString,
  21. )
  22. self.SendGraph = channel.stream_unary(
  23. '/debugger.EventListener/SendGraph',
  24. request_serializer=mindinsight_dot_debugger_dot_proto_dot_debug__grpc__pb2.Chunk.SerializeToString,
  25. response_deserializer=mindinsight_dot_debugger_dot_proto_dot_debug__grpc__pb2.EventReply.FromString,
  26. )
  27. self.SendTensors = channel.stream_unary(
  28. '/debugger.EventListener/SendTensors',
  29. request_serializer=mindinsight_dot_debugger_dot_proto_dot_ms__graph__pb2.TensorProto.SerializeToString,
  30. response_deserializer=mindinsight_dot_debugger_dot_proto_dot_debug__grpc__pb2.EventReply.FromString,
  31. )
  32. self.SendWatchpointHits = channel.stream_unary(
  33. '/debugger.EventListener/SendWatchpointHits',
  34. request_serializer=mindinsight_dot_debugger_dot_proto_dot_debug__grpc__pb2.WatchpointHit.SerializeToString,
  35. response_deserializer=mindinsight_dot_debugger_dot_proto_dot_debug__grpc__pb2.EventReply.FromString,
  36. )
  37. class EventListenerServicer(object):
  38. """Missing associated documentation comment in .proto file"""
  39. def WaitCMD(self, request, context):
  40. """Missing associated documentation comment in .proto file"""
  41. context.set_code(grpc.StatusCode.UNIMPLEMENTED)
  42. context.set_details('Method not implemented!')
  43. raise NotImplementedError('Method not implemented!')
  44. def SendMetadata(self, request, context):
  45. """Missing associated documentation comment in .proto file"""
  46. context.set_code(grpc.StatusCode.UNIMPLEMENTED)
  47. context.set_details('Method not implemented!')
  48. raise NotImplementedError('Method not implemented!')
  49. def SendGraph(self, request_iterator, context):
  50. """Missing associated documentation comment in .proto file"""
  51. context.set_code(grpc.StatusCode.UNIMPLEMENTED)
  52. context.set_details('Method not implemented!')
  53. raise NotImplementedError('Method not implemented!')
  54. def SendTensors(self, request_iterator, 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 SendWatchpointHits(self, request_iterator, 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 add_EventListenerServicer_to_server(servicer, server):
  65. rpc_method_handlers = {
  66. 'WaitCMD': grpc.unary_unary_rpc_method_handler(
  67. servicer.WaitCMD,
  68. request_deserializer=mindinsight_dot_debugger_dot_proto_dot_debug__grpc__pb2.Metadata.FromString,
  69. response_serializer=mindinsight_dot_debugger_dot_proto_dot_debug__grpc__pb2.EventReply.SerializeToString,
  70. ),
  71. 'SendMetadata': grpc.unary_unary_rpc_method_handler(
  72. servicer.SendMetadata,
  73. request_deserializer=mindinsight_dot_debugger_dot_proto_dot_debug__grpc__pb2.Metadata.FromString,
  74. response_serializer=mindinsight_dot_debugger_dot_proto_dot_debug__grpc__pb2.EventReply.SerializeToString,
  75. ),
  76. 'SendGraph': grpc.stream_unary_rpc_method_handler(
  77. servicer.SendGraph,
  78. request_deserializer=mindinsight_dot_debugger_dot_proto_dot_debug__grpc__pb2.Chunk.FromString,
  79. response_serializer=mindinsight_dot_debugger_dot_proto_dot_debug__grpc__pb2.EventReply.SerializeToString,
  80. ),
  81. 'SendTensors': grpc.stream_unary_rpc_method_handler(
  82. servicer.SendTensors,
  83. request_deserializer=mindinsight_dot_debugger_dot_proto_dot_ms__graph__pb2.TensorProto.FromString,
  84. response_serializer=mindinsight_dot_debugger_dot_proto_dot_debug__grpc__pb2.EventReply.SerializeToString,
  85. ),
  86. 'SendWatchpointHits': grpc.stream_unary_rpc_method_handler(
  87. servicer.SendWatchpointHits,
  88. request_deserializer=mindinsight_dot_debugger_dot_proto_dot_debug__grpc__pb2.WatchpointHit.FromString,
  89. response_serializer=mindinsight_dot_debugger_dot_proto_dot_debug__grpc__pb2.EventReply.SerializeToString,
  90. ),
  91. }
  92. generic_handler = grpc.method_handlers_generic_handler(
  93. 'debugger.EventListener', rpc_method_handlers)
  94. server.add_generic_rpc_handlers((generic_handler,))
  95. # This class is part of an EXPERIMENTAL API.
  96. class EventListener(object):
  97. """Missing associated documentation comment in .proto file"""
  98. @staticmethod
  99. def WaitCMD(request,
  100. target,
  101. options=(),
  102. channel_credentials=None,
  103. call_credentials=None,
  104. compression=None,
  105. wait_for_ready=None,
  106. timeout=None,
  107. metadata=None):
  108. return grpc.experimental.unary_unary(request, target, '/debugger.EventListener/WaitCMD',
  109. mindinsight_dot_debugger_dot_proto_dot_debug__grpc__pb2.Metadata.SerializeToString,
  110. mindinsight_dot_debugger_dot_proto_dot_debug__grpc__pb2.EventReply.FromString,
  111. options, channel_credentials,
  112. call_credentials, compression, wait_for_ready, timeout, metadata)
  113. @staticmethod
  114. def SendMetadata(request,
  115. target,
  116. options=(),
  117. channel_credentials=None,
  118. call_credentials=None,
  119. compression=None,
  120. wait_for_ready=None,
  121. timeout=None,
  122. metadata=None):
  123. return grpc.experimental.unary_unary(request, target, '/debugger.EventListener/SendMetadata',
  124. mindinsight_dot_debugger_dot_proto_dot_debug__grpc__pb2.Metadata.SerializeToString,
  125. mindinsight_dot_debugger_dot_proto_dot_debug__grpc__pb2.EventReply.FromString,
  126. options, channel_credentials,
  127. call_credentials, compression, wait_for_ready, timeout, metadata)
  128. @staticmethod
  129. def SendGraph(request_iterator,
  130. target,
  131. options=(),
  132. channel_credentials=None,
  133. call_credentials=None,
  134. compression=None,
  135. wait_for_ready=None,
  136. timeout=None,
  137. metadata=None):
  138. return grpc.experimental.stream_unary(request_iterator, target, '/debugger.EventListener/SendGraph',
  139. mindinsight_dot_debugger_dot_proto_dot_debug__grpc__pb2.Chunk.SerializeToString,
  140. mindinsight_dot_debugger_dot_proto_dot_debug__grpc__pb2.EventReply.FromString,
  141. options, channel_credentials,
  142. call_credentials, compression, wait_for_ready, timeout, metadata)
  143. @staticmethod
  144. def SendTensors(request_iterator,
  145. target,
  146. options=(),
  147. channel_credentials=None,
  148. call_credentials=None,
  149. compression=None,
  150. wait_for_ready=None,
  151. timeout=None,
  152. metadata=None):
  153. return grpc.experimental.stream_unary(request_iterator, target, '/debugger.EventListener/SendTensors',
  154. mindinsight_dot_debugger_dot_proto_dot_ms__graph__pb2.TensorProto.SerializeToString,
  155. mindinsight_dot_debugger_dot_proto_dot_debug__grpc__pb2.EventReply.FromString,
  156. options, channel_credentials,
  157. call_credentials, compression, wait_for_ready, timeout, metadata)
  158. @staticmethod
  159. def SendWatchpointHits(request_iterator,
  160. target,
  161. options=(),
  162. channel_credentials=None,
  163. call_credentials=None,
  164. compression=None,
  165. wait_for_ready=None,
  166. timeout=None,
  167. metadata=None):
  168. return grpc.experimental.stream_unary(request_iterator, target, '/debugger.EventListener/SendWatchpointHits',
  169. mindinsight_dot_debugger_dot_proto_dot_debug__grpc__pb2.WatchpointHit.SerializeToString,
  170. mindinsight_dot_debugger_dot_proto_dot_debug__grpc__pb2.EventReply.FromString,
  171. options, channel_credentials,
  172. call_credentials, compression, wait_for_ready, timeout, metadata)