2
0

lily_pb2_grpc.py 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327
  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 lily_pb2 as lily__pb2
  5. class ExcelStub(object):
  6. """----------------------------------------------------------------------------
  7. """
  8. def __init__(self, channel):
  9. """Constructor.
  10. Args:
  11. channel: A grpc.Channel.
  12. """
  13. self.Parse = channel.unary_unary(
  14. '/palm.lily.v1.Excel/Parse',
  15. request_serializer=lily__pb2.S3File.SerializeToString,
  16. response_deserializer=lily__pb2.ExcelModel.FromString,
  17. )
  18. self.Generate = channel.unary_unary(
  19. '/palm.lily.v1.Excel/Generate',
  20. request_serializer=lily__pb2.ExcelModel.SerializeToString,
  21. response_deserializer=lily__pb2.S3File.FromString,
  22. )
  23. class ExcelServicer(object):
  24. """----------------------------------------------------------------------------
  25. """
  26. def Parse(self, request, context):
  27. """Missing associated documentation comment in .proto file."""
  28. context.set_code(grpc.StatusCode.UNIMPLEMENTED)
  29. context.set_details('Method not implemented!')
  30. raise NotImplementedError('Method not implemented!')
  31. def Generate(self, request, context):
  32. """Missing associated documentation comment in .proto file."""
  33. context.set_code(grpc.StatusCode.UNIMPLEMENTED)
  34. context.set_details('Method not implemented!')
  35. raise NotImplementedError('Method not implemented!')
  36. def add_ExcelServicer_to_server(servicer, server):
  37. rpc_method_handlers = {
  38. 'Parse': grpc.unary_unary_rpc_method_handler(
  39. servicer.Parse,
  40. request_deserializer=lily__pb2.S3File.FromString,
  41. response_serializer=lily__pb2.ExcelModel.SerializeToString,
  42. ),
  43. 'Generate': grpc.unary_unary_rpc_method_handler(
  44. servicer.Generate,
  45. request_deserializer=lily__pb2.ExcelModel.FromString,
  46. response_serializer=lily__pb2.S3File.SerializeToString,
  47. ),
  48. }
  49. generic_handler = grpc.method_handlers_generic_handler(
  50. 'palm.lily.v1.Excel', rpc_method_handlers)
  51. server.add_generic_rpc_handlers((generic_handler,))
  52. # This class is part of an EXPERIMENTAL API.
  53. class Excel(object):
  54. """----------------------------------------------------------------------------
  55. """
  56. @staticmethod
  57. def Parse(request,
  58. target,
  59. options=(),
  60. channel_credentials=None,
  61. call_credentials=None,
  62. insecure=False,
  63. compression=None,
  64. wait_for_ready=None,
  65. timeout=None,
  66. metadata=None):
  67. return grpc.experimental.unary_unary(request, target, '/palm.lily.v1.Excel/Parse',
  68. lily__pb2.S3File.SerializeToString,
  69. lily__pb2.ExcelModel.FromString,
  70. options, channel_credentials,
  71. insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
  72. @staticmethod
  73. def Generate(request,
  74. target,
  75. options=(),
  76. channel_credentials=None,
  77. call_credentials=None,
  78. insecure=False,
  79. compression=None,
  80. wait_for_ready=None,
  81. timeout=None,
  82. metadata=None):
  83. return grpc.experimental.unary_unary(request, target, '/palm.lily.v1.Excel/Generate',
  84. lily__pb2.ExcelModel.SerializeToString,
  85. lily__pb2.S3File.FromString,
  86. options, channel_credentials,
  87. insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
  88. class S3Stub(object):
  89. """Missing associated documentation comment in .proto file."""
  90. def __init__(self, channel):
  91. """Constructor.
  92. Args:
  93. channel: A grpc.Channel.
  94. """
  95. self.GetFile = channel.unary_unary(
  96. '/palm.lily.v1.S3/GetFile',
  97. request_serializer=lily__pb2.S3GetFileRequest.SerializeToString,
  98. response_deserializer=lily__pb2.S3GetFileResponse.FromString,
  99. )
  100. class S3Servicer(object):
  101. """Missing associated documentation comment in .proto file."""
  102. def GetFile(self, request, context):
  103. """Missing associated documentation comment in .proto file."""
  104. context.set_code(grpc.StatusCode.UNIMPLEMENTED)
  105. context.set_details('Method not implemented!')
  106. raise NotImplementedError('Method not implemented!')
  107. def add_S3Servicer_to_server(servicer, server):
  108. rpc_method_handlers = {
  109. 'GetFile': grpc.unary_unary_rpc_method_handler(
  110. servicer.GetFile,
  111. request_deserializer=lily__pb2.S3GetFileRequest.FromString,
  112. response_serializer=lily__pb2.S3GetFileResponse.SerializeToString,
  113. ),
  114. }
  115. generic_handler = grpc.method_handlers_generic_handler(
  116. 'palm.lily.v1.S3', rpc_method_handlers)
  117. server.add_generic_rpc_handlers((generic_handler,))
  118. # This class is part of an EXPERIMENTAL API.
  119. class S3(object):
  120. """Missing associated documentation comment in .proto file."""
  121. @staticmethod
  122. def GetFile(request,
  123. target,
  124. options=(),
  125. channel_credentials=None,
  126. call_credentials=None,
  127. insecure=False,
  128. compression=None,
  129. wait_for_ready=None,
  130. timeout=None,
  131. metadata=None):
  132. return grpc.experimental.unary_unary(request, target, '/palm.lily.v1.S3/GetFile',
  133. lily__pb2.S3GetFileRequest.SerializeToString,
  134. lily__pb2.S3GetFileResponse.FromString,
  135. options, channel_credentials,
  136. insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
  137. class TexStub(object):
  138. """Missing associated documentation comment in .proto file."""
  139. def __init__(self, channel):
  140. """Constructor.
  141. Args:
  142. channel: A grpc.Channel.
  143. """
  144. self.ToPdf = channel.unary_unary(
  145. '/palm.lily.v1.Tex/ToPdf',
  146. request_serializer=lily__pb2.TexToRequest.SerializeToString,
  147. response_deserializer=lily__pb2.S3File.FromString,
  148. )
  149. self.ToWord = channel.unary_unary(
  150. '/palm.lily.v1.Tex/ToWord',
  151. request_serializer=lily__pb2.TexToRequest.SerializeToString,
  152. response_deserializer=lily__pb2.S3File.FromString,
  153. )
  154. class TexServicer(object):
  155. """Missing associated documentation comment in .proto file."""
  156. def ToPdf(self, request, context):
  157. """Missing associated documentation comment in .proto file."""
  158. context.set_code(grpc.StatusCode.UNIMPLEMENTED)
  159. context.set_details('Method not implemented!')
  160. raise NotImplementedError('Method not implemented!')
  161. def ToWord(self, request, context):
  162. """Missing associated documentation comment in .proto file."""
  163. context.set_code(grpc.StatusCode.UNIMPLEMENTED)
  164. context.set_details('Method not implemented!')
  165. raise NotImplementedError('Method not implemented!')
  166. def add_TexServicer_to_server(servicer, server):
  167. rpc_method_handlers = {
  168. 'ToPdf': grpc.unary_unary_rpc_method_handler(
  169. servicer.ToPdf,
  170. request_deserializer=lily__pb2.TexToRequest.FromString,
  171. response_serializer=lily__pb2.S3File.SerializeToString,
  172. ),
  173. 'ToWord': grpc.unary_unary_rpc_method_handler(
  174. servicer.ToWord,
  175. request_deserializer=lily__pb2.TexToRequest.FromString,
  176. response_serializer=lily__pb2.S3File.SerializeToString,
  177. ),
  178. }
  179. generic_handler = grpc.method_handlers_generic_handler(
  180. 'palm.lily.v1.Tex', rpc_method_handlers)
  181. server.add_generic_rpc_handlers((generic_handler,))
  182. # This class is part of an EXPERIMENTAL API.
  183. class Tex(object):
  184. """Missing associated documentation comment in .proto file."""
  185. @staticmethod
  186. def ToPdf(request,
  187. target,
  188. options=(),
  189. channel_credentials=None,
  190. call_credentials=None,
  191. insecure=False,
  192. compression=None,
  193. wait_for_ready=None,
  194. timeout=None,
  195. metadata=None):
  196. return grpc.experimental.unary_unary(request, target, '/palm.lily.v1.Tex/ToPdf',
  197. lily__pb2.TexToRequest.SerializeToString,
  198. lily__pb2.S3File.FromString,
  199. options, channel_credentials,
  200. insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
  201. @staticmethod
  202. def ToWord(request,
  203. target,
  204. options=(),
  205. channel_credentials=None,
  206. call_credentials=None,
  207. insecure=False,
  208. compression=None,
  209. wait_for_ready=None,
  210. timeout=None,
  211. metadata=None):
  212. return grpc.experimental.unary_unary(request, target, '/palm.lily.v1.Tex/ToWord',
  213. lily__pb2.TexToRequest.SerializeToString,
  214. lily__pb2.S3File.FromString,
  215. options, channel_credentials,
  216. insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
  217. class EpubStub(object):
  218. """----------------------------------------------------------------------------
  219. """
  220. def __init__(self, channel):
  221. """Constructor.
  222. Args:
  223. channel: A grpc.Channel.
  224. """
  225. self.Build = channel.unary_unary(
  226. '/palm.lily.v1.Epub/Build',
  227. request_serializer=lily__pb2.EpubBuildRequest.SerializeToString,
  228. response_deserializer=lily__pb2.S3File.FromString,
  229. )
  230. class EpubServicer(object):
  231. """----------------------------------------------------------------------------
  232. """
  233. def Build(self, request, context):
  234. """Missing associated documentation comment in .proto file."""
  235. context.set_code(grpc.StatusCode.UNIMPLEMENTED)
  236. context.set_details('Method not implemented!')
  237. raise NotImplementedError('Method not implemented!')
  238. def add_EpubServicer_to_server(servicer, server):
  239. rpc_method_handlers = {
  240. 'Build': grpc.unary_unary_rpc_method_handler(
  241. servicer.Build,
  242. request_deserializer=lily__pb2.EpubBuildRequest.FromString,
  243. response_serializer=lily__pb2.S3File.SerializeToString,
  244. ),
  245. }
  246. generic_handler = grpc.method_handlers_generic_handler(
  247. 'palm.lily.v1.Epub', rpc_method_handlers)
  248. server.add_generic_rpc_handlers((generic_handler,))
  249. # This class is part of an EXPERIMENTAL API.
  250. class Epub(object):
  251. """----------------------------------------------------------------------------
  252. """
  253. @staticmethod
  254. def Build(request,
  255. target,
  256. options=(),
  257. channel_credentials=None,
  258. call_credentials=None,
  259. insecure=False,
  260. compression=None,
  261. wait_for_ready=None,
  262. timeout=None,
  263. metadata=None):
  264. return grpc.experimental.unary_unary(request, target, '/palm.lily.v1.Epub/Build',
  265. lily__pb2.EpubBuildRequest.SerializeToString,
  266. lily__pb2.S3File.FromString,
  267. options, channel_credentials,
  268. insecure, call_credentials, compression, wait_for_ready, timeout, metadata)