api.TenantUserListItem
*/
class TenantUserListItem extends \Google\Protobuf\Internal\Message
{
/**
* Tenant ID (UUID).
*
* Generated from protobuf field string tenant_id = 1;
*/
protected $tenant_id = '';
/**
* User ID (UUID).
*
* Generated from protobuf field string user_id = 2;
*/
protected $user_id = '';
/**
* Created at timestamp.
*
* Generated from protobuf field .google.protobuf.Timestamp created_at = 3;
*/
protected $created_at = null;
/**
* Last update timestamp.
*
* Generated from protobuf field .google.protobuf.Timestamp updated_at = 4;
*/
protected $updated_at = null;
/**
* Email.
*
* Generated from protobuf field string email = 5;
*/
protected $email = '';
/**
* 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 = 6;
*/
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 = 7;
*/
protected $is_device_admin = false;
/**
* User is able to modify gateways.
*
* Generated from protobuf field bool is_gateway_admin = 8;
*/
protected $is_gateway_admin = false;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $tenant_id
* Tenant ID (UUID).
* @type string $user_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.
* @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\Tenant::initOnce();
parent::__construct($data);
}
/**
* Tenant ID (UUID).
*
* Generated from protobuf field string tenant_id = 1;
* @return string
*/
public function getTenantId()
{
return $this->tenant_id;
}
/**
* Tenant ID (UUID).
*
* 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 ID (UUID).
*
* Generated from protobuf field string user_id = 2;
* @return string
*/
public function getUserId()
{
return $this->user_id;
}
/**
* User ID (UUID).
*
* Generated from protobuf field string user_id = 2;
* @param string $var
* @return $this
*/
public function setUserId($var)
{
GPBUtil::checkString($var, True);
$this->user_id = $var;
return $this;
}
/**
* Created at timestamp.
*
* Generated from protobuf field .google.protobuf.Timestamp created_at = 3;
* @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 = 3;
* @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 = 4;
* @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 = 4;
* @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.
*
* Generated from protobuf field string email = 5;
* @return string
*/
public function getEmail()
{
return $this->email;
}
/**
* Email.
*
* Generated from protobuf field string email = 5;
* @param string $var
* @return $this
*/
public function setEmail($var)
{
GPBUtil::checkString($var, True);
$this->email = $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 = 6;
* @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 = 6;
* @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 = 7;
* @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 = 7;
* @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 = 8;
* @return bool
*/
public function getIsGatewayAdmin()
{
return $this->is_gateway_admin;
}
/**
* User is able to modify gateways.
*
* Generated from protobuf field bool is_gateway_admin = 8;
* @param bool $var
* @return $this
*/
public function setIsGatewayAdmin($var)
{
GPBUtil::checkBool($var);
$this->is_gateway_admin = $var;
return $this;
}
}