api.LogItem
*/
class LogItem extends \Google\Protobuf\Internal\Message
{
/**
* ID.
*
* Generated from protobuf field string id = 1;
*/
protected $id = '';
/**
* Timestamp.
*
* Generated from protobuf field .google.protobuf.Timestamp time = 2;
*/
protected $time = null;
/**
* Message.
*
* Generated from protobuf field string description = 3;
*/
protected $description = '';
/**
* Body.
*
* Generated from protobuf field string body = 4;
*/
protected $body = '';
/**
* Properties.
*
* Generated from protobuf field map properties = 5;
*/
private $properties;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $id
* ID.
* @type \Google\Protobuf\Timestamp $time
* Timestamp.
* @type string $description
* Message.
* @type string $body
* Body.
* @type array|\Google\Protobuf\Internal\MapField $properties
* Properties.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Internal::initOnce();
parent::__construct($data);
}
/**
* ID.
*
* Generated from protobuf field string id = 1;
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* ID.
*
* Generated from protobuf field string id = 1;
* @param string $var
* @return $this
*/
public function setId($var)
{
GPBUtil::checkString($var, True);
$this->id = $var;
return $this;
}
/**
* Timestamp.
*
* Generated from protobuf field .google.protobuf.Timestamp time = 2;
* @return \Google\Protobuf\Timestamp|null
*/
public function getTime()
{
return $this->time;
}
public function hasTime()
{
return isset($this->time);
}
public function clearTime()
{
unset($this->time);
}
/**
* Timestamp.
*
* Generated from protobuf field .google.protobuf.Timestamp time = 2;
* @param \Google\Protobuf\Timestamp $var
* @return $this
*/
public function setTime($var)
{
GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
$this->time = $var;
return $this;
}
/**
* Message.
*
* Generated from protobuf field string description = 3;
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Message.
*
* Generated from protobuf field string description = 3;
* @param string $var
* @return $this
*/
public function setDescription($var)
{
GPBUtil::checkString($var, True);
$this->description = $var;
return $this;
}
/**
* Body.
*
* Generated from protobuf field string body = 4;
* @return string
*/
public function getBody()
{
return $this->body;
}
/**
* Body.
*
* Generated from protobuf field string body = 4;
* @param string $var
* @return $this
*/
public function setBody($var)
{
GPBUtil::checkString($var, True);
$this->body = $var;
return $this;
}
/**
* Properties.
*
* Generated from protobuf field map properties = 5;
* @return \Google\Protobuf\Internal\MapField
*/
public function getProperties()
{
return $this->properties;
}
/**
* Properties.
*
* Generated from protobuf field map properties = 5;
* @param array|\Google\Protobuf\Internal\MapField $var
* @return $this
*/
public function setProperties($var)
{
$arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
$this->properties = $arr;
return $this;
}
}