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

222 lines
5.1 KiB
PHP
Vendored

<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/application.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.ApplicationListItem</code>
*/
class ApplicationListItem extends \Google\Protobuf\Internal\Message
{
/**
* Application ID (UUID).
*
* Generated from protobuf field <code>string id = 1;</code>
*/
protected $id = '';
/**
* 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;
/**
* Application name.
*
* Generated from protobuf field <code>string name = 4;</code>
*/
protected $name = '';
/**
* Application description.
*
* Generated from protobuf field <code>string description = 5;</code>
*/
protected $description = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $id
* Application ID (UUID).
* @type \Google\Protobuf\Timestamp $created_at
* Created at timestamp.
* @type \Google\Protobuf\Timestamp $updated_at
* Last update timestamp.
* @type string $name
* Application name.
* @type string $description
* Application description.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Application::initOnce();
parent::__construct($data);
}
/**
* Application ID (UUID).
*
* Generated from protobuf field <code>string id = 1;</code>
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Application ID (UUID).
*
* 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;
}
/**
* 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;
}
/**
* Application name.
*
* Generated from protobuf field <code>string name = 4;</code>
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Application name.
*
* Generated from protobuf field <code>string name = 4;</code>
* @param string $var
* @return $this
*/
public function setName($var)
{
GPBUtil::checkString($var, True);
$this->name = $var;
return $this;
}
/**
* Application description.
*
* Generated from protobuf field <code>string description = 5;</code>
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Application description.
*
* Generated from protobuf field <code>string description = 5;</code>
* @param string $var
* @return $this
*/
public function setDescription($var)
{
GPBUtil::checkString($var, True);
$this->description = $var;
return $this;
}
}