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

218 lines
5.5 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.Application</code>
*/
class Application extends \Google\Protobuf\Internal\Message
{
/**
* Application ID (UUID).
* Note: on create this will be automatically generated.
*
* Generated from protobuf field <code>string id = 1;</code>
*/
protected $id = '';
/**
* Application name.
*
* Generated from protobuf field <code>string name = 2;</code>
*/
protected $name = '';
/**
* Application description.
*
* Generated from protobuf field <code>string description = 3;</code>
*/
protected $description = '';
/**
* Tenant ID (UUID).
*
* Generated from protobuf field <code>string tenant_id = 4;</code>
*/
protected $tenant_id = '';
/**
* Tags (user defined).
* These tags can be used to add additional information to the application.
* These tags are exposed in all the integration events of devices under
* this application.
*
* Generated from protobuf field <code>map<string, string> tags = 5;</code>
*/
private $tags;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $id
* Application ID (UUID).
* Note: on create this will be automatically generated.
* @type string $name
* Application name.
* @type string $description
* Application description.
* @type string $tenant_id
* Tenant ID (UUID).
* @type array|\Google\Protobuf\Internal\MapField $tags
* Tags (user defined).
* These tags can be used to add additional information to the application.
* These tags are exposed in all the integration events of devices under
* this application.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Application::initOnce();
parent::__construct($data);
}
/**
* Application ID (UUID).
* Note: on create this will be automatically generated.
*
* Generated from protobuf field <code>string id = 1;</code>
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Application ID (UUID).
* Note: on create this will be automatically generated.
*
* 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;
}
/**
* Application name.
*
* Generated from protobuf field <code>string name = 2;</code>
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Application name.
*
* Generated from protobuf field <code>string name = 2;</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 = 3;</code>
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Application description.
*
* 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;
}
/**
* Tenant ID (UUID).
*
* Generated from protobuf field <code>string tenant_id = 4;</code>
* @return string
*/
public function getTenantId()
{
return $this->tenant_id;
}
/**
* Tenant ID (UUID).
*
* Generated from protobuf field <code>string tenant_id = 4;</code>
* @param string $var
* @return $this
*/
public function setTenantId($var)
{
GPBUtil::checkString($var, True);
$this->tenant_id = $var;
return $this;
}
/**
* Tags (user defined).
* These tags can be used to add additional information to the application.
* These tags are exposed in all the integration events of devices under
* this application.
*
* Generated from protobuf field <code>map<string, string> tags = 5;</code>
* @return \Google\Protobuf\Internal\MapField
*/
public function getTags()
{
return $this->tags;
}
/**
* Tags (user defined).
* These tags can be used to add additional information to the application.
* These tags are exposed in all the integration events of devices under
* this application.
*
* Generated from protobuf field <code>map<string, string> tags = 5;</code>
* @param array|\Google\Protobuf\Internal\MapField $var
* @return $this
*/
public function setTags($var)
{
$arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
$this->tags = $arr;
return $this;
}
}