Location.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.Location</code>
  10. */
  11. class Location extends \Google\Protobuf\Internal\Message
  12. {
  13. /**
  14. * Generated from protobuf field <code>.Ydb.Monitoring.LocationStorage storage = 1;</code>
  15. */
  16. protected $storage = null;
  17. /**
  18. * Generated from protobuf field <code>.Ydb.Monitoring.LocationCompute compute = 2;</code>
  19. */
  20. protected $compute = null;
  21. /**
  22. * Generated from protobuf field <code>.Ydb.Monitoring.LocationDatabase database = 3;</code>
  23. */
  24. protected $database = null;
  25. /**
  26. * Constructor.
  27. *
  28. * @param array $data {
  29. * Optional. Data for populating the Message object.
  30. *
  31. * @type \Ydb\Monitoring\LocationStorage $storage
  32. * @type \Ydb\Monitoring\LocationCompute $compute
  33. * @type \Ydb\Monitoring\LocationDatabase $database
  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.LocationStorage storage = 1;</code>
  42. * @return \Ydb\Monitoring\LocationStorage|null
  43. */
  44. public function getStorage()
  45. {
  46. return $this->storage;
  47. }
  48. public function hasStorage()
  49. {
  50. return isset($this->storage);
  51. }
  52. public function clearStorage()
  53. {
  54. unset($this->storage);
  55. }
  56. /**
  57. * Generated from protobuf field <code>.Ydb.Monitoring.LocationStorage storage = 1;</code>
  58. * @param \Ydb\Monitoring\LocationStorage $var
  59. * @return $this
  60. */
  61. public function setStorage($var)
  62. {
  63. GPBUtil::checkMessage($var, \Ydb\Monitoring\LocationStorage::class);
  64. $this->storage = $var;
  65. return $this;
  66. }
  67. /**
  68. * Generated from protobuf field <code>.Ydb.Monitoring.LocationCompute compute = 2;</code>
  69. * @return \Ydb\Monitoring\LocationCompute|null
  70. */
  71. public function getCompute()
  72. {
  73. return $this->compute;
  74. }
  75. public function hasCompute()
  76. {
  77. return isset($this->compute);
  78. }
  79. public function clearCompute()
  80. {
  81. unset($this->compute);
  82. }
  83. /**
  84. * Generated from protobuf field <code>.Ydb.Monitoring.LocationCompute compute = 2;</code>
  85. * @param \Ydb\Monitoring\LocationCompute $var
  86. * @return $this
  87. */
  88. public function setCompute($var)
  89. {
  90. GPBUtil::checkMessage($var, \Ydb\Monitoring\LocationCompute::class);
  91. $this->compute = $var;
  92. return $this;
  93. }
  94. /**
  95. * Generated from protobuf field <code>.Ydb.Monitoring.LocationDatabase database = 3;</code>
  96. * @return \Ydb\Monitoring\LocationDatabase|null
  97. */
  98. public function getDatabase()
  99. {
  100. return $this->database;
  101. }
  102. public function hasDatabase()
  103. {
  104. return isset($this->database);
  105. }
  106. public function clearDatabase()
  107. {
  108. unset($this->database);
  109. }
  110. /**
  111. * Generated from protobuf field <code>.Ydb.Monitoring.LocationDatabase database = 3;</code>
  112. * @param \Ydb\Monitoring\LocationDatabase $var
  113. * @return $this
  114. */
  115. public function setDatabase($var)
  116. {
  117. GPBUtil::checkMessage($var, \Ydb\Monitoring\LocationDatabase::class);
  118. $this->database = $var;
  119. return $this;
  120. }
  121. }