2024-06-25 12:27:28 +01:00

238 lines
4.8 KiB
PHP
Vendored

<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: integration/integration.proto
namespace Chirpstack\Integration;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Uplink relay RX information.
*
* Generated from protobuf message <code>integration.UplinkRelayRxInfo</code>
*/
class UplinkRelayRxInfo extends \Google\Protobuf\Internal\Message
{
/**
* Relay DevEUI.
*
* Generated from protobuf field <code>string dev_eui = 1;</code>
*/
protected $dev_eui = '';
/**
* Frequency.
*
* Generated from protobuf field <code>uint32 frequency = 2;</code>
*/
protected $frequency = 0;
/**
* Data-rate.
*
* Generated from protobuf field <code>uint32 dr = 3;</code>
*/
protected $dr = 0;
/**
* SNR.
*
* Generated from protobuf field <code>int32 snr = 4;</code>
*/
protected $snr = 0;
/**
* RSSI.
*
* Generated from protobuf field <code>int32 rssi = 5;</code>
*/
protected $rssi = 0;
/**
* WOR channel.
*
* Generated from protobuf field <code>uint32 wor_channel = 6;</code>
*/
protected $wor_channel = 0;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $dev_eui
* Relay DevEUI.
* @type int $frequency
* Frequency.
* @type int $dr
* Data-rate.
* @type int $snr
* SNR.
* @type int $rssi
* RSSI.
* @type int $wor_channel
* WOR channel.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Integration\Integration::initOnce();
parent::__construct($data);
}
/**
* Relay DevEUI.
*
* Generated from protobuf field <code>string dev_eui = 1;</code>
* @return string
*/
public function getDevEui()
{
return $this->dev_eui;
}
/**
* Relay DevEUI.
*
* Generated from protobuf field <code>string dev_eui = 1;</code>
* @param string $var
* @return $this
*/
public function setDevEui($var)
{
GPBUtil::checkString($var, True);
$this->dev_eui = $var;
return $this;
}
/**
* Frequency.
*
* Generated from protobuf field <code>uint32 frequency = 2;</code>
* @return int
*/
public function getFrequency()
{
return $this->frequency;
}
/**
* Frequency.
*
* Generated from protobuf field <code>uint32 frequency = 2;</code>
* @param int $var
* @return $this
*/
public function setFrequency($var)
{
GPBUtil::checkUint32($var);
$this->frequency = $var;
return $this;
}
/**
* Data-rate.
*
* Generated from protobuf field <code>uint32 dr = 3;</code>
* @return int
*/
public function getDr()
{
return $this->dr;
}
/**
* Data-rate.
*
* Generated from protobuf field <code>uint32 dr = 3;</code>
* @param int $var
* @return $this
*/
public function setDr($var)
{
GPBUtil::checkUint32($var);
$this->dr = $var;
return $this;
}
/**
* SNR.
*
* Generated from protobuf field <code>int32 snr = 4;</code>
* @return int
*/
public function getSnr()
{
return $this->snr;
}
/**
* SNR.
*
* Generated from protobuf field <code>int32 snr = 4;</code>
* @param int $var
* @return $this
*/
public function setSnr($var)
{
GPBUtil::checkInt32($var);
$this->snr = $var;
return $this;
}
/**
* RSSI.
*
* Generated from protobuf field <code>int32 rssi = 5;</code>
* @return int
*/
public function getRssi()
{
return $this->rssi;
}
/**
* RSSI.
*
* Generated from protobuf field <code>int32 rssi = 5;</code>
* @param int $var
* @return $this
*/
public function setRssi($var)
{
GPBUtil::checkInt32($var);
$this->rssi = $var;
return $this;
}
/**
* WOR channel.
*
* Generated from protobuf field <code>uint32 wor_channel = 6;</code>
* @return int
*/
public function getWorChannel()
{
return $this->wor_channel;
}
/**
* WOR channel.
*
* Generated from protobuf field <code>uint32 wor_channel = 6;</code>
* @param int $var
* @return $this
*/
public function setWorChannel($var)
{
GPBUtil::checkUint32($var);
$this->wor_channel = $var;
return $this;
}
}