mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-04-26 05:49:51 +00:00
376 lines
8.9 KiB
PHP
Vendored
376 lines
8.9 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.RelayGatewayListItem</code>
|
|
*/
|
|
class RelayGatewayListItem 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 = '';
|
|
/**
|
|
* Created at timestamp.
|
|
*
|
|
* Generated from protobuf field <code>.google.protobuf.Timestamp created_at = 5;</code>
|
|
*/
|
|
protected $created_at = null;
|
|
/**
|
|
* Last update timestamp.
|
|
*
|
|
* Generated from protobuf field <code>.google.protobuf.Timestamp updated_at = 6;</code>
|
|
*/
|
|
protected $updated_at = null;
|
|
/**
|
|
* Last seen at timestamp.
|
|
*
|
|
* Generated from protobuf field <code>.google.protobuf.Timestamp last_seen_at = 7;</code>
|
|
*/
|
|
protected $last_seen_at = null;
|
|
/**
|
|
* Gateway state.
|
|
* Please note that the state of the relay is driven by the last
|
|
* received stats packet sent by the relay-gateway.
|
|
*
|
|
* Generated from protobuf field <code>.api.GatewayState state = 10;</code>
|
|
*/
|
|
protected $state = 0;
|
|
/**
|
|
* Region configuration ID.
|
|
*
|
|
* Generated from protobuf field <code>string region_config_id = 11;</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 \Google\Protobuf\Timestamp $created_at
|
|
* Created at timestamp.
|
|
* @type \Google\Protobuf\Timestamp $updated_at
|
|
* Last update timestamp.
|
|
* @type \Google\Protobuf\Timestamp $last_seen_at
|
|
* Last seen at timestamp.
|
|
* @type int $state
|
|
* Gateway state.
|
|
* Please note that the state of the relay is driven by the last
|
|
* received stats packet sent by the relay-gateway.
|
|
* @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;
|
|
}
|
|
|
|
/**
|
|
* Created at timestamp.
|
|
*
|
|
* Generated from protobuf field <code>.google.protobuf.Timestamp created_at = 5;</code>
|
|
* @return \Google\Protobuf\Timestamp|null
|
|
*/
|
|
public function getCreatedAt()
|
|
{
|
|
return $this->created_at;
|
|
}
|
|
|
|
public function hasCreatedAt()
|
|
{
|
|
return isset($this->created_at);
|
|
}
|
|
|
|
public function clearCreatedAt()
|
|
{
|
|
unset($this->created_at);
|
|
}
|
|
|
|
/**
|
|
* Created at timestamp.
|
|
*
|
|
* Generated from protobuf field <code>.google.protobuf.Timestamp created_at = 5;</code>
|
|
* @param \Google\Protobuf\Timestamp $var
|
|
* @return $this
|
|
*/
|
|
public function setCreatedAt($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
|
|
$this->created_at = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Last update timestamp.
|
|
*
|
|
* Generated from protobuf field <code>.google.protobuf.Timestamp updated_at = 6;</code>
|
|
* @return \Google\Protobuf\Timestamp|null
|
|
*/
|
|
public function getUpdatedAt()
|
|
{
|
|
return $this->updated_at;
|
|
}
|
|
|
|
public function hasUpdatedAt()
|
|
{
|
|
return isset($this->updated_at);
|
|
}
|
|
|
|
public function clearUpdatedAt()
|
|
{
|
|
unset($this->updated_at);
|
|
}
|
|
|
|
/**
|
|
* Last update timestamp.
|
|
*
|
|
* Generated from protobuf field <code>.google.protobuf.Timestamp updated_at = 6;</code>
|
|
* @param \Google\Protobuf\Timestamp $var
|
|
* @return $this
|
|
*/
|
|
public function setUpdatedAt($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
|
|
$this->updated_at = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Last seen at timestamp.
|
|
*
|
|
* Generated from protobuf field <code>.google.protobuf.Timestamp last_seen_at = 7;</code>
|
|
* @return \Google\Protobuf\Timestamp|null
|
|
*/
|
|
public function getLastSeenAt()
|
|
{
|
|
return $this->last_seen_at;
|
|
}
|
|
|
|
public function hasLastSeenAt()
|
|
{
|
|
return isset($this->last_seen_at);
|
|
}
|
|
|
|
public function clearLastSeenAt()
|
|
{
|
|
unset($this->last_seen_at);
|
|
}
|
|
|
|
/**
|
|
* Last seen at timestamp.
|
|
*
|
|
* Generated from protobuf field <code>.google.protobuf.Timestamp last_seen_at = 7;</code>
|
|
* @param \Google\Protobuf\Timestamp $var
|
|
* @return $this
|
|
*/
|
|
public function setLastSeenAt($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
|
|
$this->last_seen_at = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gateway state.
|
|
* Please note that the state of the relay is driven by the last
|
|
* received stats packet sent by the relay-gateway.
|
|
*
|
|
* Generated from protobuf field <code>.api.GatewayState state = 10;</code>
|
|
* @return int
|
|
*/
|
|
public function getState()
|
|
{
|
|
return $this->state;
|
|
}
|
|
|
|
/**
|
|
* Gateway state.
|
|
* Please note that the state of the relay is driven by the last
|
|
* received stats packet sent by the relay-gateway.
|
|
*
|
|
* Generated from protobuf field <code>.api.GatewayState state = 10;</code>
|
|
* @param int $var
|
|
* @return $this
|
|
*/
|
|
public function setState($var)
|
|
{
|
|
GPBUtil::checkEnum($var, \Chirpstack\Api\GatewayState::class);
|
|
$this->state = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Region configuration ID.
|
|
*
|
|
* Generated from protobuf field <code>string region_config_id = 11;</code>
|
|
* @return string
|
|
*/
|
|
public function getRegionConfigId()
|
|
{
|
|
return $this->region_config_id;
|
|
}
|
|
|
|
/**
|
|
* Region configuration ID.
|
|
*
|
|
* Generated from protobuf field <code>string region_config_id = 11;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setRegionConfigId($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->region_config_id = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
}
|
|
|