Ydb.Monitoring.LocationCompute
*/
class LocationCompute extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field .Ydb.Monitoring.LocationNode node = 1;
*/
protected $node = null;
/**
* Generated from protobuf field .Ydb.Monitoring.LocationComputePool pool = 2;
*/
protected $pool = null;
/**
* Generated from protobuf field .Ydb.Monitoring.LocationComputeTablet tablet = 3;
*/
protected $tablet = null;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Ydb\Monitoring\LocationNode $node
* @type \Ydb\Monitoring\LocationComputePool $pool
* @type \Ydb\Monitoring\LocationComputeTablet $tablet
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Protos\YdbMonitoring::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field .Ydb.Monitoring.LocationNode node = 1;
* @return \Ydb\Monitoring\LocationNode|null
*/
public function getNode()
{
return $this->node;
}
public function hasNode()
{
return isset($this->node);
}
public function clearNode()
{
unset($this->node);
}
/**
* Generated from protobuf field .Ydb.Monitoring.LocationNode node = 1;
* @param \Ydb\Monitoring\LocationNode $var
* @return $this
*/
public function setNode($var)
{
GPBUtil::checkMessage($var, \Ydb\Monitoring\LocationNode::class);
$this->node = $var;
return $this;
}
/**
* Generated from protobuf field .Ydb.Monitoring.LocationComputePool pool = 2;
* @return \Ydb\Monitoring\LocationComputePool|null
*/
public function getPool()
{
return $this->pool;
}
public function hasPool()
{
return isset($this->pool);
}
public function clearPool()
{
unset($this->pool);
}
/**
* Generated from protobuf field .Ydb.Monitoring.LocationComputePool pool = 2;
* @param \Ydb\Monitoring\LocationComputePool $var
* @return $this
*/
public function setPool($var)
{
GPBUtil::checkMessage($var, \Ydb\Monitoring\LocationComputePool::class);
$this->pool = $var;
return $this;
}
/**
* Generated from protobuf field .Ydb.Monitoring.LocationComputeTablet tablet = 3;
* @return \Ydb\Monitoring\LocationComputeTablet|null
*/
public function getTablet()
{
return $this->tablet;
}
public function hasTablet()
{
return isset($this->tablet);
}
public function clearTablet()
{
unset($this->tablet);
}
/**
* Generated from protobuf field .Ydb.Monitoring.LocationComputeTablet tablet = 3;
* @param \Ydb\Monitoring\LocationComputeTablet $var
* @return $this
*/
public function setTablet($var)
{
GPBUtil::checkMessage($var, \Ydb\Monitoring\LocationComputeTablet::class);
$this->tablet = $var;
return $this;
}
}