gw.DownlinkTxAck */ class DownlinkTxAck extends \Google\Protobuf\Internal\Message { /** * Gateway ID (deprecated). * * Generated from protobuf field bytes gateway_id_legacy = 1; */ protected $gateway_id_legacy = ''; /** * Gateway ID. * * Generated from protobuf field string gateway_id = 6; */ protected $gateway_id = ''; /** * Downlink ID. * * Generated from protobuf field uint32 downlink_id = 2; */ protected $downlink_id = 0; /** * Downlink ID (deprecated). * * Generated from protobuf field bytes downlink_id_legacy = 4; */ protected $downlink_id_legacy = ''; /** * Downlink frame items. * This list has the same length as the request and indicates which * downlink frame has been emitted of the requested list (or why it failed). * Note that at most one item has a positive acknowledgement. * * Generated from protobuf field repeated .gw.DownlinkTxAckItem items = 5; */ private $items; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $gateway_id_legacy * Gateway ID (deprecated). * @type string $gateway_id * Gateway ID. * @type int $downlink_id * Downlink ID. * @type string $downlink_id_legacy * Downlink ID (deprecated). * @type array<\Chirpstack\Gateway\DownlinkTxAckItem>|\Google\Protobuf\Internal\RepeatedField $items * Downlink frame items. * This list has the same length as the request and indicates which * downlink frame has been emitted of the requested list (or why it failed). * Note that at most one item has a positive acknowledgement. * } */ public function __construct($data = NULL) { \GPBMetadata\Chirpstack\Gateway\Gw::initOnce(); parent::__construct($data); } /** * Gateway ID (deprecated). * * Generated from protobuf field bytes gateway_id_legacy = 1; * @return string */ public function getGatewayIdLegacy() { return $this->gateway_id_legacy; } /** * Gateway ID (deprecated). * * Generated from protobuf field bytes gateway_id_legacy = 1; * @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 = 6; * @return string */ public function getGatewayId() { return $this->gateway_id; } /** * Gateway ID. * * Generated from protobuf field string gateway_id = 6; * @param string $var * @return $this */ public function setGatewayId($var) { GPBUtil::checkString($var, True); $this->gateway_id = $var; return $this; } /** * Downlink ID. * * Generated from protobuf field uint32 downlink_id = 2; * @return int */ public function getDownlinkId() { return $this->downlink_id; } /** * Downlink ID. * * Generated from protobuf field uint32 downlink_id = 2; * @param int $var * @return $this */ public function setDownlinkId($var) { GPBUtil::checkUint32($var); $this->downlink_id = $var; return $this; } /** * Downlink ID (deprecated). * * Generated from protobuf field bytes downlink_id_legacy = 4; * @return string */ public function getDownlinkIdLegacy() { return $this->downlink_id_legacy; } /** * Downlink ID (deprecated). * * 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 list has the same length as the request and indicates which * downlink frame has been emitted of the requested list (or why it failed). * Note that at most one item has a positive acknowledgement. * * Generated from protobuf field repeated .gw.DownlinkTxAckItem items = 5; * @return \Google\Protobuf\Internal\RepeatedField */ public function getItems() { return $this->items; } /** * Downlink frame items. * This list has the same length as the request and indicates which * downlink frame has been emitted of the requested list (or why it failed). * Note that at most one item has a positive acknowledgement. * * Generated from protobuf field repeated .gw.DownlinkTxAckItem items = 5; * @param array<\Chirpstack\Gateway\DownlinkTxAckItem>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setItems($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Chirpstack\Gateway\DownlinkTxAckItem::class); $this->items = $arr; return $this; } }