common.KeyEnvelope */ class KeyEnvelope extends \Google\Protobuf\Internal\Message { /** * KEK label. * * Generated from protobuf field string kek_label = 1; */ protected $kek_label = ''; /** * AES key (when the kek_label is set, this value must first be decrypted). * * Generated from protobuf field bytes aes_key = 2; */ protected $aes_key = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $kek_label * KEK label. * @type string $aes_key * AES key (when the kek_label is set, this value must first be decrypted). * } */ public function __construct($data = NULL) { \GPBMetadata\Chirpstack\Common\Common::initOnce(); parent::__construct($data); } /** * KEK label. * * Generated from protobuf field string kek_label = 1; * @return string */ public function getKekLabel() { return $this->kek_label; } /** * KEK label. * * Generated from protobuf field string kek_label = 1; * @param string $var * @return $this */ public function setKekLabel($var) { GPBUtil::checkString($var, True); $this->kek_label = $var; return $this; } /** * AES key (when the kek_label is set, this value must first be decrypted). * * Generated from protobuf field bytes aes_key = 2; * @return string */ public function getAesKey() { return $this->aes_key; } /** * AES key (when the kek_label is set, this value must first be decrypted). * * Generated from protobuf field bytes aes_key = 2; * @param string $var * @return $this */ public function setAesKey($var) { GPBUtil::checkString($var, False); $this->aes_key = $var; return $this; } }