api.GetRegionResponse */ class GetRegionResponse extends \Google\Protobuf\Internal\Message { /** * ID. * * Generated from protobuf field string id = 1; */ protected $id = ''; /** * Region. * * Generated from protobuf field .common.Region region = 2; */ protected $region = 0; /** * User information. * * Generated from protobuf field string user_info = 3; */ protected $user_info = ''; /** * Uplink channels. * * Generated from protobuf field repeated .api.RegionChannel uplink_channels = 4; */ private $uplink_channels; /** * RX1 delay. * * Generated from protobuf field uint32 rx1_delay = 5; */ protected $rx1_delay = 0; /** * RX1 data-rate offset. * * Generated from protobuf field uint32 rx1_dr_offset = 6; */ protected $rx1_dr_offset = 0; /** * RX2 DR. * * Generated from protobuf field uint32 rx2_dr = 7; */ protected $rx2_dr = 0; /** * RX2 frequency. * * Generated from protobuf field uint32 rx2_frequency = 8; */ protected $rx2_frequency = 0; /** * Class-B ping-slot DR. * * Generated from protobuf field uint32 class_b_ping_slot_dr = 9; */ protected $class_b_ping_slot_dr = 0; /** * Class-B ping-slot frequency. * * Generated from protobuf field uint32 class_b_ping_slot_frequency = 10; */ protected $class_b_ping_slot_frequency = 0; /** * Region description. * * Generated from protobuf field string description = 11; */ 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 string id = 1; * @return string */ public function getId() { return $this->id; } /** * ID. * * Generated from protobuf field string id = 1; * @param string $var * @return $this */ public function setId($var) { GPBUtil::checkString($var, True); $this->id = $var; return $this; } /** * Region. * * Generated from protobuf field .common.Region region = 2; * @return int */ public function getRegion() { return $this->region; } /** * Region. * * Generated from protobuf field .common.Region region = 2; * @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 string user_info = 3; * @return string */ public function getUserInfo() { return $this->user_info; } /** * User information. * * Generated from protobuf field string user_info = 3; * @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 repeated .api.RegionChannel uplink_channels = 4; * @return \Google\Protobuf\Internal\RepeatedField */ public function getUplinkChannels() { return $this->uplink_channels; } /** * Uplink channels. * * Generated from protobuf field repeated .api.RegionChannel uplink_channels = 4; * @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 uint32 rx1_delay = 5; * @return int */ public function getRx1Delay() { return $this->rx1_delay; } /** * RX1 delay. * * Generated from protobuf field uint32 rx1_delay = 5; * @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 uint32 rx1_dr_offset = 6; * @return int */ public function getRx1DrOffset() { return $this->rx1_dr_offset; } /** * RX1 data-rate offset. * * Generated from protobuf field uint32 rx1_dr_offset = 6; * @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 uint32 rx2_dr = 7; * @return int */ public function getRx2Dr() { return $this->rx2_dr; } /** * RX2 DR. * * Generated from protobuf field uint32 rx2_dr = 7; * @param int $var * @return $this */ public function setRx2Dr($var) { GPBUtil::checkUint32($var); $this->rx2_dr = $var; return $this; } /** * RX2 frequency. * * Generated from protobuf field uint32 rx2_frequency = 8; * @return int */ public function getRx2Frequency() { return $this->rx2_frequency; } /** * RX2 frequency. * * Generated from protobuf field uint32 rx2_frequency = 8; * @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 uint32 class_b_ping_slot_dr = 9; * @return int */ public function getClassBPingSlotDr() { return $this->class_b_ping_slot_dr; } /** * Class-B ping-slot DR. * * Generated from protobuf field uint32 class_b_ping_slot_dr = 9; * @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 uint32 class_b_ping_slot_frequency = 10; * @return int */ public function getClassBPingSlotFrequency() { return $this->class_b_ping_slot_frequency; } /** * Class-B ping-slot frequency. * * Generated from protobuf field uint32 class_b_ping_slot_frequency = 10; * @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 string description = 11; * @return string */ public function getDescription() { return $this->description; } /** * Region description. * * Generated from protobuf field string description = 11; * @param string $var * @return $this */ public function setDescription($var) { GPBUtil::checkString($var, True); $this->description = $var; return $this; } }