api.DeviceActivation */ class DeviceActivation extends \Google\Protobuf\Internal\Message { /** * Device EUI (EUI64). * * Generated from protobuf field string dev_eui = 1; */ protected $dev_eui = ''; /** * Device address (HEX encoded). * * Generated from protobuf field string dev_addr = 2; */ protected $dev_addr = ''; /** * Application session key (HEX encoded). * * Generated from protobuf field string app_s_key = 3; */ protected $app_s_key = ''; /** * Network session encryption key (HEX encoded). * * Generated from protobuf field string nwk_s_enc_key = 4; */ protected $nwk_s_enc_key = ''; /** * Serving network session integrity key (HEX encoded). * * Generated from protobuf field string s_nwk_s_int_key = 8; */ protected $s_nwk_s_int_key = ''; /** * Forwarding network session integrity key (HEX encoded). * * Generated from protobuf field string f_nwk_s_int_key = 9; */ protected $f_nwk_s_int_key = ''; /** * Uplink frame-counter. * * Generated from protobuf field uint32 f_cnt_up = 5; */ protected $f_cnt_up = 0; /** * Downlink network frame-counter. * * Generated from protobuf field uint32 n_f_cnt_down = 6; */ protected $n_f_cnt_down = 0; /** * Downlink application frame-counter. * * Generated from protobuf field uint32 a_f_cnt_down = 10; */ protected $a_f_cnt_down = 0; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $dev_eui * Device EUI (EUI64). * @type string $dev_addr * Device address (HEX encoded). * @type string $app_s_key * Application session key (HEX encoded). * @type string $nwk_s_enc_key * Network session encryption key (HEX encoded). * @type string $s_nwk_s_int_key * Serving network session integrity key (HEX encoded). * @type string $f_nwk_s_int_key * Forwarding network session integrity key (HEX encoded). * @type int $f_cnt_up * Uplink frame-counter. * @type int $n_f_cnt_down * Downlink network frame-counter. * @type int $a_f_cnt_down * Downlink application frame-counter. * } */ public function __construct($data = NULL) { \GPBMetadata\Chirpstack\Api\Device::initOnce(); parent::__construct($data); } /** * Device EUI (EUI64). * * Generated from protobuf field string dev_eui = 1; * @return string */ public function getDevEui() { return $this->dev_eui; } /** * Device EUI (EUI64). * * Generated from protobuf field string dev_eui = 1; * @param string $var * @return $this */ public function setDevEui($var) { GPBUtil::checkString($var, True); $this->dev_eui = $var; return $this; } /** * Device address (HEX encoded). * * Generated from protobuf field string dev_addr = 2; * @return string */ public function getDevAddr() { return $this->dev_addr; } /** * Device address (HEX encoded). * * Generated from protobuf field string dev_addr = 2; * @param string $var * @return $this */ public function setDevAddr($var) { GPBUtil::checkString($var, True); $this->dev_addr = $var; return $this; } /** * Application session key (HEX encoded). * * Generated from protobuf field string app_s_key = 3; * @return string */ public function getAppSKey() { return $this->app_s_key; } /** * Application session key (HEX encoded). * * Generated from protobuf field string app_s_key = 3; * @param string $var * @return $this */ public function setAppSKey($var) { GPBUtil::checkString($var, True); $this->app_s_key = $var; return $this; } /** * Network session encryption key (HEX encoded). * * Generated from protobuf field string nwk_s_enc_key = 4; * @return string */ public function getNwkSEncKey() { return $this->nwk_s_enc_key; } /** * Network session encryption key (HEX encoded). * * Generated from protobuf field string nwk_s_enc_key = 4; * @param string $var * @return $this */ public function setNwkSEncKey($var) { GPBUtil::checkString($var, True); $this->nwk_s_enc_key = $var; return $this; } /** * Serving network session integrity key (HEX encoded). * * Generated from protobuf field string s_nwk_s_int_key = 8; * @return string */ public function getSNwkSIntKey() { return $this->s_nwk_s_int_key; } /** * Serving network session integrity key (HEX encoded). * * Generated from protobuf field string s_nwk_s_int_key = 8; * @param string $var * @return $this */ public function setSNwkSIntKey($var) { GPBUtil::checkString($var, True); $this->s_nwk_s_int_key = $var; return $this; } /** * Forwarding network session integrity key (HEX encoded). * * Generated from protobuf field string f_nwk_s_int_key = 9; * @return string */ public function getFNwkSIntKey() { return $this->f_nwk_s_int_key; } /** * Forwarding network session integrity key (HEX encoded). * * Generated from protobuf field string f_nwk_s_int_key = 9; * @param string $var * @return $this */ public function setFNwkSIntKey($var) { GPBUtil::checkString($var, True); $this->f_nwk_s_int_key = $var; return $this; } /** * Uplink frame-counter. * * Generated from protobuf field uint32 f_cnt_up = 5; * @return int */ public function getFCntUp() { return $this->f_cnt_up; } /** * Uplink frame-counter. * * Generated from protobuf field uint32 f_cnt_up = 5; * @param int $var * @return $this */ public function setFCntUp($var) { GPBUtil::checkUint32($var); $this->f_cnt_up = $var; return $this; } /** * Downlink network frame-counter. * * Generated from protobuf field uint32 n_f_cnt_down = 6; * @return int */ public function getNFCntDown() { return $this->n_f_cnt_down; } /** * Downlink network frame-counter. * * Generated from protobuf field uint32 n_f_cnt_down = 6; * @param int $var * @return $this */ public function setNFCntDown($var) { GPBUtil::checkUint32($var); $this->n_f_cnt_down = $var; return $this; } /** * Downlink application frame-counter. * * Generated from protobuf field uint32 a_f_cnt_down = 10; * @return int */ public function getAFCntDown() { return $this->a_f_cnt_down; } /** * Downlink application frame-counter. * * Generated from protobuf field uint32 a_f_cnt_down = 10; * @param int $var * @return $this */ public function setAFCntDown($var) { GPBUtil::checkUint32($var); $this->a_f_cnt_down = $var; return $this; } }