gw.MeshHeartbeatRelayPath
*/
class MeshHeartbeatRelayPath extends \Google\Protobuf\Internal\Message
{
/**
* Relay ID.
*
* Generated from protobuf field string relay_id = 1;
*/
protected $relay_id = '';
/**
* RSSI.
*
* Generated from protobuf field int32 rssi = 2;
*/
protected $rssi = 0;
/**
* SNR.
*
* Generated from protobuf field int32 snr = 3;
*/
protected $snr = 0;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $relay_id
* Relay ID.
* @type int $rssi
* RSSI.
* @type int $snr
* SNR.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Gateway\Gw::initOnce();
parent::__construct($data);
}
/**
* Relay ID.
*
* Generated from protobuf field string relay_id = 1;
* @return string
*/
public function getRelayId()
{
return $this->relay_id;
}
/**
* Relay ID.
*
* Generated from protobuf field string relay_id = 1;
* @param string $var
* @return $this
*/
public function setRelayId($var)
{
GPBUtil::checkString($var, True);
$this->relay_id = $var;
return $this;
}
/**
* RSSI.
*
* Generated from protobuf field int32 rssi = 2;
* @return int
*/
public function getRssi()
{
return $this->rssi;
}
/**
* RSSI.
*
* Generated from protobuf field int32 rssi = 2;
* @param int $var
* @return $this
*/
public function setRssi($var)
{
GPBUtil::checkInt32($var);
$this->rssi = $var;
return $this;
}
/**
* SNR.
*
* Generated from protobuf field int32 snr = 3;
* @return int
*/
public function getSnr()
{
return $this->snr;
}
/**
* SNR.
*
* Generated from protobuf field int32 snr = 3;
* @param int $var
* @return $this
*/
public function setSnr($var)
{
GPBUtil::checkInt32($var);
$this->snr = $var;
return $this;
}
}