api.DeviceKeys */ class DeviceKeys extends \Google\Protobuf\Internal\Message { /** * DevEUI (EUI64). * * Generated from protobuf field string dev_eui = 1; */ protected $dev_eui = ''; /** * Network root key (128 bit). * Note: For LoRaWAN 1.0.x, use this field for the LoRaWAN 1.0.x 'AppKey`! * * Generated from protobuf field string nwk_key = 2; */ protected $nwk_key = ''; /** * Application root key (128 bit). * Note: This field only needs to be set for LoRaWAN 1.1.x devices! * * Generated from protobuf field string app_key = 3; */ protected $app_key = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $dev_eui * DevEUI (EUI64). * @type string $nwk_key * Network root key (128 bit). * Note: For LoRaWAN 1.0.x, use this field for the LoRaWAN 1.0.x 'AppKey`! * @type string $app_key * Application root key (128 bit). * Note: This field only needs to be set for LoRaWAN 1.1.x devices! * } */ public function __construct($data = NULL) { \GPBMetadata\Chirpstack\Api\Device::initOnce(); parent::__construct($data); } /** * DevEUI (EUI64). * * Generated from protobuf field string dev_eui = 1; * @return string */ public function getDevEui() { return $this->dev_eui; } /** * DevEUI (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; } /** * Network root key (128 bit). * Note: For LoRaWAN 1.0.x, use this field for the LoRaWAN 1.0.x 'AppKey`! * * Generated from protobuf field string nwk_key = 2; * @return string */ public function getNwkKey() { return $this->nwk_key; } /** * Network root key (128 bit). * Note: For LoRaWAN 1.0.x, use this field for the LoRaWAN 1.0.x 'AppKey`! * * Generated from protobuf field string nwk_key = 2; * @param string $var * @return $this */ public function setNwkKey($var) { GPBUtil::checkString($var, True); $this->nwk_key = $var; return $this; } /** * Application root key (128 bit). * Note: This field only needs to be set for LoRaWAN 1.1.x devices! * * Generated from protobuf field string app_key = 3; * @return string */ public function getAppKey() { return $this->app_key; } /** * Application root key (128 bit). * Note: This field only needs to be set for LoRaWAN 1.1.x devices! * * Generated from protobuf field string app_key = 3; * @param string $var * @return $this */ public function setAppKey($var) { GPBUtil::checkString($var, True); $this->app_key = $var; return $this; } }