api.UserListItem */ class UserListItem extends \Google\Protobuf\Internal\Message { /** * User 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; /** * Email of the user. * * Generated from protobuf field string email = 4; */ protected $email = ''; /** * Set to true to make the user a global administrator. * * Generated from protobuf field bool is_admin = 5; */ protected $is_admin = false; /** * Set to false to disable the user. * * Generated from protobuf field bool is_active = 6; */ protected $is_active = false; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $id * User ID (UUID). * @type \Google\Protobuf\Timestamp $created_at * Created at timestamp. * @type \Google\Protobuf\Timestamp $updated_at * Last update timestamp. * @type string $email * Email of the user. * @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. * } */ public function __construct($data = NULL) { \GPBMetadata\Chirpstack\Api\User::initOnce(); parent::__construct($data); } /** * User ID (UUID). * * Generated from protobuf field string id = 1; * @return string */ public function getId() { return $this->id; } /** * User 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; } /** * Email of the user. * * Generated from protobuf field string email = 4; * @return string */ public function getEmail() { return $this->email; } /** * Email of the user. * * Generated from protobuf field string email = 4; * @param string $var * @return $this */ public function setEmail($var) { GPBUtil::checkString($var, True); $this->email = $var; return $this; } /** * Set to true to make the user a global administrator. * * Generated from protobuf field bool is_admin = 5; * @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 = 5; * @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 = 6; * @return bool */ public function getIsActive() { return $this->is_active; } /** * Set to false to disable the user. * * Generated from protobuf field bool is_active = 6; * @param bool $var * @return $this */ public function setIsActive($var) { GPBUtil::checkBool($var); $this->is_active = $var; return $this; } }