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

216 lines
5.2 KiB
PHP
Vendored

<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: gw/gw.proto
namespace Chirpstack\Gateway;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>gw.GatewayConfiguration</code>
*/
class GatewayConfiguration extends \Google\Protobuf\Internal\Message
{
/**
* Gateway ID.
* Deprecated: use gateway_id.
*
* Generated from protobuf field <code>bytes gateway_id_legacy = 1;</code>
*/
protected $gateway_id_legacy = '';
/**
* Gateway ID.
*
* Generated from protobuf field <code>string gateway_id = 5;</code>
*/
protected $gateway_id = '';
/**
* Configuration version.
*
* Generated from protobuf field <code>string version = 2;</code>
*/
protected $version = '';
/**
* Channels.
*
* Generated from protobuf field <code>repeated .gw.ChannelConfiguration channels = 3;</code>
*/
private $channels;
/**
* Stats interval.
*
* Generated from protobuf field <code>.google.protobuf.Duration stats_interval = 4;</code>
*/
protected $stats_interval = null;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $gateway_id_legacy
* Gateway ID.
* Deprecated: use gateway_id.
* @type string $gateway_id
* Gateway ID.
* @type string $version
* Configuration version.
* @type array<\Chirpstack\Gateway\ChannelConfiguration>|\Google\Protobuf\Internal\RepeatedField $channels
* Channels.
* @type \Google\Protobuf\Duration $stats_interval
* Stats interval.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Gateway\Gw::initOnce();
parent::__construct($data);
}
/**
* Gateway ID.
* Deprecated: use gateway_id.
*
* Generated from protobuf field <code>bytes gateway_id_legacy = 1;</code>
* @return string
*/
public function getGatewayIdLegacy()
{
return $this->gateway_id_legacy;
}
/**
* Gateway ID.
* Deprecated: use gateway_id.
*
* Generated from protobuf field <code>bytes gateway_id_legacy = 1;</code>
* @param string $var
* @return $this
*/
public function setGatewayIdLegacy($var)
{
GPBUtil::checkString($var, False);
$this->gateway_id_legacy = $var;
return $this;
}
/**
* Gateway ID.
*
* Generated from protobuf field <code>string gateway_id = 5;</code>
* @return string
*/
public function getGatewayId()
{
return $this->gateway_id;
}
/**
* Gateway ID.
*
* Generated from protobuf field <code>string gateway_id = 5;</code>
* @param string $var
* @return $this
*/
public function setGatewayId($var)
{
GPBUtil::checkString($var, True);
$this->gateway_id = $var;
return $this;
}
/**
* Configuration version.
*
* Generated from protobuf field <code>string version = 2;</code>
* @return string
*/
public function getVersion()
{
return $this->version;
}
/**
* Configuration version.
*
* Generated from protobuf field <code>string version = 2;</code>
* @param string $var
* @return $this
*/
public function setVersion($var)
{
GPBUtil::checkString($var, True);
$this->version = $var;
return $this;
}
/**
* Channels.
*
* Generated from protobuf field <code>repeated .gw.ChannelConfiguration channels = 3;</code>
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getChannels()
{
return $this->channels;
}
/**
* Channels.
*
* Generated from protobuf field <code>repeated .gw.ChannelConfiguration channels = 3;</code>
* @param array<\Chirpstack\Gateway\ChannelConfiguration>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setChannels($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Chirpstack\Gateway\ChannelConfiguration::class);
$this->channels = $arr;
return $this;
}
/**
* Stats interval.
*
* Generated from protobuf field <code>.google.protobuf.Duration stats_interval = 4;</code>
* @return \Google\Protobuf\Duration|null
*/
public function getStatsInterval()
{
return $this->stats_interval;
}
public function hasStatsInterval()
{
return isset($this->stats_interval);
}
public function clearStatsInterval()
{
unset($this->stats_interval);
}
/**
* Stats interval.
*
* Generated from protobuf field <code>.google.protobuf.Duration stats_interval = 4;</code>
* @param \Google\Protobuf\Duration $var
* @return $this
*/
public function setStatsInterval($var)
{
GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
$this->stats_interval = $var;
return $this;
}
}