api.UserTenant */ class UserTenant extends \Google\Protobuf\Internal\Message { /** * Tenant ID. * * Generated from protobuf field string tenant_id = 1; */ protected $tenant_id = ''; /** * User is admin within the context of the tenant. * There is no need to set the is_device_admin and is_gateway_admin flags. * * Generated from protobuf field bool is_admin = 2; */ protected $is_admin = false; /** * User is able to modify device related resources (applications, * device-profiles, devices, multicast-groups). * * Generated from protobuf field bool is_device_admin = 3; */ protected $is_device_admin = false; /** * User is able to modify gateways. * * Generated from protobuf field bool is_gateway_admin = 4; */ protected $is_gateway_admin = false; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $tenant_id * Tenant ID. * @type bool $is_admin * User is admin within the context of the tenant. * There is no need to set the is_device_admin and is_gateway_admin flags. * @type bool $is_device_admin * User is able to modify device related resources (applications, * device-profiles, devices, multicast-groups). * @type bool $is_gateway_admin * User is able to modify gateways. * } */ public function __construct($data = NULL) { \GPBMetadata\Chirpstack\Api\User::initOnce(); parent::__construct($data); } /** * Tenant ID. * * Generated from protobuf field string tenant_id = 1; * @return string */ public function getTenantId() { return $this->tenant_id; } /** * Tenant ID. * * Generated from protobuf field string tenant_id = 1; * @param string $var * @return $this */ public function setTenantId($var) { GPBUtil::checkString($var, True); $this->tenant_id = $var; return $this; } /** * User is admin within the context of the tenant. * There is no need to set the is_device_admin and is_gateway_admin flags. * * Generated from protobuf field bool is_admin = 2; * @return bool */ public function getIsAdmin() { return $this->is_admin; } /** * User is admin within the context of the tenant. * There is no need to set the is_device_admin and is_gateway_admin flags. * * Generated from protobuf field bool is_admin = 2; * @param bool $var * @return $this */ public function setIsAdmin($var) { GPBUtil::checkBool($var); $this->is_admin = $var; return $this; } /** * User is able to modify device related resources (applications, * device-profiles, devices, multicast-groups). * * Generated from protobuf field bool is_device_admin = 3; * @return bool */ public function getIsDeviceAdmin() { return $this->is_device_admin; } /** * User is able to modify device related resources (applications, * device-profiles, devices, multicast-groups). * * Generated from protobuf field bool is_device_admin = 3; * @param bool $var * @return $this */ public function setIsDeviceAdmin($var) { GPBUtil::checkBool($var); $this->is_device_admin = $var; return $this; } /** * User is able to modify gateways. * * Generated from protobuf field bool is_gateway_admin = 4; * @return bool */ public function getIsGatewayAdmin() { return $this->is_gateway_admin; } /** * User is able to modify gateways. * * Generated from protobuf field bool is_gateway_admin = 4; * @param bool $var * @return $this */ public function setIsGatewayAdmin($var) { GPBUtil::checkBool($var); $this->is_gateway_admin = $var; return $this; } }