mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-06-15 13:58:27 +00:00
Bump version to 4.9.0-test.2
This commit is contained in:
143
api/php/generated/Chirpstack/Api/CreateUserRequest.php
vendored
Normal file
143
api/php/generated/Chirpstack/Api/CreateUserRequest.php
vendored
Normal file
@ -0,0 +1,143 @@
|
||||
<?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.CreateUserRequest</code>
|
||||
*/
|
||||
class CreateUserRequest extends \Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* User object to create.
|
||||
*
|
||||
* Generated from protobuf field <code>.api.User user = 1;</code>
|
||||
*/
|
||||
protected $user = null;
|
||||
/**
|
||||
* Password to set for the user.
|
||||
*
|
||||
* Generated from protobuf field <code>string password = 2;</code>
|
||||
*/
|
||||
protected $password = '';
|
||||
/**
|
||||
* Add the user to the following tenants.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .api.UserTenant tenants = 3;</code>
|
||||
*/
|
||||
private $tenants;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type \Chirpstack\Api\User $user
|
||||
* User object to create.
|
||||
* @type string $password
|
||||
* Password to set for the user.
|
||||
* @type array<\Chirpstack\Api\UserTenant>|\Google\Protobuf\Internal\RepeatedField $tenants
|
||||
* Add the user to the following tenants.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL) {
|
||||
\GPBMetadata\Chirpstack\Api\User::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
|
||||
/**
|
||||
* User object to create.
|
||||
*
|
||||
* 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 to create.
|
||||
*
|
||||
* 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;
|
||||
}
|
||||
|
||||
/**
|
||||
* Password to set for the user.
|
||||
*
|
||||
* Generated from protobuf field <code>string password = 2;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getPassword()
|
||||
{
|
||||
return $this->password;
|
||||
}
|
||||
|
||||
/**
|
||||
* Password to set for the user.
|
||||
*
|
||||
* Generated from protobuf field <code>string password = 2;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setPassword($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->password = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add the user to the following tenants.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .api.UserTenant tenants = 3;</code>
|
||||
* @return \Google\Protobuf\Internal\RepeatedField
|
||||
*/
|
||||
public function getTenants()
|
||||
{
|
||||
return $this->tenants;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add the user to the following tenants.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .api.UserTenant tenants = 3;</code>
|
||||
* @param array<\Chirpstack\Api\UserTenant>|\Google\Protobuf\Internal\RepeatedField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setTenants($var)
|
||||
{
|
||||
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Chirpstack\Api\UserTenant::class);
|
||||
$this->tenants = $arr;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user