wordToPdf_pb2_grpc.py 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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 proto.wordToPdf_pb2 as wordToPdf__pb2
  5. class AnalysisDocumentsStub(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.Extract = channel.unary_unary(
  13. '/proto.AnalysisDocuments/Extract',
  14. request_serializer=wordToPdf__pb2.ParseRequest.SerializeToString,
  15. response_deserializer=wordToPdf__pb2.ParseResponse.FromString,
  16. )
  17. class AnalysisDocumentsServicer(object):
  18. """Missing associated documentation comment in .proto file."""
  19. def Extract(self, request, context):
  20. """Missing associated documentation comment in .proto file."""
  21. context.set_code(grpc.StatusCode.UNIMPLEMENTED)
  22. context.set_details('Method not implemented!')
  23. raise NotImplementedError('Method not implemented!')
  24. def add_AnalysisDocumentsServicer_to_server(servicer, server):
  25. rpc_method_handlers = {
  26. 'Extract': grpc.unary_unary_rpc_method_handler(
  27. servicer.Extract,
  28. request_deserializer=wordToPdf__pb2.ParseRequest.FromString,
  29. response_serializer=wordToPdf__pb2.ParseResponse.SerializeToString,
  30. ),
  31. }
  32. generic_handler = grpc.method_handlers_generic_handler(
  33. 'proto.AnalysisDocuments', rpc_method_handlers)
  34. server.add_generic_rpc_handlers((generic_handler,))
  35. # This class is part of an EXPERIMENTAL API.
  36. class AnalysisDocuments(object):
  37. """Missing associated documentation comment in .proto file."""
  38. @staticmethod
  39. def Extract(request,
  40. target,
  41. options=(),
  42. channel_credentials=None,
  43. call_credentials=None,
  44. insecure=False,
  45. compression=None,
  46. wait_for_ready=None,
  47. timeout=None,
  48. metadata=None):
  49. return grpc.experimental.unary_unary(request, target, '/proto.AnalysisDocuments/Extract',
  50. wordToPdf__pb2.ParseRequest.SerializeToString,
  51. wordToPdf__pb2.ParseResponse.FromString,
  52. options, channel_credentials,
  53. insecure, call_credentials, compression, wait_for_ready, timeout, metadata)