api.RegionListItem */ class RegionListItem 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; /** * Description. * * Generated from protobuf field string description = 3; */ protected $description = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $id * ID. * @type int $region * Region. * @type string $description * 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; } /** * 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; } }