mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-04-26 05:49:51 +00:00
244 lines
5.5 KiB
PHP
Vendored
244 lines
5.5 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.RelayGateway</code>
|
|
*/
|
|
class RelayGateway extends \Google\Protobuf\Internal\Message
|
|
{
|
|
/**
|
|
* Tenant ID.
|
|
*
|
|
* Generated from protobuf field <code>string tenant_id = 1;</code>
|
|
*/
|
|
protected $tenant_id = '';
|
|
/**
|
|
* Relay ID (4 byte HEX).
|
|
*
|
|
* Generated from protobuf field <code>string relay_id = 2;</code>
|
|
*/
|
|
protected $relay_id = '';
|
|
/**
|
|
* Name.
|
|
*
|
|
* Generated from protobuf field <code>string name = 3;</code>
|
|
*/
|
|
protected $name = '';
|
|
/**
|
|
* Description.
|
|
*
|
|
* Generated from protobuf field <code>string description = 4;</code>
|
|
*/
|
|
protected $description = '';
|
|
/**
|
|
* Stats interval (seconds).
|
|
* This defines the expected interval in which the gateway sends its
|
|
* statistics.
|
|
*
|
|
* Generated from protobuf field <code>uint32 stats_interval = 5;</code>
|
|
*/
|
|
protected $stats_interval = 0;
|
|
/**
|
|
* Region configuration ID.
|
|
*
|
|
* Generated from protobuf field <code>string region_config_id = 6;</code>
|
|
*/
|
|
protected $region_config_id = '';
|
|
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param array $data {
|
|
* Optional. Data for populating the Message object.
|
|
*
|
|
* @type string $tenant_id
|
|
* Tenant ID.
|
|
* @type string $relay_id
|
|
* Relay ID (4 byte HEX).
|
|
* @type string $name
|
|
* Name.
|
|
* @type string $description
|
|
* Description.
|
|
* @type int $stats_interval
|
|
* Stats interval (seconds).
|
|
* This defines the expected interval in which the gateway sends its
|
|
* statistics.
|
|
* @type string $region_config_id
|
|
* Region configuration ID.
|
|
* }
|
|
*/
|
|
public function __construct($data = NULL) {
|
|
\GPBMetadata\Chirpstack\Api\Gateway::initOnce();
|
|
parent::__construct($data);
|
|
}
|
|
|
|
/**
|
|
* Tenant ID.
|
|
*
|
|
* Generated from protobuf field <code>string tenant_id = 1;</code>
|
|
* @return string
|
|
*/
|
|
public function getTenantId()
|
|
{
|
|
return $this->tenant_id;
|
|
}
|
|
|
|
/**
|
|
* Tenant ID.
|
|
*
|
|
* Generated from protobuf field <code>string tenant_id = 1;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setTenantId($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->tenant_id = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Relay ID (4 byte HEX).
|
|
*
|
|
* Generated from protobuf field <code>string relay_id = 2;</code>
|
|
* @return string
|
|
*/
|
|
public function getRelayId()
|
|
{
|
|
return $this->relay_id;
|
|
}
|
|
|
|
/**
|
|
* Relay ID (4 byte HEX).
|
|
*
|
|
* Generated from protobuf field <code>string relay_id = 2;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setRelayId($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->relay_id = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Name.
|
|
*
|
|
* Generated from protobuf field <code>string name = 3;</code>
|
|
* @return string
|
|
*/
|
|
public function getName()
|
|
{
|
|
return $this->name;
|
|
}
|
|
|
|
/**
|
|
* Name.
|
|
*
|
|
* Generated from protobuf field <code>string name = 3;</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 = 4;</code>
|
|
* @return string
|
|
*/
|
|
public function getDescription()
|
|
{
|
|
return $this->description;
|
|
}
|
|
|
|
/**
|
|
* Description.
|
|
*
|
|
* Generated from protobuf field <code>string description = 4;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setDescription($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->description = $var;
|
|
|
|
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 = 5;</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 = 5;</code>
|
|
* @param int $var
|
|
* @return $this
|
|
*/
|
|
public function setStatsInterval($var)
|
|
{
|
|
GPBUtil::checkUint32($var);
|
|
$this->stats_interval = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Region configuration ID.
|
|
*
|
|
* Generated from protobuf field <code>string region_config_id = 6;</code>
|
|
* @return string
|
|
*/
|
|
public function getRegionConfigId()
|
|
{
|
|
return $this->region_config_id;
|
|
}
|
|
|
|
/**
|
|
* Region configuration ID.
|
|
*
|
|
* Generated from protobuf field <code>string region_config_id = 6;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setRegionConfigId($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->region_config_id = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
}
|
|
|