common_pack.ResLudoRoomInfo */ class ResLudoRoomInfo extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field bool success = 1; */ protected $success = false; /** * Generated from protobuf field .common_pack.MsgError err_msg = 2; */ protected $err_msg = null; /** * Generated from protobuf field .common_pack.RoomInfo info = 3; */ protected $info = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type bool $success * @type \Common_pack\MsgError $err_msg * @type \Common_pack\RoomInfo $info * } */ public function __construct($data = NULL) { \GPBMetadata\Common::initOnce(); parent::__construct($data); } /** * Generated from protobuf field bool success = 1; * @return bool */ public function getSuccess() { return $this->success; } /** * Generated from protobuf field bool success = 1; * @param bool $var * @return $this */ public function setSuccess($var) { GPBUtil::checkBool($var); $this->success = $var; return $this; } /** * Generated from protobuf field .common_pack.MsgError err_msg = 2; * @return \Common_pack\MsgError|null */ public function getErrMsg() { return $this->err_msg; } public function hasErrMsg() { return isset($this->err_msg); } public function clearErrMsg() { unset($this->err_msg); } /** * Generated from protobuf field .common_pack.MsgError err_msg = 2; * @param \Common_pack\MsgError $var * @return $this */ public function setErrMsg($var) { GPBUtil::checkMessage($var, \Common_pack\MsgError::class); $this->err_msg = $var; return $this; } /** * Generated from protobuf field .common_pack.RoomInfo info = 3; * @return \Common_pack\RoomInfo|null */ public function getInfo() { return $this->info; } public function hasInfo() { return isset($this->info); } public function clearInfo() { unset($this->info); } /** * Generated from protobuf field .common_pack.RoomInfo info = 3; * @param \Common_pack\RoomInfo $var * @return $this */ public function setInfo($var) { GPBUtil::checkMessage($var, \Common_pack\RoomInfo::class); $this->info = $var; return $this; } }