api.User */ class User extends \Google\Protobuf\Internal\Message { /** * User ID (UUID). * Will be set automatically on create. * * Generated from protobuf field string id = 1; */ protected $id = ''; /** * Set to true to make the user a global administrator. * * Generated from protobuf field bool is_admin = 4; */ protected $is_admin = false; /** * Set to false to disable the user. * * Generated from protobuf field bool is_active = 5; */ protected $is_active = false; /** * E-mail of the user. * * Generated from protobuf field string email = 6; */ protected $email = ''; /** * Optional note to store with the user. * * Generated from protobuf field string note = 7; */ protected $note = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $id * User ID (UUID). * Will be set automatically on create. * @type bool $is_admin * Set to true to make the user a global administrator. * @type bool $is_active * Set to false to disable the user. * @type string $email * E-mail of the user. * @type string $note * Optional note to store with the user. * } */ public function __construct($data = NULL) { \GPBMetadata\Chirpstack\Api\User::initOnce(); parent::__construct($data); } /** * User ID (UUID). * Will be set automatically on create. * * Generated from protobuf field string id = 1; * @return string */ public function getId() { return $this->id; } /** * User ID (UUID). * Will be set automatically on create. * * 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; } /** * Set to true to make the user a global administrator. * * Generated from protobuf field bool is_admin = 4; * @return bool */ public function getIsAdmin() { return $this->is_admin; } /** * Set to true to make the user a global administrator. * * Generated from protobuf field bool is_admin = 4; * @param bool $var * @return $this */ public function setIsAdmin($var) { GPBUtil::checkBool($var); $this->is_admin = $var; return $this; } /** * Set to false to disable the user. * * Generated from protobuf field bool is_active = 5; * @return bool */ public function getIsActive() { return $this->is_active; } /** * Set to false to disable the user. * * Generated from protobuf field bool is_active = 5; * @param bool $var * @return $this */ public function setIsActive($var) { GPBUtil::checkBool($var); $this->is_active = $var; return $this; } /** * E-mail of the user. * * Generated from protobuf field string email = 6; * @return string */ public function getEmail() { return $this->email; } /** * E-mail of the user. * * Generated from protobuf field string email = 6; * @param string $var * @return $this */ public function setEmail($var) { GPBUtil::checkString($var, True); $this->email = $var; return $this; } /** * Optional note to store with the user. * * Generated from protobuf field string note = 7; * @return string */ public function getNote() { return $this->note; } /** * Optional note to store with the user. * * Generated from protobuf field string note = 7; * @param string $var * @return $this */ public function setNote($var) { GPBUtil::checkString($var, True); $this->note = $var; return $this; } }