mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-06-23 01:18:54 +00:00
Bump version to 4.9.0-test.2
This commit is contained in:
175
api/php/generated/Chirpstack/Api/UserTenant.php
vendored
Normal file
175
api/php/generated/Chirpstack/Api/UserTenant.php
vendored
Normal file
@ -0,0 +1,175 @@
|
||||
<?php
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: api/user.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.UserTenant</code>
|
||||
*/
|
||||
class UserTenant extends \Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* Tenant ID.
|
||||
*
|
||||
* Generated from protobuf field <code>string tenant_id = 1;</code>
|
||||
*/
|
||||
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 <code>bool is_admin = 2;</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 = 3;</code>
|
||||
*/
|
||||
protected $is_device_admin = false;
|
||||
/**
|
||||
* User is able to modify gateways.
|
||||
*
|
||||
* Generated from protobuf field <code>bool is_gateway_admin = 4;</code>
|
||||
*/
|
||||
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 <code>string tenant_id = 1;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getTenantId()
|
||||
{
|
||||
return $this->tenant_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Tenant ID.
|
||||
*
|
||||
* 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 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 = 2;</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 = 2;</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 = 3;</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 = 3;</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 = 4;</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 = 4;</code>
|
||||
* @param bool $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setIsGatewayAdmin($var)
|
||||
{
|
||||
GPBUtil::checkBool($var);
|
||||
$this->is_gateway_admin = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user