mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-04-26 05:49:51 +00:00
76 lines
1.7 KiB
PHP
Vendored
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;
|
|
}
|
|
|
|
}
|
|
|