LocationCompute.php 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  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.LocationCompute</code>
  10. */
  11. class LocationCompute 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.LocationComputePool pool = 2;</code>
  19. */
  20. protected $pool = null;
  21. /**
  22. * Generated from protobuf field <code>.Ydb.Monitoring.LocationComputeTablet tablet = 3;</code>
  23. */
  24. protected $tablet = null;
  25. /**
  26. * Constructor.
  27. *
  28. * @param array $data {
  29. * Optional. Data for populating the Message object.
  30. *
  31. * @type \Ydb\Monitoring\LocationNode $node
  32. * @type \Ydb\Monitoring\LocationComputePool $pool
  33. * @type \Ydb\Monitoring\LocationComputeTablet $tablet
  34. * }
  35. */
  36. public function __construct($data = NULL) {
  37. \GPBMetadata\Protos\YdbMonitoring::initOnce();
  38. parent::__construct($data);
  39. }
  40. /**
  41. * Generated from protobuf field <code>.Ydb.Monitoring.LocationNode node = 1;</code>
  42. * @return \Ydb\Monitoring\LocationNode|null
  43. */
  44. public function getNode()
  45. {
  46. return $this->node;
  47. }
  48. public function hasNode()
  49. {
  50. return isset($this->node);
  51. }
  52. public function clearNode()
  53. {
  54. unset($this->node);
  55. }
  56. /**
  57. * Generated from protobuf field <code>.Ydb.Monitoring.LocationNode node = 1;</code>
  58. * @param \Ydb\Monitoring\LocationNode $var
  59. * @return $this
  60. */
  61. public function setNode($var)
  62. {
  63. GPBUtil::checkMessage($var, \Ydb\Monitoring\LocationNode::class);
  64. $this->node = $var;
  65. return $this;
  66. }
  67. /**
  68. * Generated from protobuf field <code>.Ydb.Monitoring.LocationComputePool pool = 2;</code>
  69. * @return \Ydb\Monitoring\LocationComputePool|null
  70. */
  71. public function getPool()
  72. {
  73. return $this->pool;
  74. }
  75. public function hasPool()
  76. {
  77. return isset($this->pool);
  78. }
  79. public function clearPool()
  80. {
  81. unset($this->pool);
  82. }
  83. /**
  84. * Generated from protobuf field <code>.Ydb.Monitoring.LocationComputePool pool = 2;</code>
  85. * @param \Ydb\Monitoring\LocationComputePool $var
  86. * @return $this
  87. */
  88. public function setPool($var)
  89. {
  90. GPBUtil::checkMessage($var, \Ydb\Monitoring\LocationComputePool::class);
  91. $this->pool = $var;
  92. return $this;
  93. }
  94. /**
  95. * Generated from protobuf field <code>.Ydb.Monitoring.LocationComputeTablet tablet = 3;</code>
  96. * @return \Ydb\Monitoring\LocationComputeTablet|null
  97. */
  98. public function getTablet()
  99. {
  100. return $this->tablet;
  101. }
  102. public function hasTablet()
  103. {
  104. return isset($this->tablet);
  105. }
  106. public function clearTablet()
  107. {
  108. unset($this->tablet);
  109. }
  110. /**
  111. * Generated from protobuf field <code>.Ydb.Monitoring.LocationComputeTablet tablet = 3;</code>
  112. * @param \Ydb\Monitoring\LocationComputeTablet $var
  113. * @return $this
  114. */
  115. public function setTablet($var)
  116. {
  117. GPBUtil::checkMessage($var, \Ydb\Monitoring\LocationComputeTablet::class);
  118. $this->tablet = $var;
  119. return $this;
  120. }
  121. }