DiscoveryServiceClient.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. // GENERATED CODE -- DO NOT EDIT!
  3. namespace Ydb\Discovery\V1;
  4. /**
  5. */
  6. class DiscoveryServiceClient 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\Discovery\ListEndpointsRequest $argument input argument
  17. * @param array $metadata metadata
  18. * @param array $options call options
  19. * @return \Grpc\UnaryCall
  20. */
  21. public function ListEndpoints(\Ydb\Discovery\ListEndpointsRequest $argument,
  22. $metadata = [], $options = []) {
  23. return $this->_simpleRequest('/Ydb.Discovery.V1.DiscoveryService/ListEndpoints',
  24. $argument,
  25. ['\Ydb\Discovery\ListEndpointsResponse', 'decode'],
  26. $metadata, $options);
  27. }
  28. /**
  29. * @param \Ydb\Discovery\WhoAmIRequest $argument input argument
  30. * @param array $metadata metadata
  31. * @param array $options call options
  32. * @return \Grpc\UnaryCall
  33. */
  34. public function WhoAmI(\Ydb\Discovery\WhoAmIRequest $argument,
  35. $metadata = [], $options = []) {
  36. return $this->_simpleRequest('/Ydb.Discovery.V1.DiscoveryService/WhoAmI',
  37. $argument,
  38. ['\Ydb\Discovery\WhoAmIResponse', 'decode'],
  39. $metadata, $options);
  40. }
  41. }