proto.api.CarModelAddReq
*/
class CarModelAddReq extends \Google\Protobuf\Internal\Message
{
/**
* 数据
*
* Generated from protobuf field .proto.api.CityPackageCarModelEnt data = 1;
*/
protected $data = null;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Proto\Api\CityPackageCarModelEnt $data
* 数据
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Api\CityPackage::initOnce();
parent::__construct($data);
}
/**
* 数据
*
* Generated from protobuf field .proto.api.CityPackageCarModelEnt data = 1;
* @return \Proto\Api\CityPackageCarModelEnt|null
*/
public function getData()
{
return $this->data;
}
public function hasData()
{
return isset($this->data);
}
public function clearData()
{
unset($this->data);
}
/**
* 数据
*
* Generated from protobuf field .proto.api.CityPackageCarModelEnt data = 1;
* @param \Proto\Api\CityPackageCarModelEnt $var
* @return $this
*/
public function setData($var)
{
GPBUtil::checkMessage($var, \Proto\Api\CityPackageCarModelEnt::class);
$this->data = $var;
return $this;
}
}