mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-04-26 05:49:51 +00:00
366 lines
8.6 KiB
PHP
Vendored
366 lines
8.6 KiB
PHP
Vendored
<?php
|
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
# source: api/tenant.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.TenantListItem</code>
|
|
*/
|
|
class TenantListItem extends \Google\Protobuf\Internal\Message
|
|
{
|
|
/**
|
|
* Tenant 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;
|
|
/**
|
|
* Tenant name.
|
|
*
|
|
* Generated from protobuf field <code>string name = 4;</code>
|
|
*/
|
|
protected $name = '';
|
|
/**
|
|
* Can the tenant create and "own" Gateways?
|
|
*
|
|
* Generated from protobuf field <code>bool can_have_gateways = 5;</code>
|
|
*/
|
|
protected $can_have_gateways = false;
|
|
/**
|
|
* Private gateways (uplink).
|
|
*
|
|
* Generated from protobuf field <code>bool private_gateways_up = 6;</code>
|
|
*/
|
|
protected $private_gateways_up = false;
|
|
/**
|
|
* Private gateways (downlink).
|
|
*
|
|
* Generated from protobuf field <code>bool private_gateways_down = 9;</code>
|
|
*/
|
|
protected $private_gateways_down = false;
|
|
/**
|
|
* Max gateway count.
|
|
* 0 = unlimited.
|
|
*
|
|
* Generated from protobuf field <code>uint32 max_gateway_count = 7;</code>
|
|
*/
|
|
protected $max_gateway_count = 0;
|
|
/**
|
|
* Max device count.
|
|
* 0 = unlimited.
|
|
*
|
|
* Generated from protobuf field <code>uint32 max_device_count = 8;</code>
|
|
*/
|
|
protected $max_device_count = 0;
|
|
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param array $data {
|
|
* Optional. Data for populating the Message object.
|
|
*
|
|
* @type string $id
|
|
* Tenant ID (UUID).
|
|
* @type \Google\Protobuf\Timestamp $created_at
|
|
* Created at timestamp.
|
|
* @type \Google\Protobuf\Timestamp $updated_at
|
|
* Last update timestamp.
|
|
* @type string $name
|
|
* Tenant name.
|
|
* @type bool $can_have_gateways
|
|
* Can the tenant create and "own" Gateways?
|
|
* @type bool $private_gateways_up
|
|
* Private gateways (uplink).
|
|
* @type bool $private_gateways_down
|
|
* Private gateways (downlink).
|
|
* @type int $max_gateway_count
|
|
* Max gateway count.
|
|
* 0 = unlimited.
|
|
* @type int $max_device_count
|
|
* Max device count.
|
|
* 0 = unlimited.
|
|
* }
|
|
*/
|
|
public function __construct($data = NULL) {
|
|
\GPBMetadata\Chirpstack\Api\Tenant::initOnce();
|
|
parent::__construct($data);
|
|
}
|
|
|
|
/**
|
|
* Tenant ID (UUID).
|
|
*
|
|
* Generated from protobuf field <code>string id = 1;</code>
|
|
* @return string
|
|
*/
|
|
public function getId()
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
/**
|
|
* Tenant 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;
|
|
}
|
|
|
|
/**
|
|
* Tenant name.
|
|
*
|
|
* Generated from protobuf field <code>string name = 4;</code>
|
|
* @return string
|
|
*/
|
|
public function getName()
|
|
{
|
|
return $this->name;
|
|
}
|
|
|
|
/**
|
|
* Tenant 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;
|
|
}
|
|
|
|
/**
|
|
* Can the tenant create and "own" Gateways?
|
|
*
|
|
* Generated from protobuf field <code>bool can_have_gateways = 5;</code>
|
|
* @return bool
|
|
*/
|
|
public function getCanHaveGateways()
|
|
{
|
|
return $this->can_have_gateways;
|
|
}
|
|
|
|
/**
|
|
* Can the tenant create and "own" Gateways?
|
|
*
|
|
* Generated from protobuf field <code>bool can_have_gateways = 5;</code>
|
|
* @param bool $var
|
|
* @return $this
|
|
*/
|
|
public function setCanHaveGateways($var)
|
|
{
|
|
GPBUtil::checkBool($var);
|
|
$this->can_have_gateways = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Private gateways (uplink).
|
|
*
|
|
* Generated from protobuf field <code>bool private_gateways_up = 6;</code>
|
|
* @return bool
|
|
*/
|
|
public function getPrivateGatewaysUp()
|
|
{
|
|
return $this->private_gateways_up;
|
|
}
|
|
|
|
/**
|
|
* Private gateways (uplink).
|
|
*
|
|
* Generated from protobuf field <code>bool private_gateways_up = 6;</code>
|
|
* @param bool $var
|
|
* @return $this
|
|
*/
|
|
public function setPrivateGatewaysUp($var)
|
|
{
|
|
GPBUtil::checkBool($var);
|
|
$this->private_gateways_up = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Private gateways (downlink).
|
|
*
|
|
* Generated from protobuf field <code>bool private_gateways_down = 9;</code>
|
|
* @return bool
|
|
*/
|
|
public function getPrivateGatewaysDown()
|
|
{
|
|
return $this->private_gateways_down;
|
|
}
|
|
|
|
/**
|
|
* Private gateways (downlink).
|
|
*
|
|
* Generated from protobuf field <code>bool private_gateways_down = 9;</code>
|
|
* @param bool $var
|
|
* @return $this
|
|
*/
|
|
public function setPrivateGatewaysDown($var)
|
|
{
|
|
GPBUtil::checkBool($var);
|
|
$this->private_gateways_down = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Max gateway count.
|
|
* 0 = unlimited.
|
|
*
|
|
* Generated from protobuf field <code>uint32 max_gateway_count = 7;</code>
|
|
* @return int
|
|
*/
|
|
public function getMaxGatewayCount()
|
|
{
|
|
return $this->max_gateway_count;
|
|
}
|
|
|
|
/**
|
|
* Max gateway count.
|
|
* 0 = unlimited.
|
|
*
|
|
* Generated from protobuf field <code>uint32 max_gateway_count = 7;</code>
|
|
* @param int $var
|
|
* @return $this
|
|
*/
|
|
public function setMaxGatewayCount($var)
|
|
{
|
|
GPBUtil::checkUint32($var);
|
|
$this->max_gateway_count = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Max device count.
|
|
* 0 = unlimited.
|
|
*
|
|
* Generated from protobuf field <code>uint32 max_device_count = 8;</code>
|
|
* @return int
|
|
*/
|
|
public function getMaxDeviceCount()
|
|
{
|
|
return $this->max_device_count;
|
|
}
|
|
|
|
/**
|
|
* Max device count.
|
|
* 0 = unlimited.
|
|
*
|
|
* Generated from protobuf field <code>uint32 max_device_count = 8;</code>
|
|
* @param int $var
|
|
* @return $this
|
|
*/
|
|
public function setMaxDeviceCount($var)
|
|
{
|
|
GPBUtil::checkUint32($var);
|
|
$this->max_device_count = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
}
|
|
|