123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142 |
- <?php
- # Generated by the protocol buffer compiler. DO NOT EDIT!
- # source: protos/ydb_monitoring.proto
- namespace Ydb\Monitoring;
- use Google\Protobuf\Internal\GPBType;
- use Google\Protobuf\Internal\RepeatedField;
- use Google\Protobuf\Internal\GPBUtil;
- /**
- * Generated from protobuf message <code>Ydb.Monitoring.Location</code>
- */
- class Location extends \Google\Protobuf\Internal\Message
- {
- /**
- * Generated from protobuf field <code>.Ydb.Monitoring.LocationStorage storage = 1;</code>
- */
- protected $storage = null;
- /**
- * Generated from protobuf field <code>.Ydb.Monitoring.LocationCompute compute = 2;</code>
- */
- protected $compute = null;
- /**
- * Generated from protobuf field <code>.Ydb.Monitoring.LocationDatabase database = 3;</code>
- */
- protected $database = null;
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Ydb\Monitoring\LocationStorage $storage
- * @type \Ydb\Monitoring\LocationCompute $compute
- * @type \Ydb\Monitoring\LocationDatabase $database
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Protos\YdbMonitoring::initOnce();
- parent::__construct($data);
- }
- /**
- * Generated from protobuf field <code>.Ydb.Monitoring.LocationStorage storage = 1;</code>
- * @return \Ydb\Monitoring\LocationStorage|null
- */
- public function getStorage()
- {
- return $this->storage;
- }
- public function hasStorage()
- {
- return isset($this->storage);
- }
- public function clearStorage()
- {
- unset($this->storage);
- }
- /**
- * Generated from protobuf field <code>.Ydb.Monitoring.LocationStorage storage = 1;</code>
- * @param \Ydb\Monitoring\LocationStorage $var
- * @return $this
- */
- public function setStorage($var)
- {
- GPBUtil::checkMessage($var, \Ydb\Monitoring\LocationStorage::class);
- $this->storage = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>.Ydb.Monitoring.LocationCompute compute = 2;</code>
- * @return \Ydb\Monitoring\LocationCompute|null
- */
- public function getCompute()
- {
- return $this->compute;
- }
- public function hasCompute()
- {
- return isset($this->compute);
- }
- public function clearCompute()
- {
- unset($this->compute);
- }
- /**
- * Generated from protobuf field <code>.Ydb.Monitoring.LocationCompute compute = 2;</code>
- * @param \Ydb\Monitoring\LocationCompute $var
- * @return $this
- */
- public function setCompute($var)
- {
- GPBUtil::checkMessage($var, \Ydb\Monitoring\LocationCompute::class);
- $this->compute = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>.Ydb.Monitoring.LocationDatabase database = 3;</code>
- * @return \Ydb\Monitoring\LocationDatabase|null
- */
- public function getDatabase()
- {
- return $this->database;
- }
- public function hasDatabase()
- {
- return isset($this->database);
- }
- public function clearDatabase()
- {
- unset($this->database);
- }
- /**
- * Generated from protobuf field <code>.Ydb.Monitoring.LocationDatabase database = 3;</code>
- * @param \Ydb\Monitoring\LocationDatabase $var
- * @return $this
- */
- public function setDatabase($var)
- {
- GPBUtil::checkMessage($var, \Ydb\Monitoring\LocationDatabase::class);
- $this->database = $var;
- return $this;
- }
- }
|