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

76 lines
1.9 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.ActivateDeviceRequest</code>
*/
class ActivateDeviceRequest extends \Google\Protobuf\Internal\Message
{
/**
* Device activation object.
*
* Generated from protobuf field <code>.api.DeviceActivation device_activation = 1;</code>
*/
protected $device_activation = null;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Chirpstack\Api\DeviceActivation $device_activation
* Device activation object.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Device::initOnce();
parent::__construct($data);
}
/**
* Device activation object.
*
* Generated from protobuf field <code>.api.DeviceActivation device_activation = 1;</code>
* @return \Chirpstack\Api\DeviceActivation|null
*/
public function getDeviceActivation()
{
return $this->device_activation;
}
public function hasDeviceActivation()
{
return isset($this->device_activation);
}
public function clearDeviceActivation()
{
unset($this->device_activation);
}
/**
* Device activation object.
*
* Generated from protobuf field <code>.api.DeviceActivation device_activation = 1;</code>
* @param \Chirpstack\Api\DeviceActivation $var
* @return $this
*/
public function setDeviceActivation($var)
{
GPBUtil::checkMessage($var, \Chirpstack\Api\DeviceActivation::class);
$this->device_activation = $var;
return $this;
}
}