DescribeResourceResult.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: protos/ydb_rate_limiter.proto
  4. namespace Ydb\RateLimiter;
  5. use Google\Protobuf\Internal\GPBType;
  6. use Google\Protobuf\Internal\RepeatedField;
  7. use Google\Protobuf\Internal\GPBUtil;
  8. /**
  9. * Generated from protobuf message <code>Ydb.RateLimiter.DescribeResourceResult</code>
  10. */
  11. class DescribeResourceResult extends \Google\Protobuf\Internal\Message
  12. {
  13. /**
  14. * Generated from protobuf field <code>.Ydb.RateLimiter.Resource resource = 1;</code>
  15. */
  16. protected $resource = null;
  17. /**
  18. * Constructor.
  19. *
  20. * @param array $data {
  21. * Optional. Data for populating the Message object.
  22. *
  23. * @type \Ydb\RateLimiter\Resource $resource
  24. * }
  25. */
  26. public function __construct($data = NULL) {
  27. \GPBMetadata\Protos\YdbRateLimiter::initOnce();
  28. parent::__construct($data);
  29. }
  30. /**
  31. * Generated from protobuf field <code>.Ydb.RateLimiter.Resource resource = 1;</code>
  32. * @return \Ydb\RateLimiter\Resource|null
  33. */
  34. public function getResource()
  35. {
  36. return $this->resource;
  37. }
  38. public function hasResource()
  39. {
  40. return isset($this->resource);
  41. }
  42. public function clearResource()
  43. {
  44. unset($this->resource);
  45. }
  46. /**
  47. * Generated from protobuf field <code>.Ydb.RateLimiter.Resource resource = 1;</code>
  48. * @param \Ydb\RateLimiter\Resource $var
  49. * @return $this
  50. */
  51. public function setResource($var)
  52. {
  53. GPBUtil::checkMessage($var, \Ydb\RateLimiter\Resource::class);
  54. $this->resource = $var;
  55. return $this;
  56. }
  57. }