api.ListRelaysResponse */ class ListRelaysResponse extends \Google\Protobuf\Internal\Message { /** * Total number of relays. * * Generated from protobuf field uint32 total_count = 1; */ protected $total_count = 0; /** * Result-set. * * Generated from protobuf field repeated .api.RelayListItem result = 2; */ private $result; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int $total_count * Total number of relays. * @type array<\Chirpstack\Api\RelayListItem>|\Google\Protobuf\Internal\RepeatedField $result * Result-set. * } */ public function __construct($data = NULL) { \GPBMetadata\Chirpstack\Api\Relay::initOnce(); parent::__construct($data); } /** * Total number of relays. * * Generated from protobuf field uint32 total_count = 1; * @return int */ public function getTotalCount() { return $this->total_count; } /** * Total number of relays. * * Generated from protobuf field uint32 total_count = 1; * @param int $var * @return $this */ public function setTotalCount($var) { GPBUtil::checkUint32($var); $this->total_count = $var; return $this; } /** * Result-set. * * Generated from protobuf field repeated .api.RelayListItem result = 2; * @return \Google\Protobuf\Internal\RepeatedField */ public function getResult() { return $this->result; } /** * Result-set. * * Generated from protobuf field repeated .api.RelayListItem result = 2; * @param array<\Chirpstack\Api\RelayListItem>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setResult($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Chirpstack\Api\RelayListItem::class); $this->result = $arr; return $this; } }