2024-06-25 12:27:28 +01:00

244 lines
6.1 KiB
PHP
Vendored

<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/tenant.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>api.TenantUser</code>
*/
class TenantUser extends \Google\Protobuf\Internal\Message
{
/**
* Tenant ID (UUID).
*
* Generated from protobuf field <code>string tenant_id = 1;</code>
*/
protected $tenant_id = '';
/**
* User ID (UUID).
*
* Generated from protobuf field <code>string user_id = 2;</code>
*/
protected $user_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 <code>bool is_admin = 3;</code>
*/
protected $is_admin = false;
/**
* User is able to modify device related resources (applications,
* device-profiles, devices, multicast-groups).
*
* Generated from protobuf field <code>bool is_device_admin = 4;</code>
*/
protected $is_device_admin = false;
/**
* User is able to modify gateways.
*
* Generated from protobuf field <code>bool is_gateway_admin = 5;</code>
*/
protected $is_gateway_admin = false;
/**
* Email (only used on get and when adding a user to a tenant).
*
* Generated from protobuf field <code>string email = 6;</code>
*/
protected $email = '';
/**
* 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 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.
* @type string $email
* Email (only used on get and when adding a user to a tenant).
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Tenant::initOnce();
parent::__construct($data);
}
/**
* Tenant ID (UUID).
*
* Generated from protobuf field <code>string tenant_id = 1;</code>
* @return string
*/
public function getTenantId()
{
return $this->tenant_id;
}
/**
* Tenant ID (UUID).
*
* Generated from protobuf field <code>string tenant_id = 1;</code>
* @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 <code>string user_id = 2;</code>
* @return string
*/
public function getUserId()
{
return $this->user_id;
}
/**
* User ID (UUID).
*
* Generated from protobuf field <code>string user_id = 2;</code>
* @param string $var
* @return $this
*/
public function setUserId($var)
{
GPBUtil::checkString($var, True);
$this->user_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 <code>bool is_admin = 3;</code>
* @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 <code>bool is_admin = 3;</code>
* @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 <code>bool is_device_admin = 4;</code>
* @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 <code>bool is_device_admin = 4;</code>
* @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 <code>bool is_gateway_admin = 5;</code>
* @return bool
*/
public function getIsGatewayAdmin()
{
return $this->is_gateway_admin;
}
/**
* User is able to modify gateways.
*
* Generated from protobuf field <code>bool is_gateway_admin = 5;</code>
* @param bool $var
* @return $this
*/
public function setIsGatewayAdmin($var)
{
GPBUtil::checkBool($var);
$this->is_gateway_admin = $var;
return $this;
}
/**
* Email (only used on get and when adding a user to a tenant).
*
* Generated from protobuf field <code>string email = 6;</code>
* @return string
*/
public function getEmail()
{
return $this->email;
}
/**
* Email (only used on get and when adding a user to a tenant).
*
* Generated from protobuf field <code>string email = 6;</code>
* @param string $var
* @return $this
*/
public function setEmail($var)
{
GPBUtil::checkString($var, True);
$this->email = $var;
return $this;
}
}