api.Application */ class Application extends \Google\Protobuf\Internal\Message { /** * Application ID (UUID). * Note: on create this will be automatically generated. * * Generated from protobuf field string id = 1; */ protected $id = ''; /** * Application name. * * Generated from protobuf field string name = 2; */ protected $name = ''; /** * Application description. * * Generated from protobuf field string description = 3; */ protected $description = ''; /** * Tenant ID (UUID). * * Generated from protobuf field string tenant_id = 4; */ 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 map tags = 5; */ 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 string id = 1; * @return string */ public function getId() { return $this->id; } /** * Application ID (UUID). * Note: on create this will be automatically generated. * * 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; } /** * Application name. * * Generated from protobuf field string name = 2; * @return string */ public function getName() { return $this->name; } /** * Application name. * * Generated from protobuf field string name = 2; * @param string $var * @return $this */ public function setName($var) { GPBUtil::checkString($var, True); $this->name = $var; return $this; } /** * Application description. * * Generated from protobuf field string description = 3; * @return string */ public function getDescription() { return $this->description; } /** * Application description. * * 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; } /** * Tenant ID (UUID). * * Generated from protobuf field string tenant_id = 4; * @return string */ public function getTenantId() { return $this->tenant_id; } /** * Tenant ID (UUID). * * Generated from protobuf field string tenant_id = 4; * @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 map tags = 5; * @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 map tags = 5; * @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; } }