gw.GatewayConfiguration */ class GatewayConfiguration extends \Google\Protobuf\Internal\Message { /** * Gateway ID. * Deprecated: use gateway_id. * * Generated from protobuf field bytes gateway_id_legacy = 1; */ protected $gateway_id_legacy = ''; /** * Gateway ID. * * Generated from protobuf field string gateway_id = 5; */ protected $gateway_id = ''; /** * Configuration version. * * Generated from protobuf field string version = 2; */ protected $version = ''; /** * Channels. * * Generated from protobuf field repeated .gw.ChannelConfiguration channels = 3; */ private $channels; /** * Stats interval. * * Generated from protobuf field .google.protobuf.Duration stats_interval = 4; */ 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 bytes gateway_id_legacy = 1; * @return string */ public function getGatewayIdLegacy() { return $this->gateway_id_legacy; } /** * Gateway ID. * Deprecated: use gateway_id. * * Generated from protobuf field bytes gateway_id_legacy = 1; * @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 string gateway_id = 5; * @return string */ public function getGatewayId() { return $this->gateway_id; } /** * Gateway ID. * * Generated from protobuf field string gateway_id = 5; * @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 string version = 2; * @return string */ public function getVersion() { return $this->version; } /** * Configuration version. * * Generated from protobuf field string version = 2; * @param string $var * @return $this */ public function setVersion($var) { GPBUtil::checkString($var, True); $this->version = $var; return $this; } /** * Channels. * * Generated from protobuf field repeated .gw.ChannelConfiguration channels = 3; * @return \Google\Protobuf\Internal\RepeatedField */ public function getChannels() { return $this->channels; } /** * Channels. * * Generated from protobuf field repeated .gw.ChannelConfiguration channels = 3; * @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 .google.protobuf.Duration stats_interval = 4; * @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 .google.protobuf.Duration stats_interval = 4; * @param \Google\Protobuf\Duration $var * @return $this */ public function setStatsInterval($var) { GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); $this->stats_interval = $var; return $this; } }