2024-06-25 12:27:28 +01:00

133 lines
3.0 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;
/**
* ConnState contains the connection state of a gateway.
*
* Generated from protobuf message <code>gw.ConnState</code>
*/
class ConnState 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 = 3;</code>
*/
protected $gateway_id = '';
/**
* Generated from protobuf field <code>.gw.ConnState.State state = 2;</code>
*/
protected $state = 0;
/**
* 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 int $state
* }
*/
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 = 3;</code>
* @return string
*/
public function getGatewayId()
{
return $this->gateway_id;
}
/**
* Gateway ID.
*
* Generated from protobuf field <code>string gateway_id = 3;</code>
* @param string $var
* @return $this
*/
public function setGatewayId($var)
{
GPBUtil::checkString($var, True);
$this->gateway_id = $var;
return $this;
}
/**
* Generated from protobuf field <code>.gw.ConnState.State state = 2;</code>
* @return int
*/
public function getState()
{
return $this->state;
}
/**
* Generated from protobuf field <code>.gw.ConnState.State state = 2;</code>
* @param int $var
* @return $this
*/
public function setState($var)
{
GPBUtil::checkEnum($var, \Chirpstack\Gateway\ConnState\State::class);
$this->state = $var;
return $this;
}
}