chirpstack/api/php/generated/Chirpstack/Api/CreateGatewayRequest.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/gateway.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.CreateGatewayRequest</code>
*/
class CreateGatewayRequest extends \Google\Protobuf\Internal\Message
{
/**
* Gateway object.
*
* Generated from protobuf field <code>.api.Gateway gateway = 1;</code>
*/
protected $gateway = null;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Chirpstack\Api\Gateway $gateway
* Gateway object.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Gateway::initOnce();
parent::__construct($data);
}
/**
* Gateway object.
*
* Generated from protobuf field <code>.api.Gateway gateway = 1;</code>
* @return \Chirpstack\Api\Gateway|null
*/
public function getGateway()
{
return $this->gateway;
}
public function hasGateway()
{
return isset($this->gateway);
}
public function clearGateway()
{
unset($this->gateway);
}
/**
* Gateway object.
*
* Generated from protobuf field <code>.api.Gateway gateway = 1;</code>
* @param \Chirpstack\Api\Gateway $var
* @return $this
*/
public function setGateway($var)
{
GPBUtil::checkMessage($var, \Chirpstack\Api\Gateway::class);
$this->gateway = $var;
return $this;
}
}