2024-06-25 12:27:28 +01:00

142 lines
3.5 KiB
PHP
Vendored

<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/device.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.DeviceKeys</code>
*/
class DeviceKeys extends \Google\Protobuf\Internal\Message
{
/**
* DevEUI (EUI64).
*
* Generated from protobuf field <code>string dev_eui = 1;</code>
*/
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 <code>string nwk_key = 2;</code>
*/
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 <code>string app_key = 3;</code>
*/
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 <code>string dev_eui = 1;</code>
* @return string
*/
public function getDevEui()
{
return $this->dev_eui;
}
/**
* DevEUI (EUI64).
*
* Generated from protobuf field <code>string dev_eui = 1;</code>
* @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 <code>string nwk_key = 2;</code>
* @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 <code>string nwk_key = 2;</code>
* @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 <code>string app_key = 3;</code>
* @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 <code>string app_key = 3;</code>
* @param string $var
* @return $this
*/
public function setAppKey($var)
{
GPBUtil::checkString($var, True);
$this->app_key = $var;
return $this;
}
}