S3Stub.php 1.1 KB

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