SearchStub.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. // GENERATED CODE -- DO NOT EDIT!
  3. namespace Mint\Tulip\V1;
  4. /**
  5. */
  6. class SearchStub {
  7. /**
  8. * @param \Mint\Tulip\V1\SearchRequest $request client request
  9. * @param \Grpc\ServerContext $context server request context
  10. * @return \Mint\Tulip\V1\SearchResponse 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 Pali(
  14. \Mint\Tulip\V1\SearchRequest $request,
  15. \Grpc\ServerContext $context
  16. ): ?\Mint\Tulip\V1\SearchResponse {
  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. '/mint.tulip.v1.Search/Pali' => new \Grpc\MethodDescriptor(
  29. $this,
  30. 'Pali',
  31. '\Mint\Tulip\V1\SearchRequest',
  32. \Grpc\MethodDescriptor::UNARY_CALL
  33. ),
  34. ];
  35. }
  36. }