ScriptingServiceClient.php 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <?php
  2. // GENERATED CODE -- DO NOT EDIT!
  3. namespace Ydb\Scripting\V1;
  4. /**
  5. */
  6. class ScriptingServiceClient 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. * @param \Ydb\Scripting\ExecuteYqlRequest $argument input argument
  17. * @param array $metadata metadata
  18. * @param array $options call options
  19. * @return \Grpc\UnaryCall
  20. */
  21. public function ExecuteYql(\Ydb\Scripting\ExecuteYqlRequest $argument,
  22. $metadata = [], $options = []) {
  23. return $this->_simpleRequest('/Ydb.Scripting.V1.ScriptingService/ExecuteYql',
  24. $argument,
  25. ['\Ydb\Scripting\ExecuteYqlResponse', 'decode'],
  26. $metadata, $options);
  27. }
  28. /**
  29. * Executes yql request with streaming result.
  30. * @param \Ydb\Scripting\ExecuteYqlRequest $argument input argument
  31. * @param array $metadata metadata
  32. * @param array $options call options
  33. * @return \Grpc\ServerStreamingCall
  34. */
  35. public function StreamExecuteYql(\Ydb\Scripting\ExecuteYqlRequest $argument,
  36. $metadata = [], $options = []) {
  37. return $this->_serverStreamRequest('/Ydb.Scripting.V1.ScriptingService/StreamExecuteYql',
  38. $argument,
  39. ['\Ydb\Scripting\ExecuteYqlPartialResponse', 'decode'],
  40. $metadata, $options);
  41. }
  42. /**
  43. * @param \Ydb\Scripting\ExplainYqlRequest $argument input argument
  44. * @param array $metadata metadata
  45. * @param array $options call options
  46. * @return \Grpc\UnaryCall
  47. */
  48. public function ExplainYql(\Ydb\Scripting\ExplainYqlRequest $argument,
  49. $metadata = [], $options = []) {
  50. return $this->_simpleRequest('/Ydb.Scripting.V1.ScriptingService/ExplainYql',
  51. $argument,
  52. ['\Ydb\Scripting\ExplainYqlResponse', 'decode'],
  53. $metadata, $options);
  54. }
  55. }