api.Gateway */ class Gateway extends \Google\Protobuf\Internal\Message { /** * Gateway ID (EUI64). * * Generated from protobuf field string gateway_id = 1; */ protected $gateway_id = ''; /** * Name. * * Generated from protobuf field string name = 2; */ protected $name = ''; /** * Description. * * Generated from protobuf field string description = 3; */ protected $description = ''; /** * Gateway location. * * Generated from protobuf field .common.Location location = 4; */ protected $location = null; /** * Tenant ID (UUID). * * Generated from protobuf field string tenant_id = 5; */ protected $tenant_id = ''; /** * Tags. * * Generated from protobuf field map tags = 6; */ private $tags; /** * Metadata (provided by the gateway). * * Generated from protobuf field map metadata = 7; */ private $metadata; /** * Stats interval (seconds). * This defines the expected interval in which the gateway sends its * statistics. * * Generated from protobuf field uint32 stats_interval = 8; */ protected $stats_interval = 0; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $gateway_id * Gateway ID (EUI64). * @type string $name * Name. * @type string $description * Description. * @type \Chirpstack\Common\Location $location * Gateway location. * @type string $tenant_id * Tenant ID (UUID). * @type array|\Google\Protobuf\Internal\MapField $tags * Tags. * @type array|\Google\Protobuf\Internal\MapField $metadata * Metadata (provided by the gateway). * @type int $stats_interval * Stats interval (seconds). * This defines the expected interval in which the gateway sends its * statistics. * } */ public function __construct($data = NULL) { \GPBMetadata\Chirpstack\Api\Gateway::initOnce(); parent::__construct($data); } /** * Gateway ID (EUI64). * * Generated from protobuf field string gateway_id = 1; * @return string */ public function getGatewayId() { return $this->gateway_id; } /** * Gateway ID (EUI64). * * Generated from protobuf field string gateway_id = 1; * @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 = 2; * @return string */ public function getName() { return $this->name; } /** * Name. * * Generated from protobuf field string name = 2; * @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 = 3; * @return string */ public function getDescription() { return $this->description; } /** * Description. * * Generated from protobuf field string description = 3; * @param string $var * @return $this */ public function setDescription($var) { GPBUtil::checkString($var, True); $this->description = $var; return $this; } /** * Gateway location. * * Generated from protobuf field .common.Location location = 4; * @return \Chirpstack\Common\Location|null */ public function getLocation() { return $this->location; } public function hasLocation() { return isset($this->location); } public function clearLocation() { unset($this->location); } /** * Gateway location. * * Generated from protobuf field .common.Location location = 4; * @param \Chirpstack\Common\Location $var * @return $this */ public function setLocation($var) { GPBUtil::checkMessage($var, \Chirpstack\Common\Location::class); $this->location = $var; return $this; } /** * Tenant ID (UUID). * * Generated from protobuf field string tenant_id = 5; * @return string */ public function getTenantId() { return $this->tenant_id; } /** * Tenant ID (UUID). * * Generated from protobuf field string tenant_id = 5; * @param string $var * @return $this */ public function setTenantId($var) { GPBUtil::checkString($var, True); $this->tenant_id = $var; return $this; } /** * Tags. * * Generated from protobuf field map tags = 6; * @return \Google\Protobuf\Internal\MapField */ public function getTags() { return $this->tags; } /** * Tags. * * Generated from protobuf field map tags = 6; * @param array|\Google\Protobuf\Internal\MapField $var * @return $this */ public function setTags($var) { $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); $this->tags = $arr; return $this; } /** * Metadata (provided by the gateway). * * Generated from protobuf field map metadata = 7; * @return \Google\Protobuf\Internal\MapField */ public function getMetadata() { return $this->metadata; } /** * Metadata (provided by the gateway). * * Generated from protobuf field map metadata = 7; * @param array|\Google\Protobuf\Internal\MapField $var * @return $this */ public function setMetadata($var) { $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); $this->metadata = $arr; return $this; } /** * Stats interval (seconds). * This defines the expected interval in which the gateway sends its * statistics. * * Generated from protobuf field uint32 stats_interval = 8; * @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 = 8; * @param int $var * @return $this */ public function setStatsInterval($var) { GPBUtil::checkUint32($var); $this->stats_interval = $var; return $this; } }