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

110 lines
2.7 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;
/**
* Generated from protobuf message <code>api.ProfileResponse</code>
*/
class ProfileResponse extends \Google\Protobuf\Internal\Message
{
/**
* User object.
*
* Generated from protobuf field <code>.api.User user = 1;</code>
*/
protected $user = null;
/**
* Tenants to which the user is associated.
*
* Generated from protobuf field <code>repeated .api.UserTenantLink tenants = 3;</code>
*/
private $tenants;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Chirpstack\Api\User $user
* User object.
* @type array<\Chirpstack\Api\UserTenantLink>|\Google\Protobuf\Internal\RepeatedField $tenants
* Tenants to which the user is associated.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Internal::initOnce();
parent::__construct($data);
}
/**
* User object.
*
* Generated from protobuf field <code>.api.User user = 1;</code>
* @return \Chirpstack\Api\User|null
*/
public function getUser()
{
return $this->user;
}
public function hasUser()
{
return isset($this->user);
}
public function clearUser()
{
unset($this->user);
}
/**
* User object.
*
* Generated from protobuf field <code>.api.User user = 1;</code>
* @param \Chirpstack\Api\User $var
* @return $this
*/
public function setUser($var)
{
GPBUtil::checkMessage($var, \Chirpstack\Api\User::class);
$this->user = $var;
return $this;
}
/**
* Tenants to which the user is associated.
*
* Generated from protobuf field <code>repeated .api.UserTenantLink tenants = 3;</code>
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getTenants()
{
return $this->tenants;
}
/**
* Tenants to which the user is associated.
*
* Generated from protobuf field <code>repeated .api.UserTenantLink tenants = 3;</code>
* @param array<\Chirpstack\Api\UserTenantLink>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setTenants($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Chirpstack\Api\UserTenantLink::class);
$this->tenants = $arr;
return $this;
}
}