proto.api.EntOrder
*/
class EntOrder extends \Google\Protobuf\Internal\Message
{
/**
* 订单编号
*
* Generated from protobuf field string order_sn = 1;
*/
protected $order_sn = '';
/**
* 订单ID
*
* Generated from protobuf field int32 order_id = 2;
*/
protected $order_id = 0;
/**
* 用户信息
*
* Generated from protobuf field .proto.api.EntUser user_info = 3;
*/
protected $user_info = null;
/**
* 门店信息
*
* Generated from protobuf field .proto.api.EntAdmin shop_info = 4;
*/
protected $shop_info = null;
/**
* 订单时间
*
* Generated from protobuf field .proto.api.OrderTime order_time = 5;
*/
protected $order_time = null;
/**
* 支付方式
*
* Generated from protobuf field .proto.api.PAY_METHOD pay_method = 6;
*/
protected $pay_method = 0;
/**
* 订单来源
*
* Generated from protobuf field .proto.api.REQUEST_SOURCE order_source = 7;
*/
protected $order_source = 0;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $order_sn
* 订单编号
* @type int $order_id
* 订单ID
* @type \Proto\Api\EntUser $user_info
* 用户信息
* @type \Proto\Api\EntAdmin $shop_info
* 门店信息
* @type \Proto\Api\OrderTime $order_time
* 订单时间
* @type int $pay_method
* 支付方式
* @type int $order_source
* 订单来源
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Api\EntOrder::initOnce();
parent::__construct($data);
}
/**
* 订单编号
*
* Generated from protobuf field string order_sn = 1;
* @return string
*/
public function getOrderSn()
{
return $this->order_sn;
}
/**
* 订单编号
*
* Generated from protobuf field string order_sn = 1;
* @param string $var
* @return $this
*/
public function setOrderSn($var)
{
GPBUtil::checkString($var, True);
$this->order_sn = $var;
return $this;
}
/**
* 订单ID
*
* Generated from protobuf field int32 order_id = 2;
* @return int
*/
public function getOrderId()
{
return $this->order_id;
}
/**
* 订单ID
*
* Generated from protobuf field int32 order_id = 2;
* @param int $var
* @return $this
*/
public function setOrderId($var)
{
GPBUtil::checkInt32($var);
$this->order_id = $var;
return $this;
}
/**
* 用户信息
*
* Generated from protobuf field .proto.api.EntUser user_info = 3;
* @return \Proto\Api\EntUser|null
*/
public function getUserInfo()
{
return $this->user_info;
}
public function hasUserInfo()
{
return isset($this->user_info);
}
public function clearUserInfo()
{
unset($this->user_info);
}
/**
* 用户信息
*
* Generated from protobuf field .proto.api.EntUser user_info = 3;
* @param \Proto\Api\EntUser $var
* @return $this
*/
public function setUserInfo($var)
{
GPBUtil::checkMessage($var, \Proto\Api\EntUser::class);
$this->user_info = $var;
return $this;
}
/**
* 门店信息
*
* Generated from protobuf field .proto.api.EntAdmin shop_info = 4;
* @return \Proto\Api\EntAdmin|null
*/
public function getShopInfo()
{
return $this->shop_info;
}
public function hasShopInfo()
{
return isset($this->shop_info);
}
public function clearShopInfo()
{
unset($this->shop_info);
}
/**
* 门店信息
*
* Generated from protobuf field .proto.api.EntAdmin shop_info = 4;
* @param \Proto\Api\EntAdmin $var
* @return $this
*/
public function setShopInfo($var)
{
GPBUtil::checkMessage($var, \Proto\Api\EntAdmin::class);
$this->shop_info = $var;
return $this;
}
/**
* 订单时间
*
* Generated from protobuf field .proto.api.OrderTime order_time = 5;
* @return \Proto\Api\OrderTime|null
*/
public function getOrderTime()
{
return $this->order_time;
}
public function hasOrderTime()
{
return isset($this->order_time);
}
public function clearOrderTime()
{
unset($this->order_time);
}
/**
* 订单时间
*
* Generated from protobuf field .proto.api.OrderTime order_time = 5;
* @param \Proto\Api\OrderTime $var
* @return $this
*/
public function setOrderTime($var)
{
GPBUtil::checkMessage($var, \Proto\Api\OrderTime::class);
$this->order_time = $var;
return $this;
}
/**
* 支付方式
*
* Generated from protobuf field .proto.api.PAY_METHOD pay_method = 6;
* @return int
*/
public function getPayMethod()
{
return $this->pay_method;
}
/**
* 支付方式
*
* Generated from protobuf field .proto.api.PAY_METHOD pay_method = 6;
* @param int $var
* @return $this
*/
public function setPayMethod($var)
{
GPBUtil::checkEnum($var, \Proto\Api\PAY_METHOD::class);
$this->pay_method = $var;
return $this;
}
/**
* 订单来源
*
* Generated from protobuf field .proto.api.REQUEST_SOURCE order_source = 7;
* @return int
*/
public function getOrderSource()
{
return $this->order_source;
}
/**
* 订单来源
*
* Generated from protobuf field .proto.api.REQUEST_SOURCE order_source = 7;
* @param int $var
* @return $this
*/
public function setOrderSource($var)
{
GPBUtil::checkEnum($var, \Proto\Api\REQUEST_SOURCE::class);
$this->order_source = $var;
return $this;
}
}