mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-04-26 05:49:51 +00:00
226 lines
6.1 KiB
PHP
Vendored
226 lines
6.1 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.DownlinkFrame</code>
|
|
*/
|
|
class DownlinkFrame extends \Google\Protobuf\Internal\Message
|
|
{
|
|
/**
|
|
* Downlink ID.
|
|
*
|
|
* Generated from protobuf field <code>uint32 downlink_id = 3;</code>
|
|
*/
|
|
protected $downlink_id = 0;
|
|
/**
|
|
* Downlink ID (UUID).
|
|
* Deprecated: use downlink_id.
|
|
*
|
|
* Generated from protobuf field <code>bytes downlink_id_legacy = 4;</code>
|
|
*/
|
|
protected $downlink_id_legacy = '';
|
|
/**
|
|
* Downlink frame items.
|
|
* This makes it possible to send multiple downlink opportunities to the
|
|
* gateway at once (e.g. RX1 and RX2 in LoRaWAN). The first item has the
|
|
* highest priority, the last the lowest. The gateway will emit at most
|
|
* one item.
|
|
*
|
|
* Generated from protobuf field <code>repeated .gw.DownlinkFrameItem items = 5;</code>
|
|
*/
|
|
private $items;
|
|
/**
|
|
* Gateway ID.
|
|
* Deprecated: use gateway_id
|
|
*
|
|
* Generated from protobuf field <code>bytes gateway_id_legacy = 6;</code>
|
|
*/
|
|
protected $gateway_id_legacy = '';
|
|
/**
|
|
* Gateway ID.
|
|
*
|
|
* Generated from protobuf field <code>string gateway_id = 7;</code>
|
|
*/
|
|
protected $gateway_id = '';
|
|
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param array $data {
|
|
* Optional. Data for populating the Message object.
|
|
*
|
|
* @type int $downlink_id
|
|
* Downlink ID.
|
|
* @type string $downlink_id_legacy
|
|
* Downlink ID (UUID).
|
|
* Deprecated: use downlink_id.
|
|
* @type array<\Chirpstack\Gateway\DownlinkFrameItem>|\Google\Protobuf\Internal\RepeatedField $items
|
|
* Downlink frame items.
|
|
* This makes it possible to send multiple downlink opportunities to the
|
|
* gateway at once (e.g. RX1 and RX2 in LoRaWAN). The first item has the
|
|
* highest priority, the last the lowest. The gateway will emit at most
|
|
* one item.
|
|
* @type string $gateway_id_legacy
|
|
* Gateway ID.
|
|
* Deprecated: use gateway_id
|
|
* @type string $gateway_id
|
|
* Gateway ID.
|
|
* }
|
|
*/
|
|
public function __construct($data = NULL) {
|
|
\GPBMetadata\Chirpstack\Gateway\Gw::initOnce();
|
|
parent::__construct($data);
|
|
}
|
|
|
|
/**
|
|
* Downlink ID.
|
|
*
|
|
* Generated from protobuf field <code>uint32 downlink_id = 3;</code>
|
|
* @return int
|
|
*/
|
|
public function getDownlinkId()
|
|
{
|
|
return $this->downlink_id;
|
|
}
|
|
|
|
/**
|
|
* Downlink ID.
|
|
*
|
|
* Generated from protobuf field <code>uint32 downlink_id = 3;</code>
|
|
* @param int $var
|
|
* @return $this
|
|
*/
|
|
public function setDownlinkId($var)
|
|
{
|
|
GPBUtil::checkUint32($var);
|
|
$this->downlink_id = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Downlink ID (UUID).
|
|
* Deprecated: use downlink_id.
|
|
*
|
|
* Generated from protobuf field <code>bytes downlink_id_legacy = 4;</code>
|
|
* @return string
|
|
*/
|
|
public function getDownlinkIdLegacy()
|
|
{
|
|
return $this->downlink_id_legacy;
|
|
}
|
|
|
|
/**
|
|
* Downlink ID (UUID).
|
|
* Deprecated: use downlink_id.
|
|
*
|
|
* Generated from protobuf field <code>bytes downlink_id_legacy = 4;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setDownlinkIdLegacy($var)
|
|
{
|
|
GPBUtil::checkString($var, False);
|
|
$this->downlink_id_legacy = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Downlink frame items.
|
|
* This makes it possible to send multiple downlink opportunities to the
|
|
* gateway at once (e.g. RX1 and RX2 in LoRaWAN). The first item has the
|
|
* highest priority, the last the lowest. The gateway will emit at most
|
|
* one item.
|
|
*
|
|
* Generated from protobuf field <code>repeated .gw.DownlinkFrameItem items = 5;</code>
|
|
* @return \Google\Protobuf\Internal\RepeatedField
|
|
*/
|
|
public function getItems()
|
|
{
|
|
return $this->items;
|
|
}
|
|
|
|
/**
|
|
* Downlink frame items.
|
|
* This makes it possible to send multiple downlink opportunities to the
|
|
* gateway at once (e.g. RX1 and RX2 in LoRaWAN). The first item has the
|
|
* highest priority, the last the lowest. The gateway will emit at most
|
|
* one item.
|
|
*
|
|
* Generated from protobuf field <code>repeated .gw.DownlinkFrameItem items = 5;</code>
|
|
* @param array<\Chirpstack\Gateway\DownlinkFrameItem>|\Google\Protobuf\Internal\RepeatedField $var
|
|
* @return $this
|
|
*/
|
|
public function setItems($var)
|
|
{
|
|
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Chirpstack\Gateway\DownlinkFrameItem::class);
|
|
$this->items = $arr;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gateway ID.
|
|
* Deprecated: use gateway_id
|
|
*
|
|
* Generated from protobuf field <code>bytes gateway_id_legacy = 6;</code>
|
|
* @return string
|
|
*/
|
|
public function getGatewayIdLegacy()
|
|
{
|
|
return $this->gateway_id_legacy;
|
|
}
|
|
|
|
/**
|
|
* Gateway ID.
|
|
* Deprecated: use gateway_id
|
|
*
|
|
* Generated from protobuf field <code>bytes gateway_id_legacy = 6;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setGatewayIdLegacy($var)
|
|
{
|
|
GPBUtil::checkString($var, False);
|
|
$this->gateway_id_legacy = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gateway ID.
|
|
*
|
|
* Generated from protobuf field <code>string gateway_id = 7;</code>
|
|
* @return string
|
|
*/
|
|
public function getGatewayId()
|
|
{
|
|
return $this->gateway_id;
|
|
}
|
|
|
|
/**
|
|
* Gateway ID.
|
|
*
|
|
* Generated from protobuf field <code>string gateway_id = 7;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setGatewayId($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->gateway_id = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
}
|
|
|