MarkdownStub.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. // GENERATED CODE -- DO NOT EDIT!
  3. namespace Palm\Morus\V1;
  4. /**
  5. */
  6. class MarkdownStub {
  7. /**
  8. * @param \Palm\Morus\V1\MarkdownToHtmlRequest $request client request
  9. * @param \Grpc\ServerContext $context server request context
  10. * @return \Palm\Morus\V1\MarkdownToHtmlResponse for response data, null if if error occured
  11. * initial metadata (if any) and status (if not ok) should be set to $context
  12. */
  13. public function ToHtml(
  14. \Palm\Morus\V1\MarkdownToHtmlRequest $request,
  15. \Grpc\ServerContext $context
  16. ): ?\Palm\Morus\V1\MarkdownToHtmlResponse {
  17. $context->setStatus(\Grpc\Status::unimplemented());
  18. return null;
  19. }
  20. /**
  21. * Get the method descriptors of the service for server registration
  22. *
  23. * @return array of \Grpc\MethodDescriptor for the service methods
  24. */
  25. public final function getMethodDescriptors(): array
  26. {
  27. return [
  28. '/palm.morus.v1.Markdown/ToHtml' => new \Grpc\MethodDescriptor(
  29. $this,
  30. 'ToHtml',
  31. '\Palm\Morus\V1\MarkdownToHtmlRequest',
  32. \Grpc\MethodDescriptor::UNARY_CALL
  33. ),
  34. ];
  35. }
  36. }