mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-04-26 05:49:51 +00:00
322 lines
7.6 KiB
PHP
Vendored
322 lines
7.6 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.Gateway</code>
|
|
*/
|
|
class Gateway extends \Google\Protobuf\Internal\Message
|
|
{
|
|
/**
|
|
* Gateway ID (EUI64).
|
|
*
|
|
* Generated from protobuf field <code>string gateway_id = 1;</code>
|
|
*/
|
|
protected $gateway_id = '';
|
|
/**
|
|
* Name.
|
|
*
|
|
* Generated from protobuf field <code>string name = 2;</code>
|
|
*/
|
|
protected $name = '';
|
|
/**
|
|
* Description.
|
|
*
|
|
* Generated from protobuf field <code>string description = 3;</code>
|
|
*/
|
|
protected $description = '';
|
|
/**
|
|
* Gateway location.
|
|
*
|
|
* Generated from protobuf field <code>.common.Location location = 4;</code>
|
|
*/
|
|
protected $location = null;
|
|
/**
|
|
* Tenant ID (UUID).
|
|
*
|
|
* Generated from protobuf field <code>string tenant_id = 5;</code>
|
|
*/
|
|
protected $tenant_id = '';
|
|
/**
|
|
* Tags.
|
|
*
|
|
* Generated from protobuf field <code>map<string, string> tags = 6;</code>
|
|
*/
|
|
private $tags;
|
|
/**
|
|
* Metadata (provided by the gateway).
|
|
*
|
|
* Generated from protobuf field <code>map<string, string> metadata = 7;</code>
|
|
*/
|
|
private $metadata;
|
|
/**
|
|
* Stats interval (seconds).
|
|
* This defines the expected interval in which the gateway sends its
|
|
* statistics.
|
|
*
|
|
* Generated from protobuf field <code>uint32 stats_interval = 8;</code>
|
|
*/
|
|
protected $stats_interval = 0;
|
|
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param array $data {
|
|
* Optional. Data for populating the Message object.
|
|
*
|
|
* @type string $gateway_id
|
|
* Gateway ID (EUI64).
|
|
* @type string $name
|
|
* Name.
|
|
* @type string $description
|
|
* Description.
|
|
* @type \Chirpstack\Common\Location $location
|
|
* Gateway location.
|
|
* @type string $tenant_id
|
|
* Tenant ID (UUID).
|
|
* @type array|\Google\Protobuf\Internal\MapField $tags
|
|
* Tags.
|
|
* @type array|\Google\Protobuf\Internal\MapField $metadata
|
|
* Metadata (provided by the gateway).
|
|
* @type int $stats_interval
|
|
* Stats interval (seconds).
|
|
* This defines the expected interval in which the gateway sends its
|
|
* statistics.
|
|
* }
|
|
*/
|
|
public function __construct($data = NULL) {
|
|
\GPBMetadata\Chirpstack\Api\Gateway::initOnce();
|
|
parent::__construct($data);
|
|
}
|
|
|
|
/**
|
|
* Gateway ID (EUI64).
|
|
*
|
|
* Generated from protobuf field <code>string gateway_id = 1;</code>
|
|
* @return string
|
|
*/
|
|
public function getGatewayId()
|
|
{
|
|
return $this->gateway_id;
|
|
}
|
|
|
|
/**
|
|
* Gateway ID (EUI64).
|
|
*
|
|
* Generated from protobuf field <code>string gateway_id = 1;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setGatewayId($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->gateway_id = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Name.
|
|
*
|
|
* Generated from protobuf field <code>string name = 2;</code>
|
|
* @return string
|
|
*/
|
|
public function getName()
|
|
{
|
|
return $this->name;
|
|
}
|
|
|
|
/**
|
|
* Name.
|
|
*
|
|
* Generated from protobuf field <code>string name = 2;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setName($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->name = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Description.
|
|
*
|
|
* Generated from protobuf field <code>string description = 3;</code>
|
|
* @return string
|
|
*/
|
|
public function getDescription()
|
|
{
|
|
return $this->description;
|
|
}
|
|
|
|
/**
|
|
* Description.
|
|
*
|
|
* Generated from protobuf field <code>string description = 3;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setDescription($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->description = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gateway location.
|
|
*
|
|
* Generated from protobuf field <code>.common.Location location = 4;</code>
|
|
* @return \Chirpstack\Common\Location|null
|
|
*/
|
|
public function getLocation()
|
|
{
|
|
return $this->location;
|
|
}
|
|
|
|
public function hasLocation()
|
|
{
|
|
return isset($this->location);
|
|
}
|
|
|
|
public function clearLocation()
|
|
{
|
|
unset($this->location);
|
|
}
|
|
|
|
/**
|
|
* Gateway location.
|
|
*
|
|
* Generated from protobuf field <code>.common.Location location = 4;</code>
|
|
* @param \Chirpstack\Common\Location $var
|
|
* @return $this
|
|
*/
|
|
public function setLocation($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Chirpstack\Common\Location::class);
|
|
$this->location = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Tenant ID (UUID).
|
|
*
|
|
* Generated from protobuf field <code>string tenant_id = 5;</code>
|
|
* @return string
|
|
*/
|
|
public function getTenantId()
|
|
{
|
|
return $this->tenant_id;
|
|
}
|
|
|
|
/**
|
|
* Tenant ID (UUID).
|
|
*
|
|
* Generated from protobuf field <code>string tenant_id = 5;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setTenantId($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->tenant_id = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Tags.
|
|
*
|
|
* Generated from protobuf field <code>map<string, string> tags = 6;</code>
|
|
* @return \Google\Protobuf\Internal\MapField
|
|
*/
|
|
public function getTags()
|
|
{
|
|
return $this->tags;
|
|
}
|
|
|
|
/**
|
|
* Tags.
|
|
*
|
|
* Generated from protobuf field <code>map<string, string> tags = 6;</code>
|
|
* @param array|\Google\Protobuf\Internal\MapField $var
|
|
* @return $this
|
|
*/
|
|
public function setTags($var)
|
|
{
|
|
$arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
|
|
$this->tags = $arr;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Metadata (provided by the gateway).
|
|
*
|
|
* Generated from protobuf field <code>map<string, string> metadata = 7;</code>
|
|
* @return \Google\Protobuf\Internal\MapField
|
|
*/
|
|
public function getMetadata()
|
|
{
|
|
return $this->metadata;
|
|
}
|
|
|
|
/**
|
|
* Metadata (provided by the gateway).
|
|
*
|
|
* Generated from protobuf field <code>map<string, string> metadata = 7;</code>
|
|
* @param array|\Google\Protobuf\Internal\MapField $var
|
|
* @return $this
|
|
*/
|
|
public function setMetadata($var)
|
|
{
|
|
$arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
|
|
$this->metadata = $arr;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Stats interval (seconds).
|
|
* This defines the expected interval in which the gateway sends its
|
|
* statistics.
|
|
*
|
|
* Generated from protobuf field <code>uint32 stats_interval = 8;</code>
|
|
* @return int
|
|
*/
|
|
public function getStatsInterval()
|
|
{
|
|
return $this->stats_interval;
|
|
}
|
|
|
|
/**
|
|
* Stats interval (seconds).
|
|
* This defines the expected interval in which the gateway sends its
|
|
* statistics.
|
|
*
|
|
* Generated from protobuf field <code>uint32 stats_interval = 8;</code>
|
|
* @param int $var
|
|
* @return $this
|
|
*/
|
|
public function setStatsInterval($var)
|
|
{
|
|
GPBUtil::checkUint32($var);
|
|
$this->stats_interval = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
}
|
|
|