api.CreateTenantRequest
*/
class CreateTenantRequest extends \Google\Protobuf\Internal\Message
{
/**
* Tenant object to create.
*
* Generated from protobuf field .api.Tenant tenant = 1;
*/
protected $tenant = null;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Chirpstack\Api\Tenant $tenant
* Tenant object to create.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Tenant::initOnce();
parent::__construct($data);
}
/**
* Tenant object to create.
*
* Generated from protobuf field .api.Tenant tenant = 1;
* @return \Chirpstack\Api\Tenant|null
*/
public function getTenant()
{
return $this->tenant;
}
public function hasTenant()
{
return isset($this->tenant);
}
public function clearTenant()
{
unset($this->tenant);
}
/**
* Tenant object to create.
*
* Generated from protobuf field .api.Tenant tenant = 1;
* @param \Chirpstack\Api\Tenant $var
* @return $this
*/
public function setTenant($var)
{
GPBUtil::checkMessage($var, \Chirpstack\Api\Tenant::class);
$this->tenant = $var;
return $this;
}
}