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

406 lines
9.3 KiB
PHP
Vendored

<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: api/internal.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.GetRegionResponse</code>
*/
class GetRegionResponse extends \Google\Protobuf\Internal\Message
{
/**
* ID.
*
* Generated from protobuf field <code>string id = 1;</code>
*/
protected $id = '';
/**
* Region.
*
* Generated from protobuf field <code>.common.Region region = 2;</code>
*/
protected $region = 0;
/**
* User information.
*
* Generated from protobuf field <code>string user_info = 3;</code>
*/
protected $user_info = '';
/**
* Uplink channels.
*
* Generated from protobuf field <code>repeated .api.RegionChannel uplink_channels = 4;</code>
*/
private $uplink_channels;
/**
* RX1 delay.
*
* Generated from protobuf field <code>uint32 rx1_delay = 5;</code>
*/
protected $rx1_delay = 0;
/**
* RX1 data-rate offset.
*
* Generated from protobuf field <code>uint32 rx1_dr_offset = 6;</code>
*/
protected $rx1_dr_offset = 0;
/**
* RX2 DR.
*
* Generated from protobuf field <code>uint32 rx2_dr = 7;</code>
*/
protected $rx2_dr = 0;
/**
* RX2 frequency.
*
* Generated from protobuf field <code>uint32 rx2_frequency = 8;</code>
*/
protected $rx2_frequency = 0;
/**
* Class-B ping-slot DR.
*
* Generated from protobuf field <code>uint32 class_b_ping_slot_dr = 9;</code>
*/
protected $class_b_ping_slot_dr = 0;
/**
* Class-B ping-slot frequency.
*
* Generated from protobuf field <code>uint32 class_b_ping_slot_frequency = 10;</code>
*/
protected $class_b_ping_slot_frequency = 0;
/**
* Region description.
*
* Generated from protobuf field <code>string description = 11;</code>
*/
protected $description = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $id
* ID.
* @type int $region
* Region.
* @type string $user_info
* User information.
* @type array<\Chirpstack\Api\RegionChannel>|\Google\Protobuf\Internal\RepeatedField $uplink_channels
* Uplink channels.
* @type int $rx1_delay
* RX1 delay.
* @type int $rx1_dr_offset
* RX1 data-rate offset.
* @type int $rx2_dr
* RX2 DR.
* @type int $rx2_frequency
* RX2 frequency.
* @type int $class_b_ping_slot_dr
* Class-B ping-slot DR.
* @type int $class_b_ping_slot_frequency
* Class-B ping-slot frequency.
* @type string $description
* Region description.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Api\Internal::initOnce();
parent::__construct($data);
}
/**
* ID.
*
* Generated from protobuf field <code>string id = 1;</code>
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* ID.
*
* Generated from protobuf field <code>string id = 1;</code>
* @param string $var
* @return $this
*/
public function setId($var)
{
GPBUtil::checkString($var, True);
$this->id = $var;
return $this;
}
/**
* Region.
*
* Generated from protobuf field <code>.common.Region region = 2;</code>
* @return int
*/
public function getRegion()
{
return $this->region;
}
/**
* Region.
*
* Generated from protobuf field <code>.common.Region region = 2;</code>
* @param int $var
* @return $this
*/
public function setRegion($var)
{
GPBUtil::checkEnum($var, \Chirpstack\Common\Region::class);
$this->region = $var;
return $this;
}
/**
* User information.
*
* Generated from protobuf field <code>string user_info = 3;</code>
* @return string
*/
public function getUserInfo()
{
return $this->user_info;
}
/**
* User information.
*
* Generated from protobuf field <code>string user_info = 3;</code>
* @param string $var
* @return $this
*/
public function setUserInfo($var)
{
GPBUtil::checkString($var, True);
$this->user_info = $var;
return $this;
}
/**
* Uplink channels.
*
* Generated from protobuf field <code>repeated .api.RegionChannel uplink_channels = 4;</code>
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getUplinkChannels()
{
return $this->uplink_channels;
}
/**
* Uplink channels.
*
* Generated from protobuf field <code>repeated .api.RegionChannel uplink_channels = 4;</code>
* @param array<\Chirpstack\Api\RegionChannel>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setUplinkChannels($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Chirpstack\Api\RegionChannel::class);
$this->uplink_channels = $arr;
return $this;
}
/**
* RX1 delay.
*
* Generated from protobuf field <code>uint32 rx1_delay = 5;</code>
* @return int
*/
public function getRx1Delay()
{
return $this->rx1_delay;
}
/**
* RX1 delay.
*
* Generated from protobuf field <code>uint32 rx1_delay = 5;</code>
* @param int $var
* @return $this
*/
public function setRx1Delay($var)
{
GPBUtil::checkUint32($var);
$this->rx1_delay = $var;
return $this;
}
/**
* RX1 data-rate offset.
*
* Generated from protobuf field <code>uint32 rx1_dr_offset = 6;</code>
* @return int
*/
public function getRx1DrOffset()
{
return $this->rx1_dr_offset;
}
/**
* RX1 data-rate offset.
*
* Generated from protobuf field <code>uint32 rx1_dr_offset = 6;</code>
* @param int $var
* @return $this
*/
public function setRx1DrOffset($var)
{
GPBUtil::checkUint32($var);
$this->rx1_dr_offset = $var;
return $this;
}
/**
* RX2 DR.
*
* Generated from protobuf field <code>uint32 rx2_dr = 7;</code>
* @return int
*/
public function getRx2Dr()
{
return $this->rx2_dr;
}
/**
* RX2 DR.
*
* Generated from protobuf field <code>uint32 rx2_dr = 7;</code>
* @param int $var
* @return $this
*/
public function setRx2Dr($var)
{
GPBUtil::checkUint32($var);
$this->rx2_dr = $var;
return $this;
}
/**
* RX2 frequency.
*
* Generated from protobuf field <code>uint32 rx2_frequency = 8;</code>
* @return int
*/
public function getRx2Frequency()
{
return $this->rx2_frequency;
}
/**
* RX2 frequency.
*
* Generated from protobuf field <code>uint32 rx2_frequency = 8;</code>
* @param int $var
* @return $this
*/
public function setRx2Frequency($var)
{
GPBUtil::checkUint32($var);
$this->rx2_frequency = $var;
return $this;
}
/**
* Class-B ping-slot DR.
*
* Generated from protobuf field <code>uint32 class_b_ping_slot_dr = 9;</code>
* @return int
*/
public function getClassBPingSlotDr()
{
return $this->class_b_ping_slot_dr;
}
/**
* Class-B ping-slot DR.
*
* Generated from protobuf field <code>uint32 class_b_ping_slot_dr = 9;</code>
* @param int $var
* @return $this
*/
public function setClassBPingSlotDr($var)
{
GPBUtil::checkUint32($var);
$this->class_b_ping_slot_dr = $var;
return $this;
}
/**
* Class-B ping-slot frequency.
*
* Generated from protobuf field <code>uint32 class_b_ping_slot_frequency = 10;</code>
* @return int
*/
public function getClassBPingSlotFrequency()
{
return $this->class_b_ping_slot_frequency;
}
/**
* Class-B ping-slot frequency.
*
* Generated from protobuf field <code>uint32 class_b_ping_slot_frequency = 10;</code>
* @param int $var
* @return $this
*/
public function setClassBPingSlotFrequency($var)
{
GPBUtil::checkUint32($var);
$this->class_b_ping_slot_frequency = $var;
return $this;
}
/**
* Region description.
*
* Generated from protobuf field <code>string description = 11;</code>
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Region description.
*
* Generated from protobuf field <code>string description = 11;</code>
* @param string $var
* @return $this
*/
public function setDescription($var)
{
GPBUtil::checkString($var, True);
$this->description = $var;
return $this;
}
}