chirpstack/api/php/generated/Chirpstack/Api/UserTenantLink.php
2024-06-25 12:27:28 +01:00

266 lines
6.8 KiB
PHP
Vendored

<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/internal.proto
namespace Chirpstack\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Defines a tenant to which the user is associated.
*
* Generated from protobuf message <code>api.UserTenantLink</code>
*/
class UserTenantLink extends \Google\Protobuf\Internal\Message
{
/**
* Created at timestamp.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp created_at = 1;</code>
*/
protected $created_at = null;
/**
* Last update timestamp.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp updated_at = 2;</code>
*/
protected $updated_at = null;
/**
* Tenant ID.
*
* Generated from protobuf field <code>string tenant_id = 3;</code>
*/
protected $tenant_id = '';
/**
* User is admin within the context of this tenant.
* There is no need to set the is_device_admin and is_gateway_admin flags.
*
* Generated from protobuf field <code>bool is_admin = 4;</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 = 5;</code>
*/
protected $is_device_admin = false;
/**
* User is able to modify gateways.
*
* Generated from protobuf field <code>bool is_gateway_admin = 6;</code>
*/
protected $is_gateway_admin = false;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Google\Protobuf\Timestamp $created_at
* Created at timestamp.
* @type \Google\Protobuf\Timestamp $updated_at
* Last update timestamp.
* @type string $tenant_id
* Tenant ID.
* @type bool $is_admin
* User is admin within the context of this 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\Internal::initOnce();
parent::__construct($data);
}
/**
* Created at timestamp.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp created_at = 1;</code>
* @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 <code>.google.protobuf.Timestamp created_at = 1;</code>
* @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 <code>.google.protobuf.Timestamp updated_at = 2;</code>
* @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 <code>.google.protobuf.Timestamp updated_at = 2;</code>
* @param \Google\Protobuf\Timestamp $var
* @return $this
*/
public function setUpdatedAt($var)
{
GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
$this->updated_at = $var;
return $this;
}
/**
* Tenant ID.
*
* Generated from protobuf field <code>string tenant_id = 3;</code>
* @return string
*/
public function getTenantId()
{
return $this->tenant_id;
}
/**
* Tenant ID.
*
* Generated from protobuf field <code>string tenant_id = 3;</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 this tenant.
* There is no need to set the is_device_admin and is_gateway_admin flags.
*
* Generated from protobuf field <code>bool is_admin = 4;</code>
* @return bool
*/
public function getIsAdmin()
{
return $this->is_admin;
}
/**
* User is admin within the context of this tenant.
* There is no need to set the is_device_admin and is_gateway_admin flags.
*
* Generated from protobuf field <code>bool is_admin = 4;</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 = 5;</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 = 5;</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 = 6;</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 = 6;</code>
* @param bool $var
* @return $this
*/
public function setIsGatewayAdmin($var)
{
GPBUtil::checkBool($var);
$this->is_gateway_admin = $var;
return $this;
}
}