chirpstack/api/php/generated/Chirpstack/Api/GatewayListItem.php
2024-06-25 12:27:28 +01:00

420 lines
10 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.GatewayListItem</code>
*/
class GatewayListItem extends \Google\Protobuf\Internal\Message
{
/**
* Tenant ID.
*
* Generated from protobuf field <code>string tenant_id = 1;</code>
*/
protected $tenant_id = '';
/**
* Gateway ID (EUI64).
*
* Generated from protobuf field <code>string gateway_id = 2;</code>
*/
protected $gateway_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 = '';
/**
* Location.
*
* Generated from protobuf field <code>.common.Location location = 5;</code>
*/
protected $location = null;
/**
* Gateway properties.
*
* Generated from protobuf field <code>map<string, string> properties = 6;</code>
*/
private $properties;
/**
* Created at timestamp.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp created_at = 7;</code>
*/
protected $created_at = null;
/**
* Last update timestamp.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp updated_at = 8;</code>
*/
protected $updated_at = null;
/**
* Last seen at timestamp.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp last_seen_at = 9;</code>
*/
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 <code>.api.GatewayState state = 10;</code>
*/
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 <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;
}
/**
* Gateway ID (EUI64).
*
* Generated from protobuf field <code>string gateway_id = 2;</code>
* @return string
*/
public function getGatewayId()
{
return $this->gateway_id;
}
/**
* Gateway ID (EUI64).
*
* Generated from protobuf field <code>string gateway_id = 2;</code>
* @param string $var
* @return $this
*/
public function setGatewayId($var)
{
GPBUtil::checkString($var, True);
$this->gateway_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;
}
/**
* Location.
*
* Generated from protobuf field <code>.common.Location location = 5;</code>
* @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 <code>.common.Location location = 5;</code>
* @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 <code>map<string, string> properties = 6;</code>
* @return \Google\Protobuf\Internal\MapField
*/
public function getProperties()
{
return $this->properties;
}
/**
* Gateway properties.
*
* Generated from protobuf field <code>map<string, string> properties = 6;</code>
* @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 <code>.google.protobuf.Timestamp created_at = 7;</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 = 7;</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 = 8;</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 = 8;</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 = 9;</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 = 9;</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 gateway is driven by the stats
* packages that are sent by the 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 gateway is driven by the stats
* packages that are sent by the 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;
}
}