def_pb2_grpc.py 13 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. 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.CloseImageStream = channel.unary_unary(
  23. '/JetStream.StreamServer/CloseImageStream',
  24. request_serializer=def__pb2.RequestCmd.SerializeToString,
  25. response_deserializer=def__pb2.Response.FromString,
  26. )
  27. self.CloseMeasureDataStream = channel.unary_unary(
  28. '/JetStream.StreamServer/CloseMeasureDataStream',
  29. request_serializer=def__pb2.RequestCmd.SerializeToString,
  30. response_deserializer=def__pb2.Response.FromString,
  31. )
  32. self.GetCloud = channel.unary_unary(
  33. '/JetStream.StreamServer/GetCloud',
  34. request_serializer=def__pb2.RequestCmd.SerializeToString,
  35. response_deserializer=def__pb2.ResCloud.FromString,
  36. )
  37. self.GetImage = channel.unary_unary(
  38. '/JetStream.StreamServer/GetImage',
  39. request_serializer=def__pb2.RequestCmd.SerializeToString,
  40. response_deserializer=def__pb2.ResImage.FromString,
  41. )
  42. self.setTofTransformation = channel.unary_unary(
  43. '/JetStream.StreamServer/setTofTransformation',
  44. request_serializer=def__pb2.RequestCmd.SerializeToString,
  45. response_deserializer=def__pb2.Response.FromString,
  46. )
  47. self.saveTofTransformation = channel.unary_unary(
  48. '/JetStream.StreamServer/saveTofTransformation',
  49. request_serializer=def__pb2.RequestCmd.SerializeToString,
  50. response_deserializer=def__pb2.Response.FromString,
  51. )
  52. class StreamServerServicer(object):
  53. """Missing associated documentation comment in .proto file."""
  54. def OpenImageStream(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 OpenMeasureDataStream(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 setTofTransformation(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 saveTofTransformation(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_StreamServerServicer_to_server(servicer, server):
  95. rpc_method_handlers = {
  96. 'OpenImageStream': grpc.unary_stream_rpc_method_handler(
  97. servicer.OpenImageStream,
  98. request_deserializer=def__pb2.RequestCmd.FromString,
  99. response_serializer=def__pb2.ResImage.SerializeToString,
  100. ),
  101. 'OpenMeasureDataStream': grpc.unary_stream_rpc_method_handler(
  102. servicer.OpenMeasureDataStream,
  103. request_deserializer=def__pb2.RequestCmd.FromString,
  104. response_serializer=def__pb2.MeasureInfo.SerializeToString,
  105. ),
  106. 'CloseImageStream': grpc.unary_unary_rpc_method_handler(
  107. servicer.CloseImageStream,
  108. request_deserializer=def__pb2.RequestCmd.FromString,
  109. response_serializer=def__pb2.Response.SerializeToString,
  110. ),
  111. 'CloseMeasureDataStream': grpc.unary_unary_rpc_method_handler(
  112. servicer.CloseMeasureDataStream,
  113. request_deserializer=def__pb2.RequestCmd.FromString,
  114. response_serializer=def__pb2.Response.SerializeToString,
  115. ),
  116. 'GetCloud': grpc.unary_unary_rpc_method_handler(
  117. servicer.GetCloud,
  118. request_deserializer=def__pb2.RequestCmd.FromString,
  119. response_serializer=def__pb2.ResCloud.SerializeToString,
  120. ),
  121. 'GetImage': grpc.unary_unary_rpc_method_handler(
  122. servicer.GetImage,
  123. request_deserializer=def__pb2.RequestCmd.FromString,
  124. response_serializer=def__pb2.ResImage.SerializeToString,
  125. ),
  126. 'setTofTransformation': grpc.unary_unary_rpc_method_handler(
  127. servicer.setTofTransformation,
  128. request_deserializer=def__pb2.RequestCmd.FromString,
  129. response_serializer=def__pb2.Response.SerializeToString,
  130. ),
  131. 'saveTofTransformation': grpc.unary_unary_rpc_method_handler(
  132. servicer.saveTofTransformation,
  133. request_deserializer=def__pb2.RequestCmd.FromString,
  134. response_serializer=def__pb2.Response.SerializeToString,
  135. ),
  136. }
  137. generic_handler = grpc.method_handlers_generic_handler(
  138. 'JetStream.StreamServer', rpc_method_handlers)
  139. server.add_generic_rpc_handlers((generic_handler,))
  140. # This class is part of an EXPERIMENTAL API.
  141. class StreamServer(object):
  142. """Missing associated documentation comment in .proto file."""
  143. @staticmethod
  144. def OpenImageStream(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_stream(request, target, '/JetStream.StreamServer/OpenImageStream',
  155. def__pb2.RequestCmd.SerializeToString,
  156. def__pb2.ResImage.FromString,
  157. options, channel_credentials,
  158. insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
  159. @staticmethod
  160. def OpenMeasureDataStream(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_stream(request, target, '/JetStream.StreamServer/OpenMeasureDataStream',
  171. def__pb2.RequestCmd.SerializeToString,
  172. def__pb2.MeasureInfo.FromString,
  173. options, channel_credentials,
  174. insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
  175. @staticmethod
  176. def CloseImageStream(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, '/JetStream.StreamServer/CloseImageStream',
  187. def__pb2.RequestCmd.SerializeToString,
  188. def__pb2.Response.FromString,
  189. options, channel_credentials,
  190. insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
  191. @staticmethod
  192. def CloseMeasureDataStream(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, '/JetStream.StreamServer/CloseMeasureDataStream',
  203. def__pb2.RequestCmd.SerializeToString,
  204. def__pb2.Response.FromString,
  205. options, channel_credentials,
  206. insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
  207. @staticmethod
  208. def GetCloud(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, '/JetStream.StreamServer/GetCloud',
  219. def__pb2.RequestCmd.SerializeToString,
  220. def__pb2.ResCloud.FromString,
  221. options, channel_credentials,
  222. insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
  223. @staticmethod
  224. def GetImage(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, '/JetStream.StreamServer/GetImage',
  235. def__pb2.RequestCmd.SerializeToString,
  236. def__pb2.ResImage.FromString,
  237. options, channel_credentials,
  238. insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
  239. @staticmethod
  240. def setTofTransformation(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, '/JetStream.StreamServer/setTofTransformation',
  251. def__pb2.RequestCmd.SerializeToString,
  252. def__pb2.Response.FromString,
  253. options, channel_credentials,
  254. insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
  255. @staticmethod
  256. def saveTofTransformation(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, '/JetStream.StreamServer/saveTofTransformation',
  267. def__pb2.RequestCmd.SerializeToString,
  268. def__pb2.Response.FromString,
  269. options, channel_credentials,
  270. insecure, call_credentials, compression, wait_for_ready, timeout, metadata)