proto.api.EntContract */ class EntContract extends \Google\Protobuf\Internal\Message { /** * 合同ID * * Generated from protobuf field int32 contract_id = 1; */ protected $contract_id = 0; /** * 门店ID * * Generated from protobuf field int32 shop_id = 2; */ protected $shop_id = 0; /** * 合同标题 * * Generated from protobuf field string contract_title = 3; */ protected $contract_title = ''; /** * 合同备注 * * Generated from protobuf field string contract_remark = 4; */ protected $contract_remark = ''; /** * 是否展示 * * Generated from protobuf field .proto.api.YES_NO is_show = 5; */ protected $is_show = 0; /** * 合同创建时间 * * Generated from protobuf field int64 create_time = 6; */ protected $create_time = 0; /** * 还否删除 * * Generated from protobuf field .proto.api.YES_NO is_delete = 7; */ protected $is_delete = 0; /** * 合同类型 * * Generated from protobuf field .proto.api.CONTRACT_TYPE contract_type = 8; */ protected $contract_type = 0; /** * 合同详情 * * Generated from protobuf field .proto.api.ContractDetail contract_detail = 9; */ protected $contract_detail = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int $contract_id * 合同ID * @type int $shop_id * 门店ID * @type string $contract_title * 合同标题 * @type string $contract_remark * 合同备注 * @type int $is_show * 是否展示 * @type int|string $create_time * 合同创建时间 * @type int $is_delete * 还否删除 * @type int $contract_type * 合同类型 * @type \Proto\Api\ContractDetail $contract_detail * 合同详情 * } */ public function __construct($data = NULL) { \GPBMetadata\Api\EntContract::initOnce(); parent::__construct($data); } /** * 合同ID * * Generated from protobuf field int32 contract_id = 1; * @return int */ public function getContractId() { return $this->contract_id; } /** * 合同ID * * Generated from protobuf field int32 contract_id = 1; * @param int $var * @return $this */ public function setContractId($var) { GPBUtil::checkInt32($var); $this->contract_id = $var; return $this; } /** * 门店ID * * Generated from protobuf field int32 shop_id = 2; * @return int */ public function getShopId() { return $this->shop_id; } /** * 门店ID * * Generated from protobuf field int32 shop_id = 2; * @param int $var * @return $this */ public function setShopId($var) { GPBUtil::checkInt32($var); $this->shop_id = $var; return $this; } /** * 合同标题 * * Generated from protobuf field string contract_title = 3; * @return string */ public function getContractTitle() { return $this->contract_title; } /** * 合同标题 * * Generated from protobuf field string contract_title = 3; * @param string $var * @return $this */ public function setContractTitle($var) { GPBUtil::checkString($var, True); $this->contract_title = $var; return $this; } /** * 合同备注 * * Generated from protobuf field string contract_remark = 4; * @return string */ public function getContractRemark() { return $this->contract_remark; } /** * 合同备注 * * Generated from protobuf field string contract_remark = 4; * @param string $var * @return $this */ public function setContractRemark($var) { GPBUtil::checkString($var, True); $this->contract_remark = $var; return $this; } /** * 是否展示 * * Generated from protobuf field .proto.api.YES_NO is_show = 5; * @return int */ public function getIsShow() { return $this->is_show; } /** * 是否展示 * * Generated from protobuf field .proto.api.YES_NO is_show = 5; * @param int $var * @return $this */ public function setIsShow($var) { GPBUtil::checkEnum($var, \Proto\Api\YES_NO::class); $this->is_show = $var; return $this; } /** * 合同创建时间 * * Generated from protobuf field int64 create_time = 6; * @return int|string */ public function getCreateTime() { return $this->create_time; } /** * 合同创建时间 * * Generated from protobuf field int64 create_time = 6; * @param int|string $var * @return $this */ public function setCreateTime($var) { GPBUtil::checkInt64($var); $this->create_time = $var; return $this; } /** * 还否删除 * * Generated from protobuf field .proto.api.YES_NO is_delete = 7; * @return int */ public function getIsDelete() { return $this->is_delete; } /** * 还否删除 * * Generated from protobuf field .proto.api.YES_NO is_delete = 7; * @param int $var * @return $this */ public function setIsDelete($var) { GPBUtil::checkEnum($var, \Proto\Api\YES_NO::class); $this->is_delete = $var; return $this; } /** * 合同类型 * * Generated from protobuf field .proto.api.CONTRACT_TYPE contract_type = 8; * @return int */ public function getContractType() { return $this->contract_type; } /** * 合同类型 * * Generated from protobuf field .proto.api.CONTRACT_TYPE contract_type = 8; * @param int $var * @return $this */ public function setContractType($var) { GPBUtil::checkEnum($var, \Proto\Api\CONTRACT_TYPE::class); $this->contract_type = $var; return $this; } /** * 合同详情 * * Generated from protobuf field .proto.api.ContractDetail contract_detail = 9; * @return \Proto\Api\ContractDetail|null */ public function getContractDetail() { return $this->contract_detail; } public function hasContractDetail() { return isset($this->contract_detail); } public function clearContractDetail() { unset($this->contract_detail); } /** * 合同详情 * * Generated from protobuf field .proto.api.ContractDetail contract_detail = 9; * @param \Proto\Api\ContractDetail $var * @return $this */ public function setContractDetail($var) { GPBUtil::checkMessage($var, \Proto\Api\ContractDetail::class); $this->contract_detail = $var; return $this; } }