api.DeviceListItem */ class DeviceListItem extends \Google\Protobuf\Internal\Message { /** * DevEUI (EUI64). * * Generated from protobuf field string dev_eui = 1; */ protected $dev_eui = ''; /** * Created at timestamp. * * Generated from protobuf field .google.protobuf.Timestamp created_at = 2; */ protected $created_at = null; /** * Last update timestamp. * * Generated from protobuf field .google.protobuf.Timestamp updated_at = 3; */ protected $updated_at = null; /** * Last seen at timestamp. * * Generated from protobuf field .google.protobuf.Timestamp last_seen_at = 4; */ protected $last_seen_at = null; /** * Name. * * Generated from protobuf field string name = 5; */ protected $name = ''; /** * Description. * * Generated from protobuf field string description = 6; */ protected $description = ''; /** * Device-profile ID (UUID). * * Generated from protobuf field string device_profile_id = 7; */ protected $device_profile_id = ''; /** * Device-profile name. * * Generated from protobuf field string device_profile_name = 8; */ protected $device_profile_name = ''; /** * Device status. * * Generated from protobuf field .api.DeviceStatus device_status = 9; */ 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 string dev_eui = 1; * @return string */ public function getDevEui() { return $this->dev_eui; } /** * DevEUI (EUI64). * * Generated from protobuf field string dev_eui = 1; * @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 .google.protobuf.Timestamp created_at = 2; * @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 .google.protobuf.Timestamp created_at = 2; * @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 .google.protobuf.Timestamp updated_at = 3; * @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 .google.protobuf.Timestamp updated_at = 3; * @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 .google.protobuf.Timestamp last_seen_at = 4; * @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 .google.protobuf.Timestamp last_seen_at = 4; * @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 string name = 5; * @return string */ public function getName() { return $this->name; } /** * Name. * * Generated from protobuf field string name = 5; * @param string $var * @return $this */ public function setName($var) { GPBUtil::checkString($var, True); $this->name = $var; return $this; } /** * Description. * * Generated from protobuf field string description = 6; * @return string */ public function getDescription() { return $this->description; } /** * Description. * * Generated from protobuf field string description = 6; * @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 string device_profile_id = 7; * @return string */ public function getDeviceProfileId() { return $this->device_profile_id; } /** * Device-profile ID (UUID). * * Generated from protobuf field string device_profile_id = 7; * @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 string device_profile_name = 8; * @return string */ public function getDeviceProfileName() { return $this->device_profile_name; } /** * Device-profile name. * * Generated from protobuf field string device_profile_name = 8; * @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 .api.DeviceStatus device_status = 9; * @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 .api.DeviceStatus device_status = 9; * @param \Chirpstack\Api\DeviceStatus $var * @return $this */ public function setDeviceStatus($var) { GPBUtil::checkMessage($var, \Chirpstack\Api\DeviceStatus::class); $this->device_status = $var; return $this; } }