api.RelayGateway
*/
class RelayGateway extends \Google\Protobuf\Internal\Message
{
/**
* Tenant ID.
*
* Generated from protobuf field string tenant_id = 1;
*/
protected $tenant_id = '';
/**
* Relay ID (4 byte HEX).
*
* Generated from protobuf field string relay_id = 2;
*/
protected $relay_id = '';
/**
* Name.
*
* Generated from protobuf field string name = 3;
*/
protected $name = '';
/**
* Description.
*
* Generated from protobuf field string description = 4;
*/
protected $description = '';
/**
* Stats interval (seconds).
* This defines the expected interval in which the gateway sends its
* statistics.
*
* Generated from protobuf field uint32 stats_interval = 5;
*/
protected $stats_interval = 0;
/**
* Region configuration ID.
*
* Generated from protobuf field string region_config_id = 6;
*/
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 string tenant_id = 1;
* @return string
*/
public function getTenantId()
{
return $this->tenant_id;
}
/**
* Tenant ID.
*
* Generated from protobuf field string tenant_id = 1;
* @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 string relay_id = 2;
* @return string
*/
public function getRelayId()
{
return $this->relay_id;
}
/**
* Relay ID (4 byte HEX).
*
* Generated from protobuf field string relay_id = 2;
* @param string $var
* @return $this
*/
public function setRelayId($var)
{
GPBUtil::checkString($var, True);
$this->relay_id = $var;
return $this;
}
/**
* Name.
*
* Generated from protobuf field string name = 3;
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Name.
*
* Generated from protobuf field string name = 3;
* @param string $var
* @return $this
*/
public function setName($var)
{
GPBUtil::checkString($var, True);
$this->name = $var;
return $this;
}
/**
* Description.
*
* Generated from protobuf field string description = 4;
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Description.
*
* Generated from protobuf field string description = 4;
* @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 uint32 stats_interval = 5;
* @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 uint32 stats_interval = 5;
* @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 string region_config_id = 6;
* @return string
*/
public function getRegionConfigId()
{
return $this->region_config_id;
}
/**
* Region configuration ID.
*
* Generated from protobuf field string region_config_id = 6;
* @param string $var
* @return $this
*/
public function setRegionConfigId($var)
{
GPBUtil::checkString($var, True);
$this->region_config_id = $var;
return $this;
}
}