api.RelayGatewayListItem */ class RelayGatewayListItem 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 = ''; /** * Created at timestamp. * * Generated from protobuf field .google.protobuf.Timestamp created_at = 5; */ protected $created_at = null; /** * Last update timestamp. * * Generated from protobuf field .google.protobuf.Timestamp updated_at = 6; */ protected $updated_at = null; /** * Last seen at timestamp. * * Generated from protobuf field .google.protobuf.Timestamp last_seen_at = 7; */ 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 .api.GatewayState state = 10; */ protected $state = 0; /** * Region configuration ID. * * Generated from protobuf field string region_config_id = 11; */ 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 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; } /** * Created at timestamp. * * Generated from protobuf field .google.protobuf.Timestamp created_at = 5; * @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 .google.protobuf.Timestamp created_at = 5; * @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 .google.protobuf.Timestamp updated_at = 6; * @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 .google.protobuf.Timestamp updated_at = 6; * @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 .google.protobuf.Timestamp last_seen_at = 7; * @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 .google.protobuf.Timestamp last_seen_at = 7; * @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 .api.GatewayState state = 10; * @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 .api.GatewayState state = 10; * @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 string region_config_id = 11; * @return string */ public function getRegionConfigId() { return $this->region_config_id; } /** * Region configuration ID. * * Generated from protobuf field string region_config_id = 11; * @param string $var * @return $this */ public function setRegionConfigId($var) { GPBUtil::checkString($var, True); $this->region_config_id = $var; return $this; } }