gw.DownlinkFrame
*/
class DownlinkFrame extends \Google\Protobuf\Internal\Message
{
/**
* Downlink ID.
*
* Generated from protobuf field uint32 downlink_id = 3;
*/
protected $downlink_id = 0;
/**
* Downlink ID (UUID).
* Deprecated: use downlink_id.
*
* Generated from protobuf field bytes downlink_id_legacy = 4;
*/
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 repeated .gw.DownlinkFrameItem items = 5;
*/
private $items;
/**
* Gateway ID.
* Deprecated: use gateway_id
*
* Generated from protobuf field bytes gateway_id_legacy = 6;
*/
protected $gateway_id_legacy = '';
/**
* Gateway ID.
*
* Generated from protobuf field string gateway_id = 7;
*/
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 uint32 downlink_id = 3;
* @return int
*/
public function getDownlinkId()
{
return $this->downlink_id;
}
/**
* Downlink ID.
*
* Generated from protobuf field uint32 downlink_id = 3;
* @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 bytes downlink_id_legacy = 4;
* @return string
*/
public function getDownlinkIdLegacy()
{
return $this->downlink_id_legacy;
}
/**
* Downlink ID (UUID).
* Deprecated: use downlink_id.
*
* Generated from protobuf field bytes downlink_id_legacy = 4;
* @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 repeated .gw.DownlinkFrameItem items = 5;
* @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 repeated .gw.DownlinkFrameItem items = 5;
* @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 bytes gateway_id_legacy = 6;
* @return string
*/
public function getGatewayIdLegacy()
{
return $this->gateway_id_legacy;
}
/**
* Gateway ID.
* Deprecated: use gateway_id
*
* Generated from protobuf field bytes gateway_id_legacy = 6;
* @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 string gateway_id = 7;
* @return string
*/
public function getGatewayId()
{
return $this->gateway_id;
}
/**
* Gateway ID.
*
* Generated from protobuf field string gateway_id = 7;
* @param string $var
* @return $this
*/
public function setGatewayId($var)
{
GPBUtil::checkString($var, True);
$this->gateway_id = $var;
return $this;
}
}