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

76 lines
1.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.CreateApiKeyRequest</code>
*/
class CreateApiKeyRequest extends \Google\Protobuf\Internal\Message
{
/**
* The API key to create.
*
* Generated from protobuf field <code>.api.ApiKey api_key = 1;</code>
*/
protected $api_key = null;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Chirpstack\Api\ApiKey $api_key
* The API key to create.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Internal::initOnce();
parent::__construct($data);
}
/**
* The API key to create.
*
* Generated from protobuf field <code>.api.ApiKey api_key = 1;</code>
* @return \Chirpstack\Api\ApiKey|null
*/
public function getApiKey()
{
return $this->api_key;
}
public function hasApiKey()
{
return isset($this->api_key);
}
public function clearApiKey()
{
unset($this->api_key);
}
/**
* The API key to create.
*
* Generated from protobuf field <code>.api.ApiKey api_key = 1;</code>
* @param \Chirpstack\Api\ApiKey $var
* @return $this
*/
public function setApiKey($var)
{
GPBUtil::checkMessage($var, \Chirpstack\Api\ApiKey::class);
$this->api_key = $var;
return $this;
}
}