api.CreateApiKeyRequest
*/
class CreateApiKeyRequest extends \Google\Protobuf\Internal\Message
{
/**
* The API key to create.
*
* Generated from protobuf field .api.ApiKey api_key = 1;
*/
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 .api.ApiKey api_key = 1;
* @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 .api.ApiKey api_key = 1;
* @param \Chirpstack\Api\ApiKey $var
* @return $this
*/
public function setApiKey($var)
{
GPBUtil::checkMessage($var, \Chirpstack\Api\ApiKey::class);
$this->api_key = $var;
return $this;
}
}