proto.api.CityPackageAddRes */ class CityPackageAddRes extends \Google\Protobuf\Internal\Message { /** * 失败的数量 * * Generated from protobuf field int32 fail_count = 1; */ protected $fail_count = 0; /** * 成功的数量 * * Generated from protobuf field int32 success_count = 2; */ protected $success_count = 0; /** * 总请求添加数量 * * Generated from protobuf field int32 total_count = 3; */ protected $total_count = 0; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int $fail_count * 失败的数量 * @type int $success_count * 成功的数量 * @type int $total_count * 总请求添加数量 * } */ public function __construct($data = NULL) { \GPBMetadata\Api\CityPackage::initOnce(); parent::__construct($data); } /** * 失败的数量 * * Generated from protobuf field int32 fail_count = 1; * @return int */ public function getFailCount() { return $this->fail_count; } /** * 失败的数量 * * Generated from protobuf field int32 fail_count = 1; * @param int $var * @return $this */ public function setFailCount($var) { GPBUtil::checkInt32($var); $this->fail_count = $var; return $this; } /** * 成功的数量 * * Generated from protobuf field int32 success_count = 2; * @return int */ public function getSuccessCount() { return $this->success_count; } /** * 成功的数量 * * Generated from protobuf field int32 success_count = 2; * @param int $var * @return $this */ public function setSuccessCount($var) { GPBUtil::checkInt32($var); $this->success_count = $var; return $this; } /** * 总请求添加数量 * * Generated from protobuf field int32 total_count = 3; * @return int */ public function getTotalCount() { return $this->total_count; } /** * 总请求添加数量 * * Generated from protobuf field int32 total_count = 3; * @param int $var * @return $this */ public function setTotalCount($var) { GPBUtil::checkInt32($var); $this->total_count = $var; return $this; } }