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

286 lines
6.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.GetDeviceResponse</code>
*/
class GetDeviceResponse extends \Google\Protobuf\Internal\Message
{
/**
* Device object.
*
* Generated from protobuf field <code>.api.Device device = 1;</code>
*/
protected $device = null;
/**
* 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;
/**
* Device status.
*
* Generated from protobuf field <code>.api.DeviceStatus device_status = 5;</code>
*/
protected $device_status = null;
/**
* Enabled device class.
*
* Generated from protobuf field <code>.common.DeviceClass class_enabled = 6;</code>
*/
protected $class_enabled = 0;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Chirpstack\Api\Device $device
* Device object.
* @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 \Chirpstack\Api\DeviceStatus $device_status
* Device status.
* @type int $class_enabled
* Enabled device class.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Device::initOnce();
parent::__construct($data);
}
/**
* Device object.
*
* Generated from protobuf field <code>.api.Device device = 1;</code>
* @return \Chirpstack\Api\Device|null
*/
public function getDevice()
{
return $this->device;
}
public function hasDevice()
{
return isset($this->device);
}
public function clearDevice()
{
unset($this->device);
}
/**
* Device object.
*
* Generated from protobuf field <code>.api.Device device = 1;</code>
* @param \Chirpstack\Api\Device $var
* @return $this
*/
public function setDevice($var)
{
GPBUtil::checkMessage($var, \Chirpstack\Api\Device::class);
$this->device = $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;
}
/**
* Device status.
*
* Generated from protobuf field <code>.api.DeviceStatus device_status = 5;</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 = 5;</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;
}
/**
* Enabled device class.
*
* Generated from protobuf field <code>.common.DeviceClass class_enabled = 6;</code>
* @return int
*/
public function getClassEnabled()
{
return $this->class_enabled;
}
/**
* Enabled device class.
*
* Generated from protobuf field <code>.common.DeviceClass class_enabled = 6;</code>
* @param int $var
* @return $this
*/
public function setClassEnabled($var)
{
GPBUtil::checkEnum($var, \Chirpstack\Common\DeviceClass::class);
$this->class_enabled = $var;
return $this;
}
}