mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-04-26 05:49:51 +00:00
392 lines
9.1 KiB
PHP
Vendored
392 lines
9.1 KiB
PHP
Vendored
<?php
|
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
# source: api/device_profile.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.DeviceProfileListItem</code>
|
|
*/
|
|
class DeviceProfileListItem extends \Google\Protobuf\Internal\Message
|
|
{
|
|
/**
|
|
* Device-profile ID (UUID).
|
|
*
|
|
* Generated from protobuf field <code>string id = 1;</code>
|
|
*/
|
|
protected $id = '';
|
|
/**
|
|
* Created at timestamp.
|
|
*
|
|
* Generated from protobuf field <code>.google.protobuf.Timestamp created_at = 2;</code>
|
|
*/
|
|
protected $created_at = null;
|
|
/**
|
|
* Last update timestamp.
|
|
*
|
|
* Generated from protobuf field <code>.google.protobuf.Timestamp updated_at = 3;</code>
|
|
*/
|
|
protected $updated_at = null;
|
|
/**
|
|
* Name.
|
|
*
|
|
* Generated from protobuf field <code>string name = 4;</code>
|
|
*/
|
|
protected $name = '';
|
|
/**
|
|
* Region.
|
|
*
|
|
* Generated from protobuf field <code>.common.Region region = 5;</code>
|
|
*/
|
|
protected $region = 0;
|
|
/**
|
|
* LoRaWAN mac-version.
|
|
*
|
|
* Generated from protobuf field <code>.common.MacVersion mac_version = 6;</code>
|
|
*/
|
|
protected $mac_version = 0;
|
|
/**
|
|
* Regional parameters revision.
|
|
*
|
|
* Generated from protobuf field <code>.common.RegParamsRevision reg_params_revision = 7;</code>
|
|
*/
|
|
protected $reg_params_revision = 0;
|
|
/**
|
|
* Supports OTAA.
|
|
*
|
|
* Generated from protobuf field <code>bool supports_otaa = 8;</code>
|
|
*/
|
|
protected $supports_otaa = false;
|
|
/**
|
|
* Supports Class-B.
|
|
*
|
|
* Generated from protobuf field <code>bool supports_class_b = 9;</code>
|
|
*/
|
|
protected $supports_class_b = false;
|
|
/**
|
|
* Supports Class-C.
|
|
*
|
|
* Generated from protobuf field <code>bool supports_class_c = 10;</code>
|
|
*/
|
|
protected $supports_class_c = false;
|
|
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param array $data {
|
|
* Optional. Data for populating the Message object.
|
|
*
|
|
* @type string $id
|
|
* Device-profile ID (UUID).
|
|
* @type \Google\Protobuf\Timestamp $created_at
|
|
* Created at timestamp.
|
|
* @type \Google\Protobuf\Timestamp $updated_at
|
|
* Last update timestamp.
|
|
* @type string $name
|
|
* Name.
|
|
* @type int $region
|
|
* Region.
|
|
* @type int $mac_version
|
|
* LoRaWAN mac-version.
|
|
* @type int $reg_params_revision
|
|
* Regional parameters revision.
|
|
* @type bool $supports_otaa
|
|
* Supports OTAA.
|
|
* @type bool $supports_class_b
|
|
* Supports Class-B.
|
|
* @type bool $supports_class_c
|
|
* Supports Class-C.
|
|
* }
|
|
*/
|
|
public function __construct($data = NULL) {
|
|
\GPBMetadata\Chirpstack\Api\DeviceProfile::initOnce();
|
|
parent::__construct($data);
|
|
}
|
|
|
|
/**
|
|
* Device-profile ID (UUID).
|
|
*
|
|
* Generated from protobuf field <code>string id = 1;</code>
|
|
* @return string
|
|
*/
|
|
public function getId()
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
/**
|
|
* Device-profile ID (UUID).
|
|
*
|
|
* Generated from protobuf field <code>string id = 1;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setId($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->id = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Created at timestamp.
|
|
*
|
|
* Generated from protobuf field <code>.google.protobuf.Timestamp created_at = 2;</code>
|
|
* @return \Google\Protobuf\Timestamp|null
|
|
*/
|
|
public function getCreatedAt()
|
|
{
|
|
return $this->created_at;
|
|
}
|
|
|
|
public function hasCreatedAt()
|
|
{
|
|
return isset($this->created_at);
|
|
}
|
|
|
|
public function clearCreatedAt()
|
|
{
|
|
unset($this->created_at);
|
|
}
|
|
|
|
/**
|
|
* Created at timestamp.
|
|
*
|
|
* Generated from protobuf field <code>.google.protobuf.Timestamp created_at = 2;</code>
|
|
* @param \Google\Protobuf\Timestamp $var
|
|
* @return $this
|
|
*/
|
|
public function setCreatedAt($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
|
|
$this->created_at = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Last update timestamp.
|
|
*
|
|
* Generated from protobuf field <code>.google.protobuf.Timestamp updated_at = 3;</code>
|
|
* @return \Google\Protobuf\Timestamp|null
|
|
*/
|
|
public function getUpdatedAt()
|
|
{
|
|
return $this->updated_at;
|
|
}
|
|
|
|
public function hasUpdatedAt()
|
|
{
|
|
return isset($this->updated_at);
|
|
}
|
|
|
|
public function clearUpdatedAt()
|
|
{
|
|
unset($this->updated_at);
|
|
}
|
|
|
|
/**
|
|
* Last update timestamp.
|
|
*
|
|
* Generated from protobuf field <code>.google.protobuf.Timestamp updated_at = 3;</code>
|
|
* @param \Google\Protobuf\Timestamp $var
|
|
* @return $this
|
|
*/
|
|
public function setUpdatedAt($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
|
|
$this->updated_at = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Name.
|
|
*
|
|
* Generated from protobuf field <code>string name = 4;</code>
|
|
* @return string
|
|
*/
|
|
public function getName()
|
|
{
|
|
return $this->name;
|
|
}
|
|
|
|
/**
|
|
* Name.
|
|
*
|
|
* Generated from protobuf field <code>string name = 4;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setName($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->name = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Region.
|
|
*
|
|
* Generated from protobuf field <code>.common.Region region = 5;</code>
|
|
* @return int
|
|
*/
|
|
public function getRegion()
|
|
{
|
|
return $this->region;
|
|
}
|
|
|
|
/**
|
|
* Region.
|
|
*
|
|
* Generated from protobuf field <code>.common.Region region = 5;</code>
|
|
* @param int $var
|
|
* @return $this
|
|
*/
|
|
public function setRegion($var)
|
|
{
|
|
GPBUtil::checkEnum($var, \Chirpstack\Common\Region::class);
|
|
$this->region = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* LoRaWAN mac-version.
|
|
*
|
|
* Generated from protobuf field <code>.common.MacVersion mac_version = 6;</code>
|
|
* @return int
|
|
*/
|
|
public function getMacVersion()
|
|
{
|
|
return $this->mac_version;
|
|
}
|
|
|
|
/**
|
|
* LoRaWAN mac-version.
|
|
*
|
|
* Generated from protobuf field <code>.common.MacVersion mac_version = 6;</code>
|
|
* @param int $var
|
|
* @return $this
|
|
*/
|
|
public function setMacVersion($var)
|
|
{
|
|
GPBUtil::checkEnum($var, \Chirpstack\Common\MacVersion::class);
|
|
$this->mac_version = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Regional parameters revision.
|
|
*
|
|
* Generated from protobuf field <code>.common.RegParamsRevision reg_params_revision = 7;</code>
|
|
* @return int
|
|
*/
|
|
public function getRegParamsRevision()
|
|
{
|
|
return $this->reg_params_revision;
|
|
}
|
|
|
|
/**
|
|
* Regional parameters revision.
|
|
*
|
|
* Generated from protobuf field <code>.common.RegParamsRevision reg_params_revision = 7;</code>
|
|
* @param int $var
|
|
* @return $this
|
|
*/
|
|
public function setRegParamsRevision($var)
|
|
{
|
|
GPBUtil::checkEnum($var, \Chirpstack\Common\RegParamsRevision::class);
|
|
$this->reg_params_revision = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Supports OTAA.
|
|
*
|
|
* Generated from protobuf field <code>bool supports_otaa = 8;</code>
|
|
* @return bool
|
|
*/
|
|
public function getSupportsOtaa()
|
|
{
|
|
return $this->supports_otaa;
|
|
}
|
|
|
|
/**
|
|
* Supports OTAA.
|
|
*
|
|
* Generated from protobuf field <code>bool supports_otaa = 8;</code>
|
|
* @param bool $var
|
|
* @return $this
|
|
*/
|
|
public function setSupportsOtaa($var)
|
|
{
|
|
GPBUtil::checkBool($var);
|
|
$this->supports_otaa = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Supports Class-B.
|
|
*
|
|
* Generated from protobuf field <code>bool supports_class_b = 9;</code>
|
|
* @return bool
|
|
*/
|
|
public function getSupportsClassB()
|
|
{
|
|
return $this->supports_class_b;
|
|
}
|
|
|
|
/**
|
|
* Supports Class-B.
|
|
*
|
|
* Generated from protobuf field <code>bool supports_class_b = 9;</code>
|
|
* @param bool $var
|
|
* @return $this
|
|
*/
|
|
public function setSupportsClassB($var)
|
|
{
|
|
GPBUtil::checkBool($var);
|
|
$this->supports_class_b = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Supports Class-C.
|
|
*
|
|
* Generated from protobuf field <code>bool supports_class_c = 10;</code>
|
|
* @return bool
|
|
*/
|
|
public function getSupportsClassC()
|
|
{
|
|
return $this->supports_class_c;
|
|
}
|
|
|
|
/**
|
|
* Supports Class-C.
|
|
*
|
|
* Generated from protobuf field <code>bool supports_class_c = 10;</code>
|
|
* @param bool $var
|
|
* @return $this
|
|
*/
|
|
public function setSupportsClassC($var)
|
|
{
|
|
GPBUtil::checkBool($var);
|
|
$this->supports_class_c = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
}
|
|
|