api.TenantListItem */ class TenantListItem extends \Google\Protobuf\Internal\Message { /** * Tenant ID (UUID). * * Generated from protobuf field string id = 1; */ protected $id = ''; /** * Created at timestamp. * * Generated from protobuf field .google.protobuf.Timestamp created_at = 2; */ protected $created_at = null; /** * Last update timestamp. * * Generated from protobuf field .google.protobuf.Timestamp updated_at = 3; */ protected $updated_at = null; /** * Tenant name. * * Generated from protobuf field string name = 4; */ protected $name = ''; /** * Can the tenant create and "own" Gateways? * * Generated from protobuf field bool can_have_gateways = 5; */ protected $can_have_gateways = false; /** * Private gateways (uplink). * * Generated from protobuf field bool private_gateways_up = 6; */ protected $private_gateways_up = false; /** * Private gateways (downlink). * * Generated from protobuf field bool private_gateways_down = 9; */ protected $private_gateways_down = false; /** * Max gateway count. * 0 = unlimited. * * Generated from protobuf field uint32 max_gateway_count = 7; */ protected $max_gateway_count = 0; /** * Max device count. * 0 = unlimited. * * Generated from protobuf field uint32 max_device_count = 8; */ 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 string id = 1; * @return string */ public function getId() { return $this->id; } /** * Tenant ID (UUID). * * 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; } /** * Created at timestamp. * * Generated from protobuf field .google.protobuf.Timestamp created_at = 2; * @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 .google.protobuf.Timestamp created_at = 2; * @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 .google.protobuf.Timestamp updated_at = 3; * @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 .google.protobuf.Timestamp updated_at = 3; * @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 string name = 4; * @return string */ public function getName() { return $this->name; } /** * Tenant name. * * Generated from protobuf field string name = 4; * @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 bool can_have_gateways = 5; * @return bool */ public function getCanHaveGateways() { return $this->can_have_gateways; } /** * Can the tenant create and "own" Gateways? * * Generated from protobuf field bool can_have_gateways = 5; * @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 bool private_gateways_up = 6; * @return bool */ public function getPrivateGatewaysUp() { return $this->private_gateways_up; } /** * Private gateways (uplink). * * Generated from protobuf field bool private_gateways_up = 6; * @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 bool private_gateways_down = 9; * @return bool */ public function getPrivateGatewaysDown() { return $this->private_gateways_down; } /** * Private gateways (downlink). * * Generated from protobuf field bool private_gateways_down = 9; * @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 uint32 max_gateway_count = 7; * @return int */ public function getMaxGatewayCount() { return $this->max_gateway_count; } /** * Max gateway count. * 0 = unlimited. * * Generated from protobuf field uint32 max_gateway_count = 7; * @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 uint32 max_device_count = 8; * @return int */ public function getMaxDeviceCount() { return $this->max_device_count; } /** * Max device count. * 0 = unlimited. * * Generated from protobuf field uint32 max_device_count = 8; * @param int $var * @return $this */ public function setMaxDeviceCount($var) { GPBUtil::checkUint32($var); $this->max_device_count = $var; return $this; } }