TeXLiveStub.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. // GENERATED CODE -- DO NOT EDIT!
  3. namespace Palm\Lily\V1;
  4. /**
  5. * ----------------------------------------------------------------------------
  6. *
  7. */
  8. class TeXLiveStub {
  9. /**
  10. * @param \Palm\Lily\V1\TeXLiveRequest $request client request
  11. * @param \Grpc\ServerContext $context server request context
  12. * @return \Palm\Lily\V1\TeXLiveResponse 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 ToPdf(
  16. \Palm\Lily\V1\TeXLiveRequest $request,
  17. \Grpc\ServerContext $context
  18. ): ?\Palm\Lily\V1\TeXLiveResponse {
  19. $context->setStatus(\Grpc\Status::unimplemented());
  20. return null;
  21. }
  22. /**
  23. * Get the method descriptors of the service for server registration
  24. *
  25. * @return array of \Grpc\MethodDescriptor for the service methods
  26. */
  27. public final function getMethodDescriptors(): array
  28. {
  29. return [
  30. '/palm.lily.v1.TeXLive/ToPdf' => new \Grpc\MethodDescriptor(
  31. $this,
  32. 'ToPdf',
  33. '\Palm\Lily\V1\TeXLiveRequest',
  34. \Grpc\MethodDescriptor::UNARY_CALL
  35. ),
  36. ];
  37. }
  38. }