ExportServiceClient.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. // GENERATED CODE -- DO NOT EDIT!
  3. namespace Ydb\Export\V1;
  4. /**
  5. */
  6. class ExportServiceClient extends \Grpc\BaseStub {
  7. /**
  8. * @param string $hostname hostname
  9. * @param array $opts channel options
  10. * @param \Grpc\Channel $channel (optional) re-use channel object
  11. */
  12. public function __construct($hostname, $opts, $channel = null) {
  13. parent::__construct($hostname, $opts, $channel);
  14. }
  15. /**
  16. * Exports data to YT.
  17. * Method starts an asynchronous operation that can be cancelled while it is in progress.
  18. * @param \Ydb\Export\ExportToYtRequest $argument input argument
  19. * @param array $metadata metadata
  20. * @param array $options call options
  21. * @return \Grpc\UnaryCall
  22. */
  23. public function ExportToYt(\Ydb\Export\ExportToYtRequest $argument,
  24. $metadata = [], $options = []) {
  25. return $this->_simpleRequest('/Ydb.Export.V1.ExportService/ExportToYt',
  26. $argument,
  27. ['\Ydb\Export\ExportToYtResponse', 'decode'],
  28. $metadata, $options);
  29. }
  30. /**
  31. * Exports data to S3.
  32. * Method starts an asynchronous operation that can be cancelled while it is in progress.
  33. * @param \Ydb\Export\ExportToS3Request $argument input argument
  34. * @param array $metadata metadata
  35. * @param array $options call options
  36. * @return \Grpc\UnaryCall
  37. */
  38. public function ExportToS3(\Ydb\Export\ExportToS3Request $argument,
  39. $metadata = [], $options = []) {
  40. return $this->_simpleRequest('/Ydb.Export.V1.ExportService/ExportToS3',
  41. $argument,
  42. ['\Ydb\Export\ExportToS3Response', 'decode'],
  43. $metadata, $options);
  44. }
  45. }