api.GatewayListItem */ class GatewayListItem extends \Google\Protobuf\Internal\Message { /** * Tenant ID. * * Generated from protobuf field string tenant_id = 1; */ protected $tenant_id = ''; /** * Gateway ID (EUI64). * * Generated from protobuf field string gateway_id = 2; */ protected $gateway_id = ''; /** * Name. * * Generated from protobuf field string name = 3; */ protected $name = ''; /** * Description. * * Generated from protobuf field string description = 4; */ protected $description = ''; /** * Location. * * Generated from protobuf field .common.Location location = 5; */ protected $location = null; /** * Gateway properties. * * Generated from protobuf field map properties = 6; */ private $properties; /** * Created at timestamp. * * Generated from protobuf field .google.protobuf.Timestamp created_at = 7; */ protected $created_at = null; /** * Last update timestamp. * * Generated from protobuf field .google.protobuf.Timestamp updated_at = 8; */ protected $updated_at = null; /** * Last seen at timestamp. * * Generated from protobuf field .google.protobuf.Timestamp last_seen_at = 9; */ protected $last_seen_at = null; /** * Gateway state. * Please note that the state of the gateway is driven by the stats * packages that are sent by the gateway. * * Generated from protobuf field .api.GatewayState state = 10; */ protected $state = 0; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $tenant_id * Tenant ID. * @type string $gateway_id * Gateway ID (EUI64). * @type string $name * Name. * @type string $description * Description. * @type \Chirpstack\Common\Location $location * Location. * @type array|\Google\Protobuf\Internal\MapField $properties * Gateway properties. * @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 gateway is driven by the stats * packages that are sent by the gateway. * } */ 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; } /** * Gateway ID (EUI64). * * Generated from protobuf field string gateway_id = 2; * @return string */ public function getGatewayId() { return $this->gateway_id; } /** * Gateway ID (EUI64). * * Generated from protobuf field string gateway_id = 2; * @param string $var * @return $this */ public function setGatewayId($var) { GPBUtil::checkString($var, True); $this->gateway_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; } /** * Location. * * Generated from protobuf field .common.Location location = 5; * @return \Chirpstack\Common\Location|null */ public function getLocation() { return $this->location; } public function hasLocation() { return isset($this->location); } public function clearLocation() { unset($this->location); } /** * Location. * * Generated from protobuf field .common.Location location = 5; * @param \Chirpstack\Common\Location $var * @return $this */ public function setLocation($var) { GPBUtil::checkMessage($var, \Chirpstack\Common\Location::class); $this->location = $var; return $this; } /** * Gateway properties. * * Generated from protobuf field map properties = 6; * @return \Google\Protobuf\Internal\MapField */ public function getProperties() { return $this->properties; } /** * Gateway properties. * * Generated from protobuf field map properties = 6; * @param array|\Google\Protobuf\Internal\MapField $var * @return $this */ public function setProperties($var) { $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); $this->properties = $arr; return $this; } /** * Created at timestamp. * * Generated from protobuf field .google.protobuf.Timestamp created_at = 7; * @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 = 7; * @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 = 8; * @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 = 8; * @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 = 9; * @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 = 9; * @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 gateway is driven by the stats * packages that are sent by the 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 gateway is driven by the stats * packages that are sent by the 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; } }