stream.UplinkFrameLog */ class UplinkFrameLog extends \Google\Protobuf\Internal\Message { /** * PHYPayload. * * Generated from protobuf field bytes phy_payload = 1; */ protected $phy_payload = ''; /** * TX meta-data. * * Generated from protobuf field .gw.UplinkTxInfo tx_info = 2; */ protected $tx_info = null; /** * RX meta-data. * * Generated from protobuf field repeated .gw.UplinkRxInfo rx_info = 3; */ private $rx_info; /** * Message type. * * Generated from protobuf field .common.MType m_type = 4; */ protected $m_type = 0; /** * Device address (optional). * * Generated from protobuf field string dev_addr = 5; */ protected $dev_addr = ''; /** * Device EUI (optional). * * Generated from protobuf field string dev_eui = 6; */ protected $dev_eui = ''; /** * Time. * * Generated from protobuf field .google.protobuf.Timestamp time = 7; */ protected $time = null; /** * Plaintext f_opts mac-commands. * * Generated from protobuf field bool plaintext_f_opts = 8; */ protected $plaintext_f_opts = false; /** * Plaintext frm_payload. * * Generated from protobuf field bool plaintext_frm_payload = 9; */ protected $plaintext_frm_payload = false; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $phy_payload * PHYPayload. * @type \Chirpstack\Gateway\UplinkTxInfo $tx_info * TX meta-data. * @type array<\Chirpstack\Gateway\UplinkRxInfo>|\Google\Protobuf\Internal\RepeatedField $rx_info * RX meta-data. * @type int $m_type * Message type. * @type string $dev_addr * Device address (optional). * @type string $dev_eui * Device EUI (optional). * @type \Google\Protobuf\Timestamp $time * Time. * @type bool $plaintext_f_opts * Plaintext f_opts mac-commands. * @type bool $plaintext_frm_payload * Plaintext frm_payload. * } */ public function __construct($data = NULL) { \GPBMetadata\Chirpstack\Stream\Frame::initOnce(); parent::__construct($data); } /** * PHYPayload. * * Generated from protobuf field bytes phy_payload = 1; * @return string */ public function getPhyPayload() { return $this->phy_payload; } /** * PHYPayload. * * Generated from protobuf field bytes phy_payload = 1; * @param string $var * @return $this */ public function setPhyPayload($var) { GPBUtil::checkString($var, False); $this->phy_payload = $var; return $this; } /** * TX meta-data. * * Generated from protobuf field .gw.UplinkTxInfo tx_info = 2; * @return \Chirpstack\Gateway\UplinkTxInfo|null */ public function getTxInfo() { return $this->tx_info; } public function hasTxInfo() { return isset($this->tx_info); } public function clearTxInfo() { unset($this->tx_info); } /** * TX meta-data. * * Generated from protobuf field .gw.UplinkTxInfo tx_info = 2; * @param \Chirpstack\Gateway\UplinkTxInfo $var * @return $this */ public function setTxInfo($var) { GPBUtil::checkMessage($var, \Chirpstack\Gateway\UplinkTxInfo::class); $this->tx_info = $var; return $this; } /** * RX meta-data. * * Generated from protobuf field repeated .gw.UplinkRxInfo rx_info = 3; * @return \Google\Protobuf\Internal\RepeatedField */ public function getRxInfo() { return $this->rx_info; } /** * RX meta-data. * * Generated from protobuf field repeated .gw.UplinkRxInfo rx_info = 3; * @param array<\Chirpstack\Gateway\UplinkRxInfo>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setRxInfo($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Chirpstack\Gateway\UplinkRxInfo::class); $this->rx_info = $arr; return $this; } /** * Message type. * * Generated from protobuf field .common.MType m_type = 4; * @return int */ public function getMType() { return $this->m_type; } /** * Message type. * * Generated from protobuf field .common.MType m_type = 4; * @param int $var * @return $this */ public function setMType($var) { GPBUtil::checkEnum($var, \Chirpstack\Common\MType::class); $this->m_type = $var; return $this; } /** * Device address (optional). * * Generated from protobuf field string dev_addr = 5; * @return string */ public function getDevAddr() { return $this->dev_addr; } /** * Device address (optional). * * Generated from protobuf field string dev_addr = 5; * @param string $var * @return $this */ public function setDevAddr($var) { GPBUtil::checkString($var, True); $this->dev_addr = $var; return $this; } /** * Device EUI (optional). * * Generated from protobuf field string dev_eui = 6; * @return string */ public function getDevEui() { return $this->dev_eui; } /** * Device EUI (optional). * * Generated from protobuf field string dev_eui = 6; * @param string $var * @return $this */ public function setDevEui($var) { GPBUtil::checkString($var, True); $this->dev_eui = $var; return $this; } /** * Time. * * Generated from protobuf field .google.protobuf.Timestamp time = 7; * @return \Google\Protobuf\Timestamp|null */ public function getTime() { return $this->time; } public function hasTime() { return isset($this->time); } public function clearTime() { unset($this->time); } /** * Time. * * Generated from protobuf field .google.protobuf.Timestamp time = 7; * @param \Google\Protobuf\Timestamp $var * @return $this */ public function setTime($var) { GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); $this->time = $var; return $this; } /** * Plaintext f_opts mac-commands. * * Generated from protobuf field bool plaintext_f_opts = 8; * @return bool */ public function getPlaintextFOpts() { return $this->plaintext_f_opts; } /** * Plaintext f_opts mac-commands. * * Generated from protobuf field bool plaintext_f_opts = 8; * @param bool $var * @return $this */ public function setPlaintextFOpts($var) { GPBUtil::checkBool($var); $this->plaintext_f_opts = $var; return $this; } /** * Plaintext frm_payload. * * Generated from protobuf field bool plaintext_frm_payload = 9; * @return bool */ public function getPlaintextFrmPayload() { return $this->plaintext_frm_payload; } /** * Plaintext frm_payload. * * Generated from protobuf field bool plaintext_frm_payload = 9; * @param bool $var * @return $this */ public function setPlaintextFrmPayload($var) { GPBUtil::checkBool($var); $this->plaintext_frm_payload = $var; return $this; } }