Ydb.Monitoring.Location
*/
class Location extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field .Ydb.Monitoring.LocationStorage storage = 1;
*/
protected $storage = null;
/**
* Generated from protobuf field .Ydb.Monitoring.LocationCompute compute = 2;
*/
protected $compute = null;
/**
* Generated from protobuf field .Ydb.Monitoring.LocationDatabase database = 3;
*/
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 .Ydb.Monitoring.LocationStorage storage = 1;
* @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 .Ydb.Monitoring.LocationStorage storage = 1;
* @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 .Ydb.Monitoring.LocationCompute compute = 2;
* @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 .Ydb.Monitoring.LocationCompute compute = 2;
* @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 .Ydb.Monitoring.LocationDatabase database = 3;
* @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 .Ydb.Monitoring.LocationDatabase database = 3;
* @param \Ydb\Monitoring\LocationDatabase $var
* @return $this
*/
public function setDatabase($var)
{
GPBUtil::checkMessage($var, \Ydb\Monitoring\LocationDatabase::class);
$this->database = $var;
return $this;
}
}