mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-04-26 05:49:51 +00:00
378 lines
8.8 KiB
PHP
Vendored
378 lines
8.8 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.DeviceListItem</code>
|
|
*/
|
|
class DeviceListItem extends \Google\Protobuf\Internal\Message
|
|
{
|
|
/**
|
|
* DevEUI (EUI64).
|
|
*
|
|
* Generated from protobuf field <code>string dev_eui = 1;</code>
|
|
*/
|
|
protected $dev_eui = '';
|
|
/**
|
|
* 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;
|
|
/**
|
|
* Last seen at timestamp.
|
|
*
|
|
* Generated from protobuf field <code>.google.protobuf.Timestamp last_seen_at = 4;</code>
|
|
*/
|
|
protected $last_seen_at = null;
|
|
/**
|
|
* Name.
|
|
*
|
|
* Generated from protobuf field <code>string name = 5;</code>
|
|
*/
|
|
protected $name = '';
|
|
/**
|
|
* Description.
|
|
*
|
|
* Generated from protobuf field <code>string description = 6;</code>
|
|
*/
|
|
protected $description = '';
|
|
/**
|
|
* Device-profile ID (UUID).
|
|
*
|
|
* Generated from protobuf field <code>string device_profile_id = 7;</code>
|
|
*/
|
|
protected $device_profile_id = '';
|
|
/**
|
|
* Device-profile name.
|
|
*
|
|
* Generated from protobuf field <code>string device_profile_name = 8;</code>
|
|
*/
|
|
protected $device_profile_name = '';
|
|
/**
|
|
* Device status.
|
|
*
|
|
* Generated from protobuf field <code>.api.DeviceStatus device_status = 9;</code>
|
|
*/
|
|
protected $device_status = null;
|
|
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param array $data {
|
|
* Optional. Data for populating the Message object.
|
|
*
|
|
* @type string $dev_eui
|
|
* DevEUI (EUI64).
|
|
* @type \Google\Protobuf\Timestamp $created_at
|
|
* Created at timestamp.
|
|
* @type \Google\Protobuf\Timestamp $updated_at
|
|
* Last update timestamp.
|
|
* @type \Google\Protobuf\Timestamp $last_seen_at
|
|
* Last seen at timestamp.
|
|
* @type string $name
|
|
* Name.
|
|
* @type string $description
|
|
* Description.
|
|
* @type string $device_profile_id
|
|
* Device-profile ID (UUID).
|
|
* @type string $device_profile_name
|
|
* Device-profile name.
|
|
* @type \Chirpstack\Api\DeviceStatus $device_status
|
|
* Device status.
|
|
* }
|
|
*/
|
|
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;
|
|
}
|
|
|
|
/**
|
|
* 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;
|
|
}
|
|
|
|
/**
|
|
* Last seen at timestamp.
|
|
*
|
|
* Generated from protobuf field <code>.google.protobuf.Timestamp last_seen_at = 4;</code>
|
|
* @return \Google\Protobuf\Timestamp|null
|
|
*/
|
|
public function getLastSeenAt()
|
|
{
|
|
return $this->last_seen_at;
|
|
}
|
|
|
|
public function hasLastSeenAt()
|
|
{
|
|
return isset($this->last_seen_at);
|
|
}
|
|
|
|
public function clearLastSeenAt()
|
|
{
|
|
unset($this->last_seen_at);
|
|
}
|
|
|
|
/**
|
|
* Last seen at timestamp.
|
|
*
|
|
* Generated from protobuf field <code>.google.protobuf.Timestamp last_seen_at = 4;</code>
|
|
* @param \Google\Protobuf\Timestamp $var
|
|
* @return $this
|
|
*/
|
|
public function setLastSeenAt($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
|
|
$this->last_seen_at = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Name.
|
|
*
|
|
* Generated from protobuf field <code>string name = 5;</code>
|
|
* @return string
|
|
*/
|
|
public function getName()
|
|
{
|
|
return $this->name;
|
|
}
|
|
|
|
/**
|
|
* Name.
|
|
*
|
|
* Generated from protobuf field <code>string name = 5;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setName($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->name = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Description.
|
|
*
|
|
* Generated from protobuf field <code>string description = 6;</code>
|
|
* @return string
|
|
*/
|
|
public function getDescription()
|
|
{
|
|
return $this->description;
|
|
}
|
|
|
|
/**
|
|
* Description.
|
|
*
|
|
* Generated from protobuf field <code>string description = 6;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setDescription($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->description = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Device-profile ID (UUID).
|
|
*
|
|
* Generated from protobuf field <code>string device_profile_id = 7;</code>
|
|
* @return string
|
|
*/
|
|
public function getDeviceProfileId()
|
|
{
|
|
return $this->device_profile_id;
|
|
}
|
|
|
|
/**
|
|
* Device-profile ID (UUID).
|
|
*
|
|
* Generated from protobuf field <code>string device_profile_id = 7;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setDeviceProfileId($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->device_profile_id = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Device-profile name.
|
|
*
|
|
* Generated from protobuf field <code>string device_profile_name = 8;</code>
|
|
* @return string
|
|
*/
|
|
public function getDeviceProfileName()
|
|
{
|
|
return $this->device_profile_name;
|
|
}
|
|
|
|
/**
|
|
* Device-profile name.
|
|
*
|
|
* Generated from protobuf field <code>string device_profile_name = 8;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setDeviceProfileName($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->device_profile_name = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Device status.
|
|
*
|
|
* Generated from protobuf field <code>.api.DeviceStatus device_status = 9;</code>
|
|
* @return \Chirpstack\Api\DeviceStatus|null
|
|
*/
|
|
public function getDeviceStatus()
|
|
{
|
|
return $this->device_status;
|
|
}
|
|
|
|
public function hasDeviceStatus()
|
|
{
|
|
return isset($this->device_status);
|
|
}
|
|
|
|
public function clearDeviceStatus()
|
|
{
|
|
unset($this->device_status);
|
|
}
|
|
|
|
/**
|
|
* Device status.
|
|
*
|
|
* Generated from protobuf field <code>.api.DeviceStatus device_status = 9;</code>
|
|
* @param \Chirpstack\Api\DeviceStatus $var
|
|
* @return $this
|
|
*/
|
|
public function setDeviceStatus($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Chirpstack\Api\DeviceStatus::class);
|
|
$this->device_status = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
}
|
|
|