def_pb2_grpc.py 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  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. import def_pb2 as def__pb2
  5. class StreamServerStub(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.OpenImageStream = channel.unary_stream(
  13. '/JetStream.StreamServer/OpenImageStream',
  14. request_serializer=def__pb2.RequestCmd.SerializeToString,
  15. response_deserializer=def__pb2.ResImage.FromString,
  16. )
  17. self.OpenMeasureDataStream = channel.unary_stream(
  18. '/JetStream.StreamServer/OpenMeasureDataStream',
  19. request_serializer=def__pb2.RequestCmd.SerializeToString,
  20. response_deserializer=def__pb2.MeasureInfo.FromString,
  21. )
  22. self.Detect = channel.unary_unary(
  23. '/JetStream.StreamServer/Detect',
  24. request_serializer=def__pb2.RequestCmd.SerializeToString,
  25. response_deserializer=def__pb2.ResFrame.FromString,
  26. )
  27. self.CloseImageStream = channel.unary_unary(
  28. '/JetStream.StreamServer/CloseImageStream',
  29. request_serializer=def__pb2.RequestCmd.SerializeToString,
  30. response_deserializer=def__pb2.Response.FromString,
  31. )
  32. self.CloseMeasureDataStream = channel.unary_unary(
  33. '/JetStream.StreamServer/CloseMeasureDataStream',
  34. request_serializer=def__pb2.RequestCmd.SerializeToString,
  35. response_deserializer=def__pb2.Response.FromString,
  36. )
  37. self.GetCloud = channel.unary_unary(
  38. '/JetStream.StreamServer/GetCloud',
  39. request_serializer=def__pb2.RequestCmd.SerializeToString,
  40. response_deserializer=def__pb2.ResCloud.FromString,
  41. )
  42. self.GetImage = channel.unary_unary(
  43. '/JetStream.StreamServer/GetImage',
  44. request_serializer=def__pb2.RequestCmd.SerializeToString,
  45. response_deserializer=def__pb2.ResImage.FromString,
  46. )
  47. class StreamServerServicer(object):
  48. """Missing associated documentation comment in .proto file."""
  49. def OpenImageStream(self, request, 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 OpenMeasureDataStream(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 Detect(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 CloseImageStream(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 CloseMeasureDataStream(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 GetCloud(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 GetImage(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 add_StreamServerServicer_to_server(servicer, server):
  85. rpc_method_handlers = {
  86. 'OpenImageStream': grpc.unary_stream_rpc_method_handler(
  87. servicer.OpenImageStream,
  88. request_deserializer=def__pb2.RequestCmd.FromString,
  89. response_serializer=def__pb2.ResImage.SerializeToString,
  90. ),
  91. 'OpenMeasureDataStream': grpc.unary_stream_rpc_method_handler(
  92. servicer.OpenMeasureDataStream,
  93. request_deserializer=def__pb2.RequestCmd.FromString,
  94. response_serializer=def__pb2.MeasureInfo.SerializeToString,
  95. ),
  96. 'Detect': grpc.unary_unary_rpc_method_handler(
  97. servicer.Detect,
  98. request_deserializer=def__pb2.RequestCmd.FromString,
  99. response_serializer=def__pb2.ResFrame.SerializeToString,
  100. ),
  101. 'CloseImageStream': grpc.unary_unary_rpc_method_handler(
  102. servicer.CloseImageStream,
  103. request_deserializer=def__pb2.RequestCmd.FromString,
  104. response_serializer=def__pb2.Response.SerializeToString,
  105. ),
  106. 'CloseMeasureDataStream': grpc.unary_unary_rpc_method_handler(
  107. servicer.CloseMeasureDataStream,
  108. request_deserializer=def__pb2.RequestCmd.FromString,
  109. response_serializer=def__pb2.Response.SerializeToString,
  110. ),
  111. 'GetCloud': grpc.unary_unary_rpc_method_handler(
  112. servicer.GetCloud,
  113. request_deserializer=def__pb2.RequestCmd.FromString,
  114. response_serializer=def__pb2.ResCloud.SerializeToString,
  115. ),
  116. 'GetImage': grpc.unary_unary_rpc_method_handler(
  117. servicer.GetImage,
  118. request_deserializer=def__pb2.RequestCmd.FromString,
  119. response_serializer=def__pb2.ResImage.SerializeToString,
  120. ),
  121. }
  122. generic_handler = grpc.method_handlers_generic_handler(
  123. 'JetStream.StreamServer', rpc_method_handlers)
  124. server.add_generic_rpc_handlers((generic_handler,))
  125. # This class is part of an EXPERIMENTAL API.
  126. class StreamServer(object):
  127. """Missing associated documentation comment in .proto file."""
  128. @staticmethod
  129. def OpenImageStream(request,
  130. target,
  131. options=(),
  132. channel_credentials=None,
  133. call_credentials=None,
  134. insecure=False,
  135. compression=None,
  136. wait_for_ready=None,
  137. timeout=None,
  138. metadata=None):
  139. return grpc.experimental.unary_stream(request, target, '/JetStream.StreamServer/OpenImageStream',
  140. def__pb2.RequestCmd.SerializeToString,
  141. def__pb2.ResImage.FromString,
  142. options, channel_credentials,
  143. insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
  144. @staticmethod
  145. def OpenMeasureDataStream(request,
  146. target,
  147. options=(),
  148. channel_credentials=None,
  149. call_credentials=None,
  150. insecure=False,
  151. compression=None,
  152. wait_for_ready=None,
  153. timeout=None,
  154. metadata=None):
  155. return grpc.experimental.unary_stream(request, target, '/JetStream.StreamServer/OpenMeasureDataStream',
  156. def__pb2.RequestCmd.SerializeToString,
  157. def__pb2.MeasureInfo.FromString,
  158. options, channel_credentials,
  159. insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
  160. @staticmethod
  161. def Detect(request,
  162. target,
  163. options=(),
  164. channel_credentials=None,
  165. call_credentials=None,
  166. insecure=False,
  167. compression=None,
  168. wait_for_ready=None,
  169. timeout=None,
  170. metadata=None):
  171. return grpc.experimental.unary_unary(request, target, '/JetStream.StreamServer/Detect',
  172. def__pb2.RequestCmd.SerializeToString,
  173. def__pb2.ResFrame.FromString,
  174. options, channel_credentials,
  175. insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
  176. @staticmethod
  177. def CloseImageStream(request,
  178. target,
  179. options=(),
  180. channel_credentials=None,
  181. call_credentials=None,
  182. insecure=False,
  183. compression=None,
  184. wait_for_ready=None,
  185. timeout=None,
  186. metadata=None):
  187. return grpc.experimental.unary_unary(request, target, '/JetStream.StreamServer/CloseImageStream',
  188. def__pb2.RequestCmd.SerializeToString,
  189. def__pb2.Response.FromString,
  190. options, channel_credentials,
  191. insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
  192. @staticmethod
  193. def CloseMeasureDataStream(request,
  194. target,
  195. options=(),
  196. channel_credentials=None,
  197. call_credentials=None,
  198. insecure=False,
  199. compression=None,
  200. wait_for_ready=None,
  201. timeout=None,
  202. metadata=None):
  203. return grpc.experimental.unary_unary(request, target, '/JetStream.StreamServer/CloseMeasureDataStream',
  204. def__pb2.RequestCmd.SerializeToString,
  205. def__pb2.Response.FromString,
  206. options, channel_credentials,
  207. insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
  208. @staticmethod
  209. def GetCloud(request,
  210. target,
  211. options=(),
  212. channel_credentials=None,
  213. call_credentials=None,
  214. insecure=False,
  215. compression=None,
  216. wait_for_ready=None,
  217. timeout=None,
  218. metadata=None):
  219. return grpc.experimental.unary_unary(request, target, '/JetStream.StreamServer/GetCloud',
  220. def__pb2.RequestCmd.SerializeToString,
  221. def__pb2.ResCloud.FromString,
  222. options, channel_credentials,
  223. insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
  224. @staticmethod
  225. def GetImage(request,
  226. target,
  227. options=(),
  228. channel_credentials=None,
  229. call_credentials=None,
  230. insecure=False,
  231. compression=None,
  232. wait_for_ready=None,
  233. timeout=None,
  234. metadata=None):
  235. return grpc.experimental.unary_unary(request, target, '/JetStream.StreamServer/GetImage',
  236. def__pb2.RequestCmd.SerializeToString,
  237. def__pb2.ResImage.FromString,
  238. options, channel_credentials,
  239. insecure, call_credentials, compression, wait_for_ready, timeout, metadata)