proto.api.OrderListRes */ class OrderListRes extends \Google\Protobuf\Internal\Message { /** * 条数 * * Generated from protobuf field int32 total = 1; */ protected $total = 0; /** * 订单数据数组 * * Generated from protobuf field repeated .proto.api.CityPackageOrderEnt list = 2; */ private $list; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int $total * 条数 * @type array<\Proto\Api\CityPackageOrderEnt>|\Google\Protobuf\Internal\RepeatedField $list * 订单数据数组 * } */ public function __construct($data = NULL) { \GPBMetadata\Api\CityPackage::initOnce(); parent::__construct($data); } /** * 条数 * * Generated from protobuf field int32 total = 1; * @return int */ public function getTotal() { return $this->total; } /** * 条数 * * Generated from protobuf field int32 total = 1; * @param int $var * @return $this */ public function setTotal($var) { GPBUtil::checkInt32($var); $this->total = $var; return $this; } /** * 订单数据数组 * * Generated from protobuf field repeated .proto.api.CityPackageOrderEnt list = 2; * @return \Google\Protobuf\Internal\RepeatedField */ public function getList() { return $this->list; } /** * 订单数据数组 * * Generated from protobuf field repeated .proto.api.CityPackageOrderEnt list = 2; * @param array<\Proto\Api\CityPackageOrderEnt>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setList($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Proto\Api\CityPackageOrderEnt::class); $this->list = $arr; return $this; } }