chirpstack/api/php/generated/Chirpstack/Gateway/MeshHeartbeatRelayPath.php
2024-06-25 12:27:28 +01:00

134 lines
2.6 KiB
PHP
Vendored

<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: gw/gw.proto
namespace Chirpstack\Gateway;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>gw.MeshHeartbeatRelayPath</code>
*/
class MeshHeartbeatRelayPath extends \Google\Protobuf\Internal\Message
{
/**
* Relay ID.
*
* Generated from protobuf field <code>string relay_id = 1;</code>
*/
protected $relay_id = '';
/**
* RSSI.
*
* Generated from protobuf field <code>int32 rssi = 2;</code>
*/
protected $rssi = 0;
/**
* SNR.
*
* Generated from protobuf field <code>int32 snr = 3;</code>
*/
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 <code>string relay_id = 1;</code>
* @return string
*/
public function getRelayId()
{
return $this->relay_id;
}
/**
* Relay ID.
*
* Generated from protobuf field <code>string relay_id = 1;</code>
* @param string $var
* @return $this
*/
public function setRelayId($var)
{
GPBUtil::checkString($var, True);
$this->relay_id = $var;
return $this;
}
/**
* RSSI.
*
* Generated from protobuf field <code>int32 rssi = 2;</code>
* @return int
*/
public function getRssi()
{
return $this->rssi;
}
/**
* RSSI.
*
* Generated from protobuf field <code>int32 rssi = 2;</code>
* @param int $var
* @return $this
*/
public function setRssi($var)
{
GPBUtil::checkInt32($var);
$this->rssi = $var;
return $this;
}
/**
* SNR.
*
* Generated from protobuf field <code>int32 snr = 3;</code>
* @return int
*/
public function getSnr()
{
return $this->snr;
}
/**
* SNR.
*
* Generated from protobuf field <code>int32 snr = 3;</code>
* @param int $var
* @return $this
*/
public function setSnr($var)
{
GPBUtil::checkInt32($var);
$this->snr = $var;
return $this;
}
}