chirpstack/api/php/generated/Chirpstack/Api/DeviceActivation.php
2024-06-25 12:27:28 +01:00

338 lines
8.1 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.DeviceActivation</code>
*/
class DeviceActivation extends \Google\Protobuf\Internal\Message
{
/**
* Device EUI (EUI64).
*
* Generated from protobuf field <code>string dev_eui = 1;</code>
*/
protected $dev_eui = '';
/**
* Device address (HEX encoded).
*
* Generated from protobuf field <code>string dev_addr = 2;</code>
*/
protected $dev_addr = '';
/**
* Application session key (HEX encoded).
*
* Generated from protobuf field <code>string app_s_key = 3;</code>
*/
protected $app_s_key = '';
/**
* Network session encryption key (HEX encoded).
*
* Generated from protobuf field <code>string nwk_s_enc_key = 4;</code>
*/
protected $nwk_s_enc_key = '';
/**
* Serving network session integrity key (HEX encoded).
*
* Generated from protobuf field <code>string s_nwk_s_int_key = 8;</code>
*/
protected $s_nwk_s_int_key = '';
/**
* Forwarding network session integrity key (HEX encoded).
*
* Generated from protobuf field <code>string f_nwk_s_int_key = 9;</code>
*/
protected $f_nwk_s_int_key = '';
/**
* Uplink frame-counter.
*
* Generated from protobuf field <code>uint32 f_cnt_up = 5;</code>
*/
protected $f_cnt_up = 0;
/**
* Downlink network frame-counter.
*
* Generated from protobuf field <code>uint32 n_f_cnt_down = 6;</code>
*/
protected $n_f_cnt_down = 0;
/**
* Downlink application frame-counter.
*
* Generated from protobuf field <code>uint32 a_f_cnt_down = 10;</code>
*/
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 <code>string dev_eui = 1;</code>
* @return string
*/
public function getDevEui()
{
return $this->dev_eui;
}
/**
* Device EUI (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;
}
/**
* Device address (HEX encoded).
*
* Generated from protobuf field <code>string dev_addr = 2;</code>
* @return string
*/
public function getDevAddr()
{
return $this->dev_addr;
}
/**
* Device address (HEX encoded).
*
* Generated from protobuf field <code>string dev_addr = 2;</code>
* @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 <code>string app_s_key = 3;</code>
* @return string
*/
public function getAppSKey()
{
return $this->app_s_key;
}
/**
* Application session key (HEX encoded).
*
* Generated from protobuf field <code>string app_s_key = 3;</code>
* @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 <code>string nwk_s_enc_key = 4;</code>
* @return string
*/
public function getNwkSEncKey()
{
return $this->nwk_s_enc_key;
}
/**
* Network session encryption key (HEX encoded).
*
* Generated from protobuf field <code>string nwk_s_enc_key = 4;</code>
* @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 <code>string s_nwk_s_int_key = 8;</code>
* @return string
*/
public function getSNwkSIntKey()
{
return $this->s_nwk_s_int_key;
}
/**
* Serving network session integrity key (HEX encoded).
*
* Generated from protobuf field <code>string s_nwk_s_int_key = 8;</code>
* @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 <code>string f_nwk_s_int_key = 9;</code>
* @return string
*/
public function getFNwkSIntKey()
{
return $this->f_nwk_s_int_key;
}
/**
* Forwarding network session integrity key (HEX encoded).
*
* Generated from protobuf field <code>string f_nwk_s_int_key = 9;</code>
* @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 <code>uint32 f_cnt_up = 5;</code>
* @return int
*/
public function getFCntUp()
{
return $this->f_cnt_up;
}
/**
* Uplink frame-counter.
*
* Generated from protobuf field <code>uint32 f_cnt_up = 5;</code>
* @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 <code>uint32 n_f_cnt_down = 6;</code>
* @return int
*/
public function getNFCntDown()
{
return $this->n_f_cnt_down;
}
/**
* Downlink network frame-counter.
*
* Generated from protobuf field <code>uint32 n_f_cnt_down = 6;</code>
* @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 <code>uint32 a_f_cnt_down = 10;</code>
* @return int
*/
public function getAFCntDown()
{
return $this->a_f_cnt_down;
}
/**
* Downlink application frame-counter.
*
* Generated from protobuf field <code>uint32 a_f_cnt_down = 10;</code>
* @param int $var
* @return $this
*/
public function setAFCntDown($var)
{
GPBUtil::checkUint32($var);
$this->a_f_cnt_down = $var;
return $this;
}
}