ImportServiceClient.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. // GENERATED CODE -- DO NOT EDIT!
  3. namespace Ydb\Import\V1;
  4. /**
  5. */
  6. class ImportServiceClient 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. * Imports data from S3.
  17. * Method starts an asynchronous operation that can be cancelled while it is in progress.
  18. * @param \Ydb\Import\ImportFromS3Request $argument input argument
  19. * @param array $metadata metadata
  20. * @param array $options call options
  21. * @return \Grpc\UnaryCall
  22. */
  23. public function ImportFromS3(\Ydb\Import\ImportFromS3Request $argument,
  24. $metadata = [], $options = []) {
  25. return $this->_simpleRequest('/Ydb.Import.V1.ImportService/ImportFromS3',
  26. $argument,
  27. ['\Ydb\Import\ImportFromS3Response', 'decode'],
  28. $metadata, $options);
  29. }
  30. /**
  31. * Writes data to a table.
  32. * Method accepts serialized data in the selected format and writes it non-transactionally.
  33. * @param \Ydb\Import\ImportDataRequest $argument input argument
  34. * @param array $metadata metadata
  35. * @param array $options call options
  36. * @return \Grpc\UnaryCall
  37. */
  38. public function ImportData(\Ydb\Import\ImportDataRequest $argument,
  39. $metadata = [], $options = []) {
  40. return $this->_simpleRequest('/Ydb.Import.V1.ImportService/ImportData',
  41. $argument,
  42. ['\Ydb\Import\ImportDataResponse', 'decode'],
  43. $metadata, $options);
  44. }
  45. }