ExcelStub.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?php
  2. // GENERATED CODE -- DO NOT EDIT!
  3. namespace Palm\Lily\V1;
  4. /**
  5. * ----------------------------------------------------------------------------
  6. *
  7. */
  8. class ExcelStub {
  9. /**
  10. * @param \Palm\Lily\V1\S3File $request client request
  11. * @param \Grpc\ServerContext $context server request context
  12. * @return \Palm\Lily\V1\ExcelModel for response data, null if if error occured
  13. * initial metadata (if any) and status (if not ok) should be set to $context
  14. */
  15. public function Parse(
  16. \Palm\Lily\V1\S3File $request,
  17. \Grpc\ServerContext $context
  18. ): ?\Palm\Lily\V1\ExcelModel {
  19. $context->setStatus(\Grpc\Status::unimplemented());
  20. return null;
  21. }
  22. /**
  23. * @param \Palm\Lily\V1\ExcelModel $request client request
  24. * @param \Grpc\ServerContext $context server request context
  25. * @return \Palm\Lily\V1\S3File for response data, null if if error occured
  26. * initial metadata (if any) and status (if not ok) should be set to $context
  27. */
  28. public function Generate(
  29. \Palm\Lily\V1\ExcelModel $request,
  30. \Grpc\ServerContext $context
  31. ): ?\Palm\Lily\V1\S3File {
  32. $context->setStatus(\Grpc\Status::unimplemented());
  33. return null;
  34. }
  35. /**
  36. * Get the method descriptors of the service for server registration
  37. *
  38. * @return array of \Grpc\MethodDescriptor for the service methods
  39. */
  40. public final function getMethodDescriptors(): array
  41. {
  42. return [
  43. '/palm.lily.v1.Excel/Parse' => new \Grpc\MethodDescriptor(
  44. $this,
  45. 'Parse',
  46. '\Palm\Lily\V1\S3File',
  47. \Grpc\MethodDescriptor::UNARY_CALL
  48. ),
  49. '/palm.lily.v1.Excel/Generate' => new \Grpc\MethodDescriptor(
  50. $this,
  51. 'Generate',
  52. '\Palm\Lily\V1\ExcelModel',
  53. \Grpc\MethodDescriptor::UNARY_CALL
  54. ),
  55. ];
  56. }
  57. }