LocationStorage.php 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: protos/ydb_monitoring.proto
  4. namespace Ydb\Monitoring;
  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.Monitoring.LocationStorage</code>
  10. */
  11. class LocationStorage extends \Google\Protobuf\Internal\Message
  12. {
  13. /**
  14. * Generated from protobuf field <code>.Ydb.Monitoring.LocationNode node = 1;</code>
  15. */
  16. protected $node = null;
  17. /**
  18. * Generated from protobuf field <code>.Ydb.Monitoring.LocationStoragePool pool = 2;</code>
  19. */
  20. protected $pool = null;
  21. /**
  22. * Constructor.
  23. *
  24. * @param array $data {
  25. * Optional. Data for populating the Message object.
  26. *
  27. * @type \Ydb\Monitoring\LocationNode $node
  28. * @type \Ydb\Monitoring\LocationStoragePool $pool
  29. * }
  30. */
  31. public function __construct($data = NULL) {
  32. \GPBMetadata\Protos\YdbMonitoring::initOnce();
  33. parent::__construct($data);
  34. }
  35. /**
  36. * Generated from protobuf field <code>.Ydb.Monitoring.LocationNode node = 1;</code>
  37. * @return \Ydb\Monitoring\LocationNode|null
  38. */
  39. public function getNode()
  40. {
  41. return $this->node;
  42. }
  43. public function hasNode()
  44. {
  45. return isset($this->node);
  46. }
  47. public function clearNode()
  48. {
  49. unset($this->node);
  50. }
  51. /**
  52. * Generated from protobuf field <code>.Ydb.Monitoring.LocationNode node = 1;</code>
  53. * @param \Ydb\Monitoring\LocationNode $var
  54. * @return $this
  55. */
  56. public function setNode($var)
  57. {
  58. GPBUtil::checkMessage($var, \Ydb\Monitoring\LocationNode::class);
  59. $this->node = $var;
  60. return $this;
  61. }
  62. /**
  63. * Generated from protobuf field <code>.Ydb.Monitoring.LocationStoragePool pool = 2;</code>
  64. * @return \Ydb\Monitoring\LocationStoragePool|null
  65. */
  66. public function getPool()
  67. {
  68. return $this->pool;
  69. }
  70. public function hasPool()
  71. {
  72. return isset($this->pool);
  73. }
  74. public function clearPool()
  75. {
  76. unset($this->pool);
  77. }
  78. /**
  79. * Generated from protobuf field <code>.Ydb.Monitoring.LocationStoragePool pool = 2;</code>
  80. * @param \Ydb\Monitoring\LocationStoragePool $var
  81. * @return $this
  82. */
  83. public function setPool($var)
  84. {
  85. GPBUtil::checkMessage($var, \Ydb\Monitoring\LocationStoragePool::class);
  86. $this->pool = $var;
  87. return $this;
  88. }
  89. }