2024-06-25 12:27:28 +01:00

212 lines
4.6 KiB
PHP
Vendored

<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/internal.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.LogItem</code>
*/
class LogItem extends \Google\Protobuf\Internal\Message
{
/**
* ID.
*
* Generated from protobuf field <code>string id = 1;</code>
*/
protected $id = '';
/**
* Timestamp.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp time = 2;</code>
*/
protected $time = null;
/**
* Message.
*
* Generated from protobuf field <code>string description = 3;</code>
*/
protected $description = '';
/**
* Body.
*
* Generated from protobuf field <code>string body = 4;</code>
*/
protected $body = '';
/**
* Properties.
*
* Generated from protobuf field <code>map<string, string> properties = 5;</code>
*/
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 <code>string id = 1;</code>
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* ID.
*
* 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;
}
/**
* Timestamp.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp time = 2;</code>
* @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 <code>.google.protobuf.Timestamp time = 2;</code>
* @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 <code>string description = 3;</code>
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Message.
*
* Generated from protobuf field <code>string description = 3;</code>
* @param string $var
* @return $this
*/
public function setDescription($var)
{
GPBUtil::checkString($var, True);
$this->description = $var;
return $this;
}
/**
* Body.
*
* Generated from protobuf field <code>string body = 4;</code>
* @return string
*/
public function getBody()
{
return $this->body;
}
/**
* Body.
*
* Generated from protobuf field <code>string body = 4;</code>
* @param string $var
* @return $this
*/
public function setBody($var)
{
GPBUtil::checkString($var, True);
$this->body = $var;
return $this;
}
/**
* Properties.
*
* Generated from protobuf field <code>map<string, string> properties = 5;</code>
* @return \Google\Protobuf\Internal\MapField
*/
public function getProperties()
{
return $this->properties;
}
/**
* Properties.
*
* Generated from protobuf field <code>map<string, string> properties = 5;</code>
* @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;
}
}