From e269a68bccae0384ade78118bfb87f63194707c1 Mon Sep 17 00:00:00 2001 From: gaojie Date: Fri, 4 Jan 2019 14:15:46 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E9=9A=90=E8=97=8F?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gradle/4.8/fileChanges/last-build.bin | Bin 1 -> 0 bytes .../4.8/fileContent/annotation-processors.bin | Bin 19683 -> 0 bytes .gradle/4.8/fileContent/fileContent.lock | Bin 17 -> 0 bytes .gradle/4.8/fileHashes/fileHashes.bin | Bin 26547 -> 0 bytes .gradle/4.8/fileHashes/fileHashes.lock | Bin 17 -> 0 bytes .../4.8/fileHashes/resourceHashesCache.bin | Bin 22067 -> 0 bytes .gradle/4.8/taskHistory/taskHistory.bin | Bin 54820 -> 0 bytes .gradle/4.8/taskHistory/taskHistory.lock | Bin 17 -> 0 bytes .../buildOutputCleanup.lock | Bin 17 -> 0 bytes .gradle/buildOutputCleanup/cache.properties | 2 - .gradle/buildOutputCleanup/outputFiles.bin | Bin 19019 -> 0 bytes .gradle/vcsWorkingDirs/gc.properties | 0 .idea/compiler.xml | 9 - .idea/gradle.xml | 21 - .idea/misc.xml | 7 - .idea/uiDesigner.xml | 124 - .idea/vcs.xml | 6 - .idea/workspace.xml | 2272 ----------------- 18 files changed, 2441 deletions(-) delete mode 100644 .gradle/4.8/fileChanges/last-build.bin delete mode 100644 .gradle/4.8/fileContent/annotation-processors.bin delete mode 100644 .gradle/4.8/fileContent/fileContent.lock delete mode 100644 .gradle/4.8/fileHashes/fileHashes.bin delete mode 100644 .gradle/4.8/fileHashes/fileHashes.lock delete mode 100644 .gradle/4.8/fileHashes/resourceHashesCache.bin delete mode 100644 .gradle/4.8/taskHistory/taskHistory.bin delete mode 100644 .gradle/4.8/taskHistory/taskHistory.lock delete mode 100644 .gradle/buildOutputCleanup/buildOutputCleanup.lock delete mode 100644 .gradle/buildOutputCleanup/cache.properties delete mode 100644 .gradle/buildOutputCleanup/outputFiles.bin delete mode 100644 .gradle/vcsWorkingDirs/gc.properties delete mode 100644 .idea/compiler.xml delete mode 100644 .idea/gradle.xml delete mode 100644 .idea/misc.xml delete mode 100644 .idea/uiDesigner.xml delete mode 100644 .idea/vcs.xml delete mode 100644 .idea/workspace.xml diff --git a/.gradle/4.8/fileChanges/last-build.bin b/.gradle/4.8/fileChanges/last-build.bin deleted file mode 100644 index f76dd238ade08917e6712764a16a22005a50573d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1 IcmZPo000310RR91 diff --git a/.gradle/4.8/fileContent/annotation-processors.bin b/.gradle/4.8/fileContent/annotation-processors.bin deleted file mode 100644 index b52ccf7b3bd608fa16e2c287317fce867aed8abb..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 19683 zcmeI(`%hD69LMp4ckoghrXfZRLA>C!3W%HFNMO3Qrw0Q#F;wD4YAIE0ky3BqHeo*) zGZiYj2?}!6EhcKz3W^Ug(}!#jYz*A>=_qRd*JU;B6HQRzcgn%+;TfAGvRxXy_|- z@i}M7kJ%NQ z3sxTE>-UiV*;~*W^0Ts=xmZR1P(7_kc4OpYzP`riVv8j`yz3G74)RwGkHb=$TqZte z7x}<;r@3rry`H(cj(pImJH2pyU@&vlAo=h~OKTnW7c{?te1z-Mu<5ec=X}ls@{ew6 z=XDQh4Pq{CCZ90+XuW)F`*ObiJo%*LAB7_8u5sKAPsJ- zqVu7hJmgSx#f}qc>)3kDb@FM|{@=8IK9IycihOSHow(VFUHSZV-}wBK!UN+SyZL#p z=_ZemzjlYr46kA9#bx9%wT<&HH(hLEF3HK`7o1%E+qd#teElMFW%=RC<-JwUn5(|? z`59ZQ>UK{mU;mOkVMWzXc~@7L@bxJ^zvrHuFgS0Jx#lbKr1G+WE6&Jf?xV?*&kIY- zQv*ELxpz~~BLC7T@9)T8Rm5EN7kQddskN<_E-_bMCI9;N52dm30Rzl6{p6;gk}rB? z)s1}4K610Nf4bj{NdCP`iR2qn?m9B-kMi$Pn&I;^LZR)(_aE~)zmRW=uy@A(VY|s( z4E1^LmL5Y!yNtP{C(o-?+B*w+jx*Qf`rOgD%~)Y}Ggl{*)1x2^_h-j&j{+!w0w{n2 zD1ZVefC4Ch0w{n2D1ZVefC4Ch0w{n2D1ZVefC4Ch0w{n2D1ZVefC4Ch0w{n2D1ZVe zfCBGVfk@BW_5LYf7{7Vny&Q-j-V?&R;bibc_}|sx{d-LUzxiGAGv^o->DlSJOuZt@ zY%my22Jhp7wF;d%NAI~aWf%>L>@2J2h((c|W7g>{7ITgw@n1=#=R-XMwYc{Fllvdk CnCWo< diff --git a/.gradle/4.8/fileContent/fileContent.lock b/.gradle/4.8/fileContent/fileContent.lock deleted file mode 100644 index cf9a5e0d1505418cac0582ac97552aae93e48f2c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 17 UcmZQRq#5GjGf8YA0|b}@04JRTR{#J2 diff --git a/.gradle/4.8/fileHashes/fileHashes.bin b/.gradle/4.8/fileHashes/fileHashes.bin deleted file mode 100644 index 99e499d4b917d19e32cfaf079283d3387f2a1a0d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 26547 zcmeI4c{o+u-@wl?WS%9WNrps*5~VVf%=0|YQ$iu4WJp9MN}7-%lqp3eQba115KS6H zs#_?cG>~`iz4kiyea|_+_i_GvpZD48dG5*mSfBM>>$}%pYwhknSC>Q*<)6U|>EAN< z-yeyehzt-JATmH?fXD!m0U`rL28aw086Yx1WPr#3kpUtDL;~IdwSwntA^1|7D+nqiEZXyTyQPwY=ClzFO0B&jvc~+t1 z(3`ReqG_Zy<{x&m<95y*3=b&i)F zGn@ms(KO_F+LaZ*I(`}fZkPvoeg{hgIX8D6;AS>Ql~16u#Jd=+TvZ`1SIp#I2~fq5di5%Xd)U zn;F)>&|%;*CX=TFxQ#sI7eBb};jdL+1-Q!!$gBHeA8l_583f!y0P-sx?#mkg+_?g{ zu_xqL7rwcBL*Yq3;I20yubuk+K=#7aM!@YBL0(_?;F4xA|6#yw#v#Aarue!0mb5J3 zzRr-}8dIGUE$EKt&0#a-&Bu-055>Rc1@%2%L*8OksiWNR^8(K2LViz2@m_%ddj;VB z=8(7j%@!Mu*j5R+^)JXDF!w!5_gsX}H|JFp{-XH74RLmLP~ZI>p4znKLp(9 z6ovZ~Z@ViW_ziHITNGZO{Q1U;7`z>$2atDs=*w6=COrx2n=OF6GwH*^l!%>o0CznI z`QthJ4&P&1upMw8CCGc&i*;Xj7Iy+}phMwuk5aWfL-4q6pCErCwWLbcSX>a)_ou{t zsyLpTck%5n!0q?I`p+j5&(DPa=mp&39OSPR*FG)yyJMtJXYDcEj5lg6({$D|ye!bLKtZZc88^ zx^g|A6fcIaGtMUwo#P3HRPsm9-)+JdDJ0Ae`eKH{@ zuWu?DvygBA+&vC*ri{0dzdgCw0e94*@W!V5SIB|*x@1gghuL_JWvzD>9@meOe`X)I z&g`G&PeD5-jj$cImG*sGOT!ufx4ll`p|Rc^7rK=Iw`!;G^Bh9Xf?9=mJCysE!}zPx zD{l>3D%sd{W)v`QS{W|X{f_txmNq#O|f+^-I{!)v#K z{OLgdG~kXrkn?%_aK;_(3OARKamE0-gkk41HKjs|a4d;I?_< zdj#rRWkbHOMNcg(R8ItO$0v|WO2|H29sJ7)aPQR=ez``ZHv9WNz@2?5yk-37X5OFI z0C&Fxxm4JS)_I%4@P0amLN4vmDR3xl0>8c%n<%`esFI82bQNgFgpwbbd~N-DdCNC| zJD!F0mq!-!S!;^20`9aGa{1Z_4Q3UR8sN@tkSiz(c;C^niUHgT;+YlYzWW{Tf6&A0 z|AD_yZhO0$+?8XDb25d0)vM;3jxz_`X)WX{Z)&Wz>fpl9Eryiyk7`tJ(z3Xv$3T6b zNmzf)_4Gvtdb8#NZeInt#`8w4P~L3(e)N0>`MMc@qo75t3qXBqZ^+k=2uBV|T}uYs zbU)-emuzbuJluj`7c0+!1omjZ&qPx{vYu!t6bTXVza_KfOc@ z^v9qWa&NA`CgElL_W(CHgxp6$GdY!Wc{kubtrQ;C+;;Q?e=FcttdRR!KTxmUJDMm)R%)Zk+}BuDLreb!;hy_gy#SyZK6XafCg=&xc-J zkjL=sS@zGs)E3Z=Z7SrkE$ZK8STm#m_tc^ARu1bWDe3riG^SklxQ<&v9OokN{n3!p zeq48oXwRtbPtcCl7T6B_6M0sa1HU6ai3|`KATmH?fXD!m0U`rL28aw086Yx1WPr#3 zkpUtDLTGl0GXjlS%#1pSA< zShRK|K8G_kcX!c*WaxPh5{c|zoSU{2`6W`w(#VJ6|1=WCZNfCfg#y~1Wr%GadHEJI z3Zn3LpGoLDh*ZX1x9ohLV?MhM<-WL=VkCTABk;cy~%Q=8?tPzbsBK4#pA5<}Jlt1Me z`95>8AkMYp_z}HxxRH<6M+*9`5tSkTv%}uy&2fdgZM>5C0;*)(z~43$zDR3u8+Ud+ z**9z;u|7G?esKIgJ`Vgn9iGjzH1fXVZ`9E>&HMPW$4sgav(1Y&J0p7S&)O z=*C$4d#nE>slV0DJESZ~y37fUQQw_<0~k!`J3zCF5rxkydgC}hcqX)^B8P)Zc=3U< zusY;6K*q7=u^EU#PMBSc68V;BV9<*}FT3@NHzM;3E%c1-51Mr~SLm~g8}Q!H_~F`z z^~%ve85kr(HxV_A96+zg$n~M_72T2F{qn!eE4oIz z0{*@oyA-#VRrj3GvQ)uD^O;W+CU9VTH6j-xZikwK$-n+v1H z5k|++ed;=+F$(Z+UCcUH-QUhL8sj(q2KB6C^hh$A-5%3J4ECz0%9%lKNO$#~aBD=HR z<+Y$!`DpK`j6Nrs;GnOuvB_yis;3Q^CP56oLd=*SfWA{sWpHS%QP7K$yB>PlBfH&g z>waJeA*XSqurEdTbt;2L|LvJMwHNp1jM6~P)MaS%ICMVSI zC#f|jr|WM3#)Z2ehLR#}j8ElL4>sMfG2fa0Lb0u?@)=_I*AGOaPZ3CwM9+&BxD&&fxSMU=4jSimEv_?RQUF*R~mEl@dyIYk<=j35A2AR;a8&bH? zrwXbVd{ds%7AMc=R-T_@SuN7=2RD$Mp@kidMP)1soHls)En$2@v0H3WO)GL9LC4{| z3lm5@bh7L5Dy%>tl$*!?1+QR!*ZdyTXf;q@2Mi86&uW<~X1uM_Q1Z<%d~5NH=ejmF_={F?`)Qd-0B`GMl&Yu-KkBJPry zGL(y)Z?PCjAO_iv*2w+MAGksOL`{arx}Ue}q>NFcL@sCu7$iC~aq}yOzIkaGlR+vC zy>o)uEr1csg&W8nMm=&55vR7J?ew@(;AD5 z-w8Wb)^49LxS9TRv33z|7$G&0!ds4fQ1$B7xoj8J8m|v~SVwp1KRD`(8~B>Yr%Y=k z6mR8g7F?lGXOL#e$0Lla1lTyXpb?P&n*zH2QpE_Hcr&ILIXrq$^q}az*Get85rPRM z5p)%zGETp0%Qoc>d-+GrXUP^BBcx3%#vWjB(z$D=dNUNgR37gY8_YQr6xDeVH}F%2 za4Kz##d8;u6}(O@)r(h2JRJPS5;yQC7A89D)vdKM_GZ%8OdS6#eZDEijt4i^gIhFX`r$?>9s|8D zR0f|^rdWJZq+Ipk%~LnGFGTu}$4d%n-k?^XZtob#emcC}}wm|^yI1~W)Z$Q7j?$IENvmZdtc zg3`oK3M7hgih*%_+l?8_{*P&m!uirce;rnNS_RJEVODw>+)-u&`#=mg^vQ)PSDD5l z_g~!kO$v$j^KFANo(T_iQ2~5x$ z_K!QyIpzBnUi!U+)mA}X3p1=)g3t&gmXM{i#!h~B`BQr?<_(6byqYsw2ksB6>qsoL z=_F7UafzLKRdb)G zEET%PCUmfA8pJ5d#tha1V_Kv4%7|dxd)u#fD&Ch3ct0cqqpuM&IJFvR4Vh_&kXzBhuwGgH#aFmUXIkU)%EJv$Tn9%jdj(UsM@ZXZhRtt2ECy3LvJO+vk~-f2y?=(1 zd*{hEbcgtq$Y6%Wn&+4y>Val}Y9_YV#*vH{ssu@lMG1Wzx3sy=vGNe?t%$a~&{) z{A7yOX!SYBGU_{QWS`O&pS|{10A|>?p*2Y)6`xvKBa->~6~9>1G-W-tRGtgtNWYPB z*vbuH2B|cQ))?#x*ZvX98}{qG#M-_7dzS-aO)M~8psOj>ILvl5{@AH7?kX!k>Km-h zi9Qb^F|_M}q3=&?G|#gw$#g59&TrySV!ax-7#O?tFoT6HhSpdo^S*!8(W4ft_KFw~uF76{79T@D$enQ9(qOuTNGX=v5CopOC^u zXOE)yH}tKpr_r4TDfIsKgRT+98^@rryANOCW*sBWvkz l-3%HxIkFiv8rA9;G@4pD88m*(peGol%sRW%!H534@n6IR%oP9t diff --git a/.gradle/4.8/fileHashes/fileHashes.lock b/.gradle/4.8/fileHashes/fileHashes.lock deleted file mode 100644 index 15a6bc31a3106cdfc73bce598d4d59e9607dafb2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 17 VcmZSn%=>0R#PM043}C=`5db?>1!MpK diff --git a/.gradle/4.8/fileHashes/resourceHashesCache.bin b/.gradle/4.8/fileHashes/resourceHashesCache.bin deleted file mode 100644 index 4a12f0ab0d2344b075a7f1cff2cf5d014cb11565..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 22067 zcmeI(doWb}9|v&B{jOD%q9PGO9uiUtS!>x{w-8a0k|YV0h?GkymZXa)M7iIKT(&48 z_ax-@xRit>O7v^zyI;@ze9b)n{QmmQ*_mbMhE|NVm1^9oQ#JaL`ZzysP57L9M3!Nw0M2b#F;e=SAZTYYND2@w6hpE zsSo-U6<7a+Jo8E5##!@Tb)rCsMR_Z5;uQ4j+0)P7x9;r&Ze#=fwzyAyOh};vaC{r| zyPmwy+nLjnf$LX6k2ScYQT5|PK5&vX^!xswENAeF+6*s;o>*kR%cyl<5OBjm=nq8( zS;L(@4g)7Q%zIZtxGwGTao`4PpeIZ4JQkZuYXMH6LVv7qNKN1=?Fn%GhtSi$s$H~7 z4t)jO>@f87j`2{|;DArS@iWjf5)T_#th`bS+_VdNL26Q}Z28}jj5(vwpS1WUhj-ri z44kqYda*{0mc>>l3&tF8=p}b6M!AxmM1T{Fp_k{K;yN0p%;?8V7y1jA3+p&4rUO9U zBoumuWuKx-vGZ-$CvK8_Phi32;=kDL+>Y+~_&<+JN7;LRYByFt$4kz3zeI zHEqJO4&Y`>px4hy{OGLHRt0X52)$uN#2M8hyF0)sXXpLpqxjizVMg94e%|{(R6eSy z;RbnP4)pi8`vjfJo+Jir(T`10n0~59tZuC zUr9~7;|_h`#1`nofjmrA(m{N{4PHVY-I08qSz`%f{ga*NeQe8xBDYKpkT-ULKGCbg zy*4I97C7D=`lK1LvcPnu1aKn_=->Sgg+53(ECX(`2l|x1pkmE=Z$03|aOg8!K^ptF zh%%0ssmi=>=*_5paB?%q8&5+2<)-VNNIv1tn4dQ99%cj82R*_WJ`SBJFYBl;zUDe` zBVXvu3T20s)Re9OHw%Wol<7t8tAzMBz)9QYU1~2;gz6{7n7;u!i}7B?ZL6gpFy^m> z&Kl>PnI*+s2%OLgosFkRF7Boyf#E-(vu8FsrFqxx25wA%&cShqQn+S2U?u~5=v?u* zmt}fR2f+`_YN7Mo3X#2hqw^+klRD`9I`@3j`a?s28|;9-oVs7U6z5wBoZtpsc%NPN(pA4CZd11>0w+&E-{h%I$yQr^8o2SbdG{526aSbO z9!Fv5vZVr1Eh?fMj6D0iS8?u$A6zpBoOBPmYEi{>)6H?ld7iux`qrc8Q+SBqb3mSu z2VFB-Xl>)~j%~mVw?o&pdDVJGqc|EkJ_@=XMaIk9neIK5?FF2&6}m&Hp>Wse-;8xd`hvUZ^HuW9;6sy`2kCG^Ai z32uSfVLWg%3Ft>J*GV1r+(`ed_2*%-6uJxRt_Dvb2OMzI+tA&=)?DPy8I1={@`3Jk zw*H#RtJwR%iL%ho428MSxWlZ0;|rj}?@UabjB_hUU|+EYum-ROum-ROum-ROum-RO zum-ROum-ROum-ROum-ROum-ROum-ROum-ROum-ROum-ROum-ROum-ROum-ROum-RO zum=AB8c_bTODq381?f)#X3yZGgk?%5na)=0_x=1C^9RNLJ7H-4B$GMaYqzRZprF3i zJ$W=iYbHfJPmL1Wu;Wy+tI*s4nqdC=u|Gw|wM6;{|LRxP4kKv7u2WZL-S_5qN?)oI z8rshIqlu=r7c7e6U$6HCh=1mlO{8DzxZs`UPY5OOp9nXdE3c>@j~x4fCM2)T6i%j? zUo-LxZc=oxa7Pnm-!>hoahVK##xJqnZ@mr$O$e5hOKt8o=Ph)IIxV8BWs4@V%Odyc zB#mw?xW%tuCi$cvO-#Jo(amN`7;PN6#2cYiyU4!$FA_iP__}lan^xV*BXb(^y<6ni zT5&8}+ITEjRx<~05j8qazwUNHr&Luf&p`vw7_ophSXrqZ!tV3F2M#FtH$?&PFC))f@fqDB(Y8FIwh%yWNz5*n3B zrnbIKpFEKk`hulz!*Mf_FMw z{*jbKNNs*{bWCKYRtF23;9iwt-yYkN!6g+{U`7Lx?E+$7_JIU4D+>9H}2tc z>|+;-=8jV%qlrU}lfJy=)9Fn?B9g7zjVfru4wqaNHW)`VV!FhYdpywvO>7I&xv)F8 z)w_7f`{d=7kp*bt$i`pB&P(3UO*R&_C*;K}@=l-X6x-(q{XKb0c%Az)ck&`fUvztr z-sja;qb8+|?y1(6p6FHt-*NRhny54qZFo0UzeY*1vd6oI{`k$ao6tnk!JQ5=cKSloIKHIc>Y|-!LRAwNank&44!f6D zzJqO09hx{*P2!Fwz1X!*CE|ELFGmuZplJ@hUZb>2zw)fak!4(;7Fi$f&l!JD+p@KG z4&Qd+*{_(V=nQQw(d#aLN)bNCW=_a^2Zy4GrX;@`UJu!BEWKxQF{beQGc@5YQ-7Xf zH>kh=F}o2J7d(O{D84c>LCH1E%)NnUwj9CJ?-X0mDOG;9-dXOGygq zNc5cIkI+gTq;(D7#(x$yK8YsSSXOqHctm*L-7*t%xb@czn&_XTM!RlWE?)iGjWQ+r z05S#R!{4uU071 zEPYXRAXgJjBt};*f11M6^+-=&uDI_w{jR|UN3KLkVKRVFE1g#?DrcKYi$D{S{3CV5 zl%SFKPh3C$PWh~dCOV14ww|OShxV}M)dK-Fm1sgBgmzJD@+0qClcc|xqnxtQL?SQF z!h(~(s$*qiE1R_@6;0fY5HlQJF@n>5RS~QIMTmZ9*n)kz`Fh$$UO+l>-*0MvhnJ)q znuyf9*zk2%-qN#qF1ypII+AGOeM7Sv&ye%buJqMs27hr4p$Uhs!~ttn=gNCqUfh4M zv|^DnuI%-1D<*j2^Ru2N3RZCEFY;;YWv08omATk4RSR~hVD1uMbSr85nS?@bM-bZl z4y8mm?^)#cZ4FtPW#2LN9Gx*A>dY6Da&(52&Fs55v2r&Xp&GdZ+b4dZ3G#{7J@NV4 zdTi{D<5@YcqtL|7J7=a?v(gDIf$YC5RiaW{&T#s8)$X{JNHlA#f%KHC<03QO_29|sJ(ss?UOg|dufUvsf7^ni XuRnII_7GQcnl@Wu9!ZA!nx6O%%rxh= diff --git a/.gradle/4.8/taskHistory/taskHistory.bin b/.gradle/4.8/taskHistory/taskHistory.bin deleted file mode 100644 index a36ca23baa641e23e26800889cc3c114da3ee887..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 54820 zcmeHQ349aP)^D1y2m&pjf+#!{6_lj2&jf*Ip)Ca|P|EVe;lV6-+O%m>lC-q02rdPb ztt_&G$|iyevMI7DC<@9Zi+~_LK}7^ageM^1nVFmo!Xr?>+Z_&zyVC zx#yfoh>B_wbH)E(RLOt0lzcQk83-5%7zh{$7zh{$7zh{$7zh{$7zh{$7zh{$7zh{$ z7zh{$7zh{$7zh{${I4L;2PRTSpG=cB(dvf=L!zRvo8d#vnmuBpPkgy3RsXthY2f^z z#gi)=?|m)(uztPU-GS?v)a+l;_2$jguP4U`u6NiteDKXf+w9b@rzQoiXIX@E_oeRo zR==LxB5*x#$EDPxuN3alulMx@t_S|Y^*Q=?#=C)lfq;R4fq;R4fq;R4fq;R4fq;R4 zfq;R4fq;R4fq;R4fq;R4fq;R4fq;R4fq;R4fq;R4fq;R4fq;R4fq;R4fq;R4fq;R4 zfq;R4fq;R4fq;R4fq;R4fj}?r)2G zpxM@bN$^M+jy%*+@S@sFu7&=VJq2He`txy}d&MVoOB~oIEwR_YFvNh9f(J~?5D1z{%gv4|)vR|x4ywK4n&zAkM84YW zxsF}Bj}0E8kH=~LAj9X&@wSbNQ|}&!guDS>fFU#(0swg9bSAM@;Hz}VI-@QvxVp?xo zN|HGy=d+Co9ju*eH%qSnLEGO395!Q7reFq8M_7BUBRCzRm)FO%;x-Ka*M!1tzM)(8 zwy$MzuX*N`C*GL+E!<*nhFmT&*CnfR%hpx!RC<5?x#qE(nwk%K5NSF=2AH;BqL)>+9rp`Jm%Y z8G^@)eC8MW^iHyJW3!P@kOiMm`toFTWK~kDf~&V98=4E*IbPEw4+427=SmLIseRYO zBO_1rlwuCRZ4%tTX~^Yu_~7O@O$ho%hF-KA>e-^;s}4_!TSiecgRkZ0I2{s5GH;qs z6=>-Nwda>XKmo#R3FUrQ*rj`?ZhaCGgU3~WstqwcXb8CILmpV!z{H>H-0_j%A2?i+ zGgn55**U&~1c%3KnpWHz*u2a%CzblHc%max5_`v6yL3;QSo(YalxLT|T5d9bcG9J( zD4uo+vMS*rCtms|<)&V;zC@Xcm*7m;%1^swo#ESZ>kQYbJmui=izi&Nj6~?^2LGVk zWM2T8$xx6QS>qq7jJy|KcdD;zkdZM#aW$hC`CpKQ75k9$vkc%{|R zHS-<}B_ltsOs6R|geD~QE4q-hrge|+nU>t6w=OM}(RBOmbEeE`^z^j%Yc=f88PYN! zG;|?qNK0F}yU381peOyml9msEv~2z=yr!zJt4qro$u&kwPQmNV0j(ayZJoW*pw;yO zwZjW$BaUGh&inOTUJ|4X8AumEcub4}Wbquj&PvLLT%3nlxyWfls6j=WK+v zb3BjZ946Q?MHFO~Bt!;2u>>bDqKG&}5=orKDT0*QlE&8J#<~EE9x@{Hk%oBM+gbhZ z=70Zvie+2aqyv;;}5w$usi)_3*W(M$3>G5w#9P3|zuYS|YSfeyFLg?zpOUVFC+PA5-+%1q$4 zB!^3I@}h!Rk;O!Y6IqrJ?XpZTq@>_DCdi^f&^U?9tinnq?ZFT!X|L0|ad*%0AHF%U z`Mv-2EpRvfi4UowU;=%hEJKP?G3xYYlFz(>mx- zV(Ytp+r1C}`P0{T?01KeE$~3G!MNgVM6p5rU3d4yC`_bkB!cen(TaLN7 z>fFMzxIILB;1^scdi}2tIJRb=8}&hhd+r{3cS0}A*|3P#xCPibL&){ovfY_( z9!%qG!D;n^g{&Y?S>h=k?l_S}1fhVSzzEQnXFJ-r-YPUPuSsHue_NvFAQ)FtE#>%P+#2-!`mX$6Tl+LDBomG`cFhV_E!A%e zZWLgWJi#23F|Y5YQRnfWR#JU8EFNETmO168Y8bd1a;5t+lE5o3_XMX7a+MI!;F54} z&sP@ASiGQS>e5@+Tr{VA9w7oUV4rg$4`6vLvOV&h0mc-#YlL)^tPkQxvqk3R{(u zrGFmN+W4Ms|5U=!-)x&-dhg2d<>r*?8dhIL|F8pY-I&4%+pavjuakLNw+?1=%AP9E zR-0gaj_%lm?cG1rsUEIV{a;O7(r`of_PMd!nwlTpQstpEHCS>xK?oj+SZ6%!OFlRB z>WvrGeMkzdk+N^(+)3QGdw*`m4=+41qrbV!CsiKQt8+6)kXWILtchpkP@D*Ffn3JMRV^pUy*q*8m1YUShYi?hCRRu*qT+)0C;55)|K~>8! zReF@H>n9a7)pR4%#;Z@dlJ>fmWcsw~ofNA}rtOjI%&#|@_C~tPfC6PYRZTsI(4@4r zH^HR_LAB_I6!;9ORpC5cLZ#rMCB!twd{G`-*d&+zBW2iGRW4@cu&uOyBv@hbM z1hgyDnd<5~l$zzAUt!**ejgXsX}x#G9n6jqGnSbyRvQtODqMbY{xSF4#*Z#une%J% z+A(|n@$l=W;}IvPSYrunD*mAl&Y#9p%fw?()j0il=g-EYYPh5PN?0}AQK7Xl^}JKH zI?XZ9&dqADv7xo?>g1PG8`NuTGo6e$uAxZ?5a9Xs>oc~zpH7czGOEdQhvGi`3oy|6 ztptOq2e(X1x!H5zA|v1BxUXx+zW@WBga8JYz8Y&2@twn({%872&iw6fo4$$QB9zlp z19#Ld%}s5@Dfc7|#fOj1{yNpPD}sX-YpkXd)zE7Q)zv?#4fgx`b-#C2w?{ADv#-;W zee0QaMsWCm5^K5!$HCR~hQOB3htMwrY*C~3O>@>arT#ILJBW?>@%Yw=Vi{uGfL`mz z^8ML8UX0!GSe>OQjvd7F2}(qj6J5hKU4wpp%}AD2b^X(5(6XrM(C717FCCqDX>CsP z7fjb+s{hF`b*0xo-rkeb2R%H_)T7?iHx4V?clU2K z@m4WC`kl}z*W&>nQP;d|m9XA{X5}dxU)-e)f{wND$6*ls*nB=5RW}+5uVL!z>POX4 zcLoRcfDziXvY_OvTaspbBuvTZ5pc`IsS(zZv?-&<1$vG1$81O5$c&y`c8oX;v}&_G zqi2R5Fiv;w|NWL}^omLej4OXwplu)5k3Ac`_8KNov4LED)^PN!3JCL?%h!Xk9KEV? z8skD7Z)od(eHq!&8%I^0G=dd`%U~D*gM&%PPI! zvL`Sl_HJ35zd~81cNABQmwuEJ=;-hE6hyyU!TN?KTeqsJAMG^l_%HyHIi{?4;hNDd z-BI{+TeZK~-xK{>1!M(ziK0qU??R;8y?>1dq9L>G z{`t+JsGoWa&F#D$Eqb+i>;2}q^4WHk<@0HFn?F@W%OlY)K+s!p=;W%7i+U5hK@5O`}!Q@yaF6{Qu0gYcvL2aw!gY3EJzb`N(y#(%B<%RTEN6 z*H8FY!n{-WubkQ-d40>(-&t;;WR%@z*Z{)HoAKtT8L-8X^ID8CuV1vP@y1rj!1Y;$ zTs7{?r8v@aJqUu*)v)YdiQN+8(-L_Cr!WPHG>IgIq-B|76g$a6Y&y)c`MKIws>~vhv_Q%-4aq$cDabTO5;7*RGD}c|NQ%Iln4M+`RxCB25bHC2#DcsX zPtCc1LE1MX9{A#cg{3850h?5uKlNo;>;Y;r2!?_o0z^`J-7YoT0TPSc zF01y5utBC7&qAgQ1<5cH5(!!2WD28cQX(*xMj|8ua*9CG5+R_HhCryAqNYilqy~@t zexh4$r(=iG+MYRdU##WFun1L8)r1^1W6|bxr>CpcBj7J&{b}!3J@?O%oueiv;c9jg zhbV*zB;=_vI8aLB5+u>#lx(Ll$Xvr&60)d7842Y&P;bU!JsUk#U)lK9pv6n~pV`>r zUvHhT>rZb)LX>cgh^}+Myo~?^*f7 z$;Ygx6;A4itFj7Ev+0N23@^eI> zxyldfKB{r^cZoe$EE?bWLPl)#%ux1XebY<#Nqf}*{97CvM-9%_Gyp(1;=+dzWDmBpx#uTfU=E6Ip`ROzcp5YOj&a^0z$S9e+LY{127bP?;%!@cpIhk4wG0=INHL&rhfyd;2=e zWi@E=PaA-lxh@A3Owisb8&2?QkpbXrOu}SI%|b_ZJEw3Y#o?IDa0Xoiq2K`}2MANXJeH?2qT6sSr3JjHTg zLP-Qp5+H*?Jt7plLXt8Dl7gWiwI5Q;X_8aQwT3<1uOZDEzTVt(&g@%HMUOk;Yu0K& z74*&ki6x_H>#q??K&3rdU4J`3s9>;NV4w;yIB3cOtUhR?7?h#FN;fT`a@4UC|1Nm3 z<@68Nl1mqVAN8hXSNM`Qs{pDxB8YYKXm*6os{p53Zi12QGOa+0K5dtwo(Ct}1xV4y zB?Wv21h52@%K#%)A%j{1k;S&sE5jWv6tYi)+h2M9&7HR#P^v&?ezsG)xBY(u9Lm@T zUc@K{=Rj8ghmA~vCW)Z52+hh0I0Fb+aXUyOsOKQ@!EJ#-p{>rJ3u6j5JeD!3&CH_R zO;=cp?zVg#Hky@a#oFTgZ6wK#iL{-?q235o6c9w!djSds82_XUC0%flK>|w)xL+gI zWM{B-Bu(iz!^@N#4V6a$yr8wlu43c!Nm@eL?RW6gOXTKE=mNKr$nn|ctnPPf>ulS(lr9AE~ z+W%J6mN{|9Uq9OZu44x|%lBbPZZ*a`-&RuWMa!}czThuzMZ#`l2mcjlY_Rho1qXG5 zQw#2}qC!$6iHj^~olu@jreI4f)2ZKA0Db5zzkC1dqocC^h})8Rp(y$L@ef))35#}B zh8GCgPTuPhvXJ%(96ltEB!-Z|S%hee;p`FtrnI8aB47><7ciKhf(*OOAe6v3nouMtVnu?PDM%Eq$e>8VVGwX=NlO3_ zTIvW!=ifd57x~1Kt$e3Me)DH7!mJCXA{dHDE0hLt`9Mq4NQJUKVE8f;R8nFvhM~YE z0s4*rsu>5?j{uf33AN3rU{baA!2~})b0K-pJBL0$wD%VJ-qVe?SUw92Rh1o~f)a8e zs9?vJd;)cgXGky^NQ$wuEThOID`8Obi34YZod9bXlwa_33s6X@q?x9rX&iZ?{(++V zJJ(mft<`vP-Pv5KWqnv@PO3{SPY@sj1~N?iX(76c4T>IVRm-fZ7oJ!B&;$k*;Bbud zHvp3jikN}D3v@Dszz8_2(2^|R;DrU1n1P>y=a|C55(@6h8mcRuN93L7o~gIt!jfHu zOS=;;P!*_JTQ_uK_GFyOk-7k>4e$~6Q1q#?%skmrmq&I_lG zB6*IXND3VAm_*8O!U3ib)Zzn42DTjs1~Qy3u)yV{qynn@fy~asQEB!U&Ke=8C_@F!cAE>uj_UlM?-u*tgoltn9&p3B<%MsTiSB5 z<&&_aoXQSmT$1IZA)pAl2PB{t6`=}Nf5;J-7brwh1kd?VNM)@VsTkv zp!}$epkgW<@!;SLBo#$Hfr9-KgrF!&3TL;6oK}b#ZSLM|$G+3s@5Hgq-xM5Jxy|xF z8oSap;kR24J(AbE`4_WmK0P@3+>IQ&a_8yayOQVM?Y6GnrvvBMEAPoHt^5uv(7y}6uxzb<38+Ofz=?sj1s2DGDe!0@ zD5nYv2gn2lqy`iSmes>x0h2%_0ST$tq119nVWIa3Qc&Gg{XObZ(D!N2x|4f;)bTEQ zyz9GqwdaND3;%0kbJ~6X*`0XD zy6k`UgG*E13sXU@{@9%O4$a1955>nn<-C|`|E=U4cT)0vtz(62*Y#O@M9-ftyf=7kty8ppf8`7I090E4oS5E<@=m z-qzcn?ltIm^1wy4x)(JXak2`hK-Cz1)a#kntqT`y-5q`O`Ns)ImxM6w$BN7xwMJ4z zqmPQLm$zrNdHl!3FZ@n;)abrI*|3^s$LBnJbQ&6*68Ru(HeRF*G|q$ z2Z2Q@`l!R1uj-FJ`_7OjX1|b9_|Vxae|z-Nx{I+3)=&L(WzD;`yLNX;IUA-5t9pR^ zQAec$i1>&_A8q_`QP#qg_`ZX-9yzwO-pHm^Ahdd;k2-KuZtFAoj=1;Rt@~(;_-?x} zw?h@t@)11|jy{?@dGjsrExh^g8%fD+)_m(aUIo3gJgpInK3a>%og4nhwpPp6G;8zk zH#d&2LRgQt8l#U|HaPi3%EH2vU#)ikbYrM z^YtHn6f<(;a~;n8P;XD#JSuu(#?mnD4oyZ?oLLgN=%cyy8ujaUQ-duBo9^6O^RaeC z*K73AjPcF8ow)U6qr^`(%}oBe@z^Th`j@ySbac&-%XOk~UREs?iCsxA8H!Lh&IdiLfyE8cl;ZtSMIE4toD(MKP@?H$&?Z*wQp zuhxAd>aKm}dWt?;JTR*9sA=OL**{cXI6kZM{_86GXlrUK3-4^ZEaCK1MHhcg+i+b* zAKf?L^1eTsZx}qF@zyqC`?HtA^xXe-(MPE{dpplr5ua4EmU8BuWuHyF&Z3WAng00s z8t*K5YnvO5?77`r1#P2}sQ1W4ANBTqUQ~NY zyZyt_{q8;kR&@{4;H>`Wql_P39^~rZWO9v}U0a=ZE8goj`e@%bT~gbA^CH{s<)`oA zSN5H8JwzWRpLTAO>nvCtUvt&+o~?^MvqXje(7?KtJzWPOBOChXPUNx@lepElfR&g_GBeEXjiB8*hh=& z=iPHUbJmzHaqXWjYH99X>0{5rAi`gO&SdUhY5BhJd*-_YD)8x3N_CE%^;FVPY4|#P z_@rfnKQi~Nv?yN$1`ZU|)5q_5_tZ;ckIY$@vGn6#`c1EwW$s()le7NB_z)NX59sna z5Ip#+^2aHL)v3-eQ0dV>h@VBWR_~fO`>5yE^&e5vSMtPH&8eZD(Pdh9jgp{(2Pc?} ihaeaaL4ZeH7!N^6_XzOBR46CoD0wJDWFCT$;`%@B!12-m diff --git a/.gradle/4.8/taskHistory/taskHistory.lock b/.gradle/4.8/taskHistory/taskHistory.lock deleted file mode 100644 index d7c8a62299b028f7c55f7a1133ba6fc5fccbbe34..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 17 UcmZR6q&u&~;>!243=kj!06aPc2><{9 diff --git a/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/.gradle/buildOutputCleanup/buildOutputCleanup.lock deleted file mode 100644 index 401af6b4ed3d86ffaa1457ac9bd8ac2e5c9de84a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 17 UcmZSPUtWB?TYcgO1_;mr05RDFQvd(} diff --git a/.gradle/buildOutputCleanup/cache.properties b/.gradle/buildOutputCleanup/cache.properties deleted file mode 100644 index d5985fd80..000000000 --- a/.gradle/buildOutputCleanup/cache.properties +++ /dev/null @@ -1,2 +0,0 @@ -#Thu Dec 13 11:30:27 CST 2018 -gradle.version=4.8 diff --git a/.gradle/buildOutputCleanup/outputFiles.bin b/.gradle/buildOutputCleanup/outputFiles.bin deleted file mode 100644 index a287e9ba2e8803cab106c52fbe2eb707e591220d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 19019 zcmeI%O-K}R7{~E{O1N62t5_zKvOz1%Na7~gi)_AR+hhv9&}KpynCu2Y8EuDdnOG3o zK@_GgcG1Z7kPx+{rLrn&QI|ZltuGNlXt=moSlBG{JW4Eq2ocn8U}pb(=g%`UpX(L~ zkrcN~hgdxlSC?2p00Izz00bZa0SG_<0uX=z1Rwwb2tWV=5P$##An>mURA?U(qkl}2 z91&W?x`fEstSxpl?DUIWwaKb}`)CyZf6$OQvDeoX7}C44k9*_S!h4Rz10SiIx!-)6 zK3ONSmuOBk_gk*K;4xFioZf9g?k(-6&+qSdOVnq$cbpk-YD#N4NOS7AdyC(Go4V~b zQ@_sLSNUYHIWU$=bIQ2;=li{Po;}W?{jJ=m?pBu97`|I+e;@amvA8y;oI>xfByyjX z-C0KCyHB*ghI>>;bi%24Ydg)CxSM(&ZhfQ%>#2`(mvX18d`A`>)VFirQ?HsW)f)}e z{oFHq_h*&9+LW$$TP}BNQQ4b<2TB!n7x%oEvmf%EQkveCNbZM=&J7+4oEV__B`dvH zkx!oue4#lvxRH zUvqa{nLOX8CeVA@y0~8)HFWnbET+(YmHTDWZfDPg(L?idxbv?N5hMCNTp<7f2tWV= z5P$##AOHafKmY;|fB*y_009U<00Izz00bZa0SG_<0uX=z1Rwwb2tWV=5P$##AOHaf x{67K~?Ng(*b3^D1UAFvEwD5;Y__Nkm*7t_t&-%M_!k@mDH(bk}@X5a^KLJ<4i{1bL diff --git a/.gradle/vcsWorkingDirs/gc.properties b/.gradle/vcsWorkingDirs/gc.properties deleted file mode 100644 index e69de29bb..000000000 diff --git a/.idea/compiler.xml b/.idea/compiler.xml deleted file mode 100644 index 53f886fec..000000000 --- a/.idea/compiler.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/.idea/gradle.xml b/.idea/gradle.xml deleted file mode 100644 index a974f4e55..000000000 --- a/.idea/gradle.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml deleted file mode 100644 index bc8d0a3a6..000000000 --- a/.idea/misc.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/.idea/uiDesigner.xml b/.idea/uiDesigner.xml deleted file mode 100644 index e96534fb2..000000000 --- a/.idea/uiDesigner.xml +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml deleted file mode 100644 index 94a25f7f4..000000000 --- a/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml deleted file mode 100644 index ade487a39..000000000 --- a/.idea/workspace.xml +++ /dev/null @@ -1,2272 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - protocols - byteToInt - - - - - - - - - - - - - - - - - - - - true - DEFINITION_ORDER - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1544671823086 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - file://$PROJECT_DIR$/serverlogic/src/main/java/com/ljsd/jieling/GameApplication.java - 51 - - - - file://$PROJECT_DIR$/serverlogic/src/main/java/com/ljsd/jieling/network/server/ProtocolsManager.java - 161 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Spring - - - - - - - - - - - - - - - 1.8 - - - - - - - - jieling-server - - - - - - - - Gradle: junit:junit:4.12 - - - - - - - - \ No newline at end of file From f25f674d23dd554dd6c5b1a780a0773a71e37c48 Mon Sep 17 00:00:00 2001 From: mashiyu Date: Fri, 4 Jan 2019 15:12:48 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=B8=80=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ljsd/jieling/logic/OnlineUserManager.java | 46 + .../ljsd/jieling/logic/dao/HeroManager.java | 5 + .../ljsd/jieling/logic/dao/ItemManager.java | 6 + .../ljsd/jieling/logic/dao/MapManager.java | 4 + .../ljsd/jieling/logic/dao/PlayerInfo.java | 14 + .../ljsd/jieling/logic/dao/UserManager.java | 4 + .../ljsd/jieling/protocols/CommonProto.java | 8192 ++++++++++++++++- .../jieling/protocols/MessageTypeProto.java | 210 +- .../jieling/protocols/PlayerInfoProto.java | 3053 ++++-- 9 files changed, 10996 insertions(+), 538 deletions(-) create mode 100644 serverlogic/src/main/java/com/ljsd/jieling/logic/dao/HeroManager.java create mode 100644 serverlogic/src/main/java/com/ljsd/jieling/logic/dao/ItemManager.java create mode 100644 serverlogic/src/main/java/com/ljsd/jieling/logic/dao/MapManager.java create mode 100644 serverlogic/src/main/java/com/ljsd/jieling/logic/dao/PlayerInfo.java create mode 100644 serverlogic/src/main/java/com/ljsd/jieling/logic/dao/UserManager.java diff --git a/serverlogic/src/main/java/com/ljsd/jieling/logic/OnlineUserManager.java b/serverlogic/src/main/java/com/ljsd/jieling/logic/OnlineUserManager.java index 0d782b3ff..8f79f54d9 100644 --- a/serverlogic/src/main/java/com/ljsd/jieling/logic/OnlineUserManager.java +++ b/serverlogic/src/main/java/com/ljsd/jieling/logic/OnlineUserManager.java @@ -1,5 +1,51 @@ package com.ljsd.jieling.logic; +import com.ljsd.jieling.logic.dao.*; +import com.ljsd.jieling.network.session.ISession; + +import java.util.Map; +import java.util.concurrent.ConcurrentHashMap; + public class OnlineUserManager { + public static Map onlineUidMap = new ConcurrentHashMap<>(); + public static Map sessionMap = new ConcurrentHashMap<>(); + + public static Map onlineUserMap = new ConcurrentHashMap<>(10000); + + + public static void registUser(int uid, int serverId, ISession session) { + onlineUidMap.put(uid, serverId); + sessionMap.put(uid, session); + } + + public static void unRegistUser(int uid) { + onlineUidMap.remove(uid); + sessionMap.remove(uid); + } + + /** + * 通过uid获取Session + * @param uid + * @return + */ + public static ISession getSessionByUid(int uid) { + if(sessionMap == null){ + return null; + } + return sessionMap.get(uid); + } + + /** + * 检测玩家是否在线 + * @param uid + * @return + */ + public static boolean checkUidOnline(int uid) { + if(sessionMap == null){ + return false; + } + return sessionMap.containsKey(uid); + } + } diff --git a/serverlogic/src/main/java/com/ljsd/jieling/logic/dao/HeroManager.java b/serverlogic/src/main/java/com/ljsd/jieling/logic/dao/HeroManager.java new file mode 100644 index 000000000..78bff01da --- /dev/null +++ b/serverlogic/src/main/java/com/ljsd/jieling/logic/dao/HeroManager.java @@ -0,0 +1,5 @@ +package com.ljsd.jieling.logic.dao; + +public class HeroManager { + +} diff --git a/serverlogic/src/main/java/com/ljsd/jieling/logic/dao/ItemManager.java b/serverlogic/src/main/java/com/ljsd/jieling/logic/dao/ItemManager.java new file mode 100644 index 000000000..6bc331e13 --- /dev/null +++ b/serverlogic/src/main/java/com/ljsd/jieling/logic/dao/ItemManager.java @@ -0,0 +1,6 @@ +package com.ljsd.jieling.logic.dao; + +public class ItemManager { + + +} diff --git a/serverlogic/src/main/java/com/ljsd/jieling/logic/dao/MapManager.java b/serverlogic/src/main/java/com/ljsd/jieling/logic/dao/MapManager.java new file mode 100644 index 000000000..396654321 --- /dev/null +++ b/serverlogic/src/main/java/com/ljsd/jieling/logic/dao/MapManager.java @@ -0,0 +1,4 @@ +package com.ljsd.jieling.logic.dao; + +public class MapManager { +} diff --git a/serverlogic/src/main/java/com/ljsd/jieling/logic/dao/PlayerInfo.java b/serverlogic/src/main/java/com/ljsd/jieling/logic/dao/PlayerInfo.java new file mode 100644 index 000000000..bc235f923 --- /dev/null +++ b/serverlogic/src/main/java/com/ljsd/jieling/logic/dao/PlayerInfo.java @@ -0,0 +1,14 @@ +package com.ljsd.jieling.logic.dao; + +public class PlayerInfo { + + private UserManager userManager; + + private ItemManager itemManager; + + private HeroManager heroManager; + + private MapManager mapManager; + + +} diff --git a/serverlogic/src/main/java/com/ljsd/jieling/logic/dao/UserManager.java b/serverlogic/src/main/java/com/ljsd/jieling/logic/dao/UserManager.java new file mode 100644 index 000000000..2c2d88bfd --- /dev/null +++ b/serverlogic/src/main/java/com/ljsd/jieling/logic/dao/UserManager.java @@ -0,0 +1,4 @@ +package com.ljsd.jieling.logic.dao; + +public class UserManager { +} diff --git a/serverlogic/src/main/java/com/ljsd/jieling/protocols/CommonProto.java b/serverlogic/src/main/java/com/ljsd/jieling/protocols/CommonProto.java index 14e8ab882..150b76b8c 100644 --- a/serverlogic/src/main/java/com/ljsd/jieling/protocols/CommonProto.java +++ b/serverlogic/src/main/java/com/ljsd/jieling/protocols/CommonProto.java @@ -100,6 +100,8065 @@ public final class CommonProto { return PARSER; } + public interface PlayerOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional int32 uid = 1; + /** + * optional int32 uid = 1; + */ + boolean hasUid(); + /** + * optional int32 uid = 1; + */ + int getUid(); + + // optional string nicknime = 2; + /** + * optional string nicknime = 2; + */ + boolean hasNicknime(); + /** + * optional string nicknime = 2; + */ + java.lang.String getNicknime(); + /** + * optional string nicknime = 2; + */ + com.google.protobuf.ByteString + getNicknimeBytes(); + + // optional int32 level = 3; + /** + * optional int32 level = 3; + */ + boolean hasLevel(); + /** + * optional int32 level = 3; + */ + int getLevel(); + + // optional int32 exp = 4; + /** + * optional int32 exp = 4; + */ + boolean hasExp(); + /** + * optional int32 exp = 4; + */ + int getExp(); + + // optional int32 vipLevel = 5; + /** + * optional int32 vipLevel = 5; + */ + boolean hasVipLevel(); + /** + * optional int32 vipLevel = 5; + */ + int getVipLevel(); + + // optional string familyId = 6; + /** + * optional string familyId = 6; + */ + boolean hasFamilyId(); + /** + * optional string familyId = 6; + */ + java.lang.String getFamilyId(); + /** + * optional string familyId = 6; + */ + com.google.protobuf.ByteString + getFamilyIdBytes(); + + // optional string head = 7; + /** + * optional string head = 7; + */ + boolean hasHead(); + /** + * optional string head = 7; + */ + java.lang.String getHead(); + /** + * optional string head = 7; + */ + com.google.protobuf.ByteString + getHeadBytes(); + + // optional int32 gold = 8; + /** + * optional int32 gold = 8; + */ + boolean hasGold(); + /** + * optional int32 gold = 8; + */ + int getGold(); + } + /** + * Protobuf type {@code com.ljsd.jieling.protocols.Common.Player} + */ + public static final class Player extends + com.google.protobuf.GeneratedMessage + implements PlayerOrBuilder { + // Use Player.newBuilder() to construct. + private Player(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private Player(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final Player defaultInstance; + public static Player getDefaultInstance() { + return defaultInstance; + } + + public Player getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Player( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + uid_ = input.readInt32(); + break; + } + case 18: { + bitField0_ |= 0x00000002; + nicknime_ = input.readBytes(); + break; + } + case 24: { + bitField0_ |= 0x00000004; + level_ = input.readInt32(); + break; + } + case 32: { + bitField0_ |= 0x00000008; + exp_ = input.readInt32(); + break; + } + case 40: { + bitField0_ |= 0x00000010; + vipLevel_ = input.readInt32(); + break; + } + case 50: { + bitField0_ |= 0x00000020; + familyId_ = input.readBytes(); + break; + } + case 58: { + bitField0_ |= 0x00000040; + head_ = input.readBytes(); + break; + } + case 64: { + bitField0_ |= 0x00000080; + gold_ = input.readInt32(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Player_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Player_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.ljsd.jieling.protocols.CommonProto.Common.Player.class, com.ljsd.jieling.protocols.CommonProto.Common.Player.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Player parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Player(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + // optional int32 uid = 1; + public static final int UID_FIELD_NUMBER = 1; + private int uid_; + /** + * optional int32 uid = 1; + */ + public boolean hasUid() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional int32 uid = 1; + */ + public int getUid() { + return uid_; + } + + // optional string nicknime = 2; + public static final int NICKNIME_FIELD_NUMBER = 2; + private java.lang.Object nicknime_; + /** + * optional string nicknime = 2; + */ + public boolean hasNicknime() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional string nicknime = 2; + */ + public java.lang.String getNicknime() { + java.lang.Object ref = nicknime_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + nicknime_ = s; + } + return s; + } + } + /** + * optional string nicknime = 2; + */ + public com.google.protobuf.ByteString + getNicknimeBytes() { + java.lang.Object ref = nicknime_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nicknime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // optional int32 level = 3; + public static final int LEVEL_FIELD_NUMBER = 3; + private int level_; + /** + * optional int32 level = 3; + */ + public boolean hasLevel() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional int32 level = 3; + */ + public int getLevel() { + return level_; + } + + // optional int32 exp = 4; + public static final int EXP_FIELD_NUMBER = 4; + private int exp_; + /** + * optional int32 exp = 4; + */ + public boolean hasExp() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional int32 exp = 4; + */ + public int getExp() { + return exp_; + } + + // optional int32 vipLevel = 5; + public static final int VIPLEVEL_FIELD_NUMBER = 5; + private int vipLevel_; + /** + * optional int32 vipLevel = 5; + */ + public boolean hasVipLevel() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional int32 vipLevel = 5; + */ + public int getVipLevel() { + return vipLevel_; + } + + // optional string familyId = 6; + public static final int FAMILYID_FIELD_NUMBER = 6; + private java.lang.Object familyId_; + /** + * optional string familyId = 6; + */ + public boolean hasFamilyId() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + * optional string familyId = 6; + */ + public java.lang.String getFamilyId() { + java.lang.Object ref = familyId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + familyId_ = s; + } + return s; + } + } + /** + * optional string familyId = 6; + */ + public com.google.protobuf.ByteString + getFamilyIdBytes() { + java.lang.Object ref = familyId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + familyId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // optional string head = 7; + public static final int HEAD_FIELD_NUMBER = 7; + private java.lang.Object head_; + /** + * optional string head = 7; + */ + public boolean hasHead() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + /** + * optional string head = 7; + */ + public java.lang.String getHead() { + java.lang.Object ref = head_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + head_ = s; + } + return s; + } + } + /** + * optional string head = 7; + */ + public com.google.protobuf.ByteString + getHeadBytes() { + java.lang.Object ref = head_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + head_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // optional int32 gold = 8; + public static final int GOLD_FIELD_NUMBER = 8; + private int gold_; + /** + * optional int32 gold = 8; + */ + public boolean hasGold() { + return ((bitField0_ & 0x00000080) == 0x00000080); + } + /** + * optional int32 gold = 8; + */ + public int getGold() { + return gold_; + } + + private void initFields() { + uid_ = 0; + nicknime_ = ""; + level_ = 0; + exp_ = 0; + vipLevel_ = 0; + familyId_ = ""; + head_ = ""; + gold_ = 0; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeInt32(1, uid_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(2, getNicknimeBytes()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeInt32(3, level_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeInt32(4, exp_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeInt32(5, vipLevel_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + output.writeBytes(6, getFamilyIdBytes()); + } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + output.writeBytes(7, getHeadBytes()); + } + if (((bitField0_ & 0x00000080) == 0x00000080)) { + output.writeInt32(8, gold_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, uid_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, getNicknimeBytes()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, level_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, exp_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, vipLevel_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(6, getFamilyIdBytes()); + } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(7, getHeadBytes()); + } + if (((bitField0_ & 0x00000080) == 0x00000080)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(8, gold_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static com.ljsd.jieling.protocols.CommonProto.Common.Player parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Player parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Player parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Player parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Player parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Player parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Player parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Player parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Player parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Player parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(com.ljsd.jieling.protocols.CommonProto.Common.Player prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code com.ljsd.jieling.protocols.Common.Player} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements com.ljsd.jieling.protocols.CommonProto.Common.PlayerOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Player_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Player_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.ljsd.jieling.protocols.CommonProto.Common.Player.class, com.ljsd.jieling.protocols.CommonProto.Common.Player.Builder.class); + } + + // Construct using com.ljsd.jieling.protocols.CommonProto.Common.Player.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + uid_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + nicknime_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + level_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + exp_ = 0; + bitField0_ = (bitField0_ & ~0x00000008); + vipLevel_ = 0; + bitField0_ = (bitField0_ & ~0x00000010); + familyId_ = ""; + bitField0_ = (bitField0_ & ~0x00000020); + head_ = ""; + bitField0_ = (bitField0_ & ~0x00000040); + gold_ = 0; + bitField0_ = (bitField0_ & ~0x00000080); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Player_descriptor; + } + + public com.ljsd.jieling.protocols.CommonProto.Common.Player getDefaultInstanceForType() { + return com.ljsd.jieling.protocols.CommonProto.Common.Player.getDefaultInstance(); + } + + public com.ljsd.jieling.protocols.CommonProto.Common.Player build() { + com.ljsd.jieling.protocols.CommonProto.Common.Player result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.ljsd.jieling.protocols.CommonProto.Common.Player buildPartial() { + com.ljsd.jieling.protocols.CommonProto.Common.Player result = new com.ljsd.jieling.protocols.CommonProto.Common.Player(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.uid_ = uid_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.nicknime_ = nicknime_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.level_ = level_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.exp_ = exp_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000010; + } + result.vipLevel_ = vipLevel_; + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000020; + } + result.familyId_ = familyId_; + if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + to_bitField0_ |= 0x00000040; + } + result.head_ = head_; + if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + to_bitField0_ |= 0x00000080; + } + result.gold_ = gold_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.ljsd.jieling.protocols.CommonProto.Common.Player) { + return mergeFrom((com.ljsd.jieling.protocols.CommonProto.Common.Player)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.ljsd.jieling.protocols.CommonProto.Common.Player other) { + if (other == com.ljsd.jieling.protocols.CommonProto.Common.Player.getDefaultInstance()) return this; + if (other.hasUid()) { + setUid(other.getUid()); + } + if (other.hasNicknime()) { + bitField0_ |= 0x00000002; + nicknime_ = other.nicknime_; + onChanged(); + } + if (other.hasLevel()) { + setLevel(other.getLevel()); + } + if (other.hasExp()) { + setExp(other.getExp()); + } + if (other.hasVipLevel()) { + setVipLevel(other.getVipLevel()); + } + if (other.hasFamilyId()) { + bitField0_ |= 0x00000020; + familyId_ = other.familyId_; + onChanged(); + } + if (other.hasHead()) { + bitField0_ |= 0x00000040; + head_ = other.head_; + onChanged(); + } + if (other.hasGold()) { + setGold(other.getGold()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.ljsd.jieling.protocols.CommonProto.Common.Player parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.ljsd.jieling.protocols.CommonProto.Common.Player) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // optional int32 uid = 1; + private int uid_ ; + /** + * optional int32 uid = 1; + */ + public boolean hasUid() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional int32 uid = 1; + */ + public int getUid() { + return uid_; + } + /** + * optional int32 uid = 1; + */ + public Builder setUid(int value) { + bitField0_ |= 0x00000001; + uid_ = value; + onChanged(); + return this; + } + /** + * optional int32 uid = 1; + */ + public Builder clearUid() { + bitField0_ = (bitField0_ & ~0x00000001); + uid_ = 0; + onChanged(); + return this; + } + + // optional string nicknime = 2; + private java.lang.Object nicknime_ = ""; + /** + * optional string nicknime = 2; + */ + public boolean hasNicknime() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional string nicknime = 2; + */ + public java.lang.String getNicknime() { + java.lang.Object ref = nicknime_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + nicknime_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string nicknime = 2; + */ + public com.google.protobuf.ByteString + getNicknimeBytes() { + java.lang.Object ref = nicknime_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nicknime_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string nicknime = 2; + */ + public Builder setNicknime( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + nicknime_ = value; + onChanged(); + return this; + } + /** + * optional string nicknime = 2; + */ + public Builder clearNicknime() { + bitField0_ = (bitField0_ & ~0x00000002); + nicknime_ = getDefaultInstance().getNicknime(); + onChanged(); + return this; + } + /** + * optional string nicknime = 2; + */ + public Builder setNicknimeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + nicknime_ = value; + onChanged(); + return this; + } + + // optional int32 level = 3; + private int level_ ; + /** + * optional int32 level = 3; + */ + public boolean hasLevel() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional int32 level = 3; + */ + public int getLevel() { + return level_; + } + /** + * optional int32 level = 3; + */ + public Builder setLevel(int value) { + bitField0_ |= 0x00000004; + level_ = value; + onChanged(); + return this; + } + /** + * optional int32 level = 3; + */ + public Builder clearLevel() { + bitField0_ = (bitField0_ & ~0x00000004); + level_ = 0; + onChanged(); + return this; + } + + // optional int32 exp = 4; + private int exp_ ; + /** + * optional int32 exp = 4; + */ + public boolean hasExp() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional int32 exp = 4; + */ + public int getExp() { + return exp_; + } + /** + * optional int32 exp = 4; + */ + public Builder setExp(int value) { + bitField0_ |= 0x00000008; + exp_ = value; + onChanged(); + return this; + } + /** + * optional int32 exp = 4; + */ + public Builder clearExp() { + bitField0_ = (bitField0_ & ~0x00000008); + exp_ = 0; + onChanged(); + return this; + } + + // optional int32 vipLevel = 5; + private int vipLevel_ ; + /** + * optional int32 vipLevel = 5; + */ + public boolean hasVipLevel() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional int32 vipLevel = 5; + */ + public int getVipLevel() { + return vipLevel_; + } + /** + * optional int32 vipLevel = 5; + */ + public Builder setVipLevel(int value) { + bitField0_ |= 0x00000010; + vipLevel_ = value; + onChanged(); + return this; + } + /** + * optional int32 vipLevel = 5; + */ + public Builder clearVipLevel() { + bitField0_ = (bitField0_ & ~0x00000010); + vipLevel_ = 0; + onChanged(); + return this; + } + + // optional string familyId = 6; + private java.lang.Object familyId_ = ""; + /** + * optional string familyId = 6; + */ + public boolean hasFamilyId() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + * optional string familyId = 6; + */ + public java.lang.String getFamilyId() { + java.lang.Object ref = familyId_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + familyId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string familyId = 6; + */ + public com.google.protobuf.ByteString + getFamilyIdBytes() { + java.lang.Object ref = familyId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + familyId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string familyId = 6; + */ + public Builder setFamilyId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + familyId_ = value; + onChanged(); + return this; + } + /** + * optional string familyId = 6; + */ + public Builder clearFamilyId() { + bitField0_ = (bitField0_ & ~0x00000020); + familyId_ = getDefaultInstance().getFamilyId(); + onChanged(); + return this; + } + /** + * optional string familyId = 6; + */ + public Builder setFamilyIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + familyId_ = value; + onChanged(); + return this; + } + + // optional string head = 7; + private java.lang.Object head_ = ""; + /** + * optional string head = 7; + */ + public boolean hasHead() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + /** + * optional string head = 7; + */ + public java.lang.String getHead() { + java.lang.Object ref = head_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + head_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string head = 7; + */ + public com.google.protobuf.ByteString + getHeadBytes() { + java.lang.Object ref = head_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + head_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string head = 7; + */ + public Builder setHead( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + head_ = value; + onChanged(); + return this; + } + /** + * optional string head = 7; + */ + public Builder clearHead() { + bitField0_ = (bitField0_ & ~0x00000040); + head_ = getDefaultInstance().getHead(); + onChanged(); + return this; + } + /** + * optional string head = 7; + */ + public Builder setHeadBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + head_ = value; + onChanged(); + return this; + } + + // optional int32 gold = 8; + private int gold_ ; + /** + * optional int32 gold = 8; + */ + public boolean hasGold() { + return ((bitField0_ & 0x00000080) == 0x00000080); + } + /** + * optional int32 gold = 8; + */ + public int getGold() { + return gold_; + } + /** + * optional int32 gold = 8; + */ + public Builder setGold(int value) { + bitField0_ |= 0x00000080; + gold_ = value; + onChanged(); + return this; + } + /** + * optional int32 gold = 8; + */ + public Builder clearGold() { + bitField0_ = (bitField0_ & ~0x00000080); + gold_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:com.ljsd.jieling.protocols.Common.Player) + } + + static { + defaultInstance = new Player(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:com.ljsd.jieling.protocols.Common.Player) + } + + public interface ItemOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional string id = 1; + /** + * optional string id = 1; + */ + boolean hasId(); + /** + * optional string id = 1; + */ + java.lang.String getId(); + /** + * optional string id = 1; + */ + com.google.protobuf.ByteString + getIdBytes(); + + // optional int32 itemId = 2; + /** + * optional int32 itemId = 2; + */ + boolean hasItemId(); + /** + * optional int32 itemId = 2; + */ + int getItemId(); + + // optional int32 itemNum = 3; + /** + * optional int32 itemNum = 3; + */ + boolean hasItemNum(); + /** + * optional int32 itemNum = 3; + */ + int getItemNum(); + + // optional int32 itemType = 4; + /** + * optional int32 itemType = 4; + */ + boolean hasItemType(); + /** + * optional int32 itemType = 4; + */ + int getItemType(); + + // optional int32 itemQuality = 5; + /** + * optional int32 itemQuality = 5; + */ + boolean hasItemQuality(); + /** + * optional int32 itemQuality = 5; + */ + int getItemQuality(); + + // optional bool isStacking = 6; + /** + * optional bool isStacking = 6; + */ + boolean hasIsStacking(); + /** + * optional bool isStacking = 6; + */ + boolean getIsStacking(); + + // optional int32 endingTime = 7; + /** + * optional int32 endingTime = 7; + */ + boolean hasEndingTime(); + /** + * optional int32 endingTime = 7; + */ + int getEndingTime(); + } + /** + * Protobuf type {@code com.ljsd.jieling.protocols.Common.Item} + */ + public static final class Item extends + com.google.protobuf.GeneratedMessage + implements ItemOrBuilder { + // Use Item.newBuilder() to construct. + private Item(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private Item(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final Item defaultInstance; + public static Item getDefaultInstance() { + return defaultInstance; + } + + public Item getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Item( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + id_ = input.readBytes(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + itemId_ = input.readInt32(); + break; + } + case 24: { + bitField0_ |= 0x00000004; + itemNum_ = input.readInt32(); + break; + } + case 32: { + bitField0_ |= 0x00000008; + itemType_ = input.readInt32(); + break; + } + case 40: { + bitField0_ |= 0x00000010; + itemQuality_ = input.readInt32(); + break; + } + case 48: { + bitField0_ |= 0x00000020; + isStacking_ = input.readBool(); + break; + } + case 56: { + bitField0_ |= 0x00000040; + endingTime_ = input.readInt32(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Item_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Item_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.ljsd.jieling.protocols.CommonProto.Common.Item.class, com.ljsd.jieling.protocols.CommonProto.Common.Item.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Item parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Item(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + // optional string id = 1; + public static final int ID_FIELD_NUMBER = 1; + private java.lang.Object id_; + /** + * optional string id = 1; + */ + public boolean hasId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string id = 1; + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + id_ = s; + } + return s; + } + } + /** + * optional string id = 1; + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // optional int32 itemId = 2; + public static final int ITEMID_FIELD_NUMBER = 2; + private int itemId_; + /** + * optional int32 itemId = 2; + */ + public boolean hasItemId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional int32 itemId = 2; + */ + public int getItemId() { + return itemId_; + } + + // optional int32 itemNum = 3; + public static final int ITEMNUM_FIELD_NUMBER = 3; + private int itemNum_; + /** + * optional int32 itemNum = 3; + */ + public boolean hasItemNum() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional int32 itemNum = 3; + */ + public int getItemNum() { + return itemNum_; + } + + // optional int32 itemType = 4; + public static final int ITEMTYPE_FIELD_NUMBER = 4; + private int itemType_; + /** + * optional int32 itemType = 4; + */ + public boolean hasItemType() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional int32 itemType = 4; + */ + public int getItemType() { + return itemType_; + } + + // optional int32 itemQuality = 5; + public static final int ITEMQUALITY_FIELD_NUMBER = 5; + private int itemQuality_; + /** + * optional int32 itemQuality = 5; + */ + public boolean hasItemQuality() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional int32 itemQuality = 5; + */ + public int getItemQuality() { + return itemQuality_; + } + + // optional bool isStacking = 6; + public static final int ISSTACKING_FIELD_NUMBER = 6; + private boolean isStacking_; + /** + * optional bool isStacking = 6; + */ + public boolean hasIsStacking() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + * optional bool isStacking = 6; + */ + public boolean getIsStacking() { + return isStacking_; + } + + // optional int32 endingTime = 7; + public static final int ENDINGTIME_FIELD_NUMBER = 7; + private int endingTime_; + /** + * optional int32 endingTime = 7; + */ + public boolean hasEndingTime() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + /** + * optional int32 endingTime = 7; + */ + public int getEndingTime() { + return endingTime_; + } + + private void initFields() { + id_ = ""; + itemId_ = 0; + itemNum_ = 0; + itemType_ = 0; + itemQuality_ = 0; + isStacking_ = false; + endingTime_ = 0; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getIdBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeInt32(2, itemId_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeInt32(3, itemNum_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeInt32(4, itemType_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeInt32(5, itemQuality_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + output.writeBool(6, isStacking_); + } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + output.writeInt32(7, endingTime_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, getIdBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, itemId_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, itemNum_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, itemType_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, itemQuality_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, isStacking_); + } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(7, endingTime_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static com.ljsd.jieling.protocols.CommonProto.Common.Item parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Item parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Item parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Item parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Item parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Item parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Item parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Item parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Item parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Item parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(com.ljsd.jieling.protocols.CommonProto.Common.Item prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code com.ljsd.jieling.protocols.Common.Item} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements com.ljsd.jieling.protocols.CommonProto.Common.ItemOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Item_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Item_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.ljsd.jieling.protocols.CommonProto.Common.Item.class, com.ljsd.jieling.protocols.CommonProto.Common.Item.Builder.class); + } + + // Construct using com.ljsd.jieling.protocols.CommonProto.Common.Item.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + id_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + itemId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + itemNum_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + itemType_ = 0; + bitField0_ = (bitField0_ & ~0x00000008); + itemQuality_ = 0; + bitField0_ = (bitField0_ & ~0x00000010); + isStacking_ = false; + bitField0_ = (bitField0_ & ~0x00000020); + endingTime_ = 0; + bitField0_ = (bitField0_ & ~0x00000040); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Item_descriptor; + } + + public com.ljsd.jieling.protocols.CommonProto.Common.Item getDefaultInstanceForType() { + return com.ljsd.jieling.protocols.CommonProto.Common.Item.getDefaultInstance(); + } + + public com.ljsd.jieling.protocols.CommonProto.Common.Item build() { + com.ljsd.jieling.protocols.CommonProto.Common.Item result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.ljsd.jieling.protocols.CommonProto.Common.Item buildPartial() { + com.ljsd.jieling.protocols.CommonProto.Common.Item result = new com.ljsd.jieling.protocols.CommonProto.Common.Item(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.id_ = id_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.itemId_ = itemId_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.itemNum_ = itemNum_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.itemType_ = itemType_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000010; + } + result.itemQuality_ = itemQuality_; + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000020; + } + result.isStacking_ = isStacking_; + if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + to_bitField0_ |= 0x00000040; + } + result.endingTime_ = endingTime_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.ljsd.jieling.protocols.CommonProto.Common.Item) { + return mergeFrom((com.ljsd.jieling.protocols.CommonProto.Common.Item)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.ljsd.jieling.protocols.CommonProto.Common.Item other) { + if (other == com.ljsd.jieling.protocols.CommonProto.Common.Item.getDefaultInstance()) return this; + if (other.hasId()) { + bitField0_ |= 0x00000001; + id_ = other.id_; + onChanged(); + } + if (other.hasItemId()) { + setItemId(other.getItemId()); + } + if (other.hasItemNum()) { + setItemNum(other.getItemNum()); + } + if (other.hasItemType()) { + setItemType(other.getItemType()); + } + if (other.hasItemQuality()) { + setItemQuality(other.getItemQuality()); + } + if (other.hasIsStacking()) { + setIsStacking(other.getIsStacking()); + } + if (other.hasEndingTime()) { + setEndingTime(other.getEndingTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.ljsd.jieling.protocols.CommonProto.Common.Item parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.ljsd.jieling.protocols.CommonProto.Common.Item) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // optional string id = 1; + private java.lang.Object id_ = ""; + /** + * optional string id = 1; + */ + public boolean hasId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string id = 1; + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string id = 1; + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string id = 1; + */ + public Builder setId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + id_ = value; + onChanged(); + return this; + } + /** + * optional string id = 1; + */ + public Builder clearId() { + bitField0_ = (bitField0_ & ~0x00000001); + id_ = getDefaultInstance().getId(); + onChanged(); + return this; + } + /** + * optional string id = 1; + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + id_ = value; + onChanged(); + return this; + } + + // optional int32 itemId = 2; + private int itemId_ ; + /** + * optional int32 itemId = 2; + */ + public boolean hasItemId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional int32 itemId = 2; + */ + public int getItemId() { + return itemId_; + } + /** + * optional int32 itemId = 2; + */ + public Builder setItemId(int value) { + bitField0_ |= 0x00000002; + itemId_ = value; + onChanged(); + return this; + } + /** + * optional int32 itemId = 2; + */ + public Builder clearItemId() { + bitField0_ = (bitField0_ & ~0x00000002); + itemId_ = 0; + onChanged(); + return this; + } + + // optional int32 itemNum = 3; + private int itemNum_ ; + /** + * optional int32 itemNum = 3; + */ + public boolean hasItemNum() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional int32 itemNum = 3; + */ + public int getItemNum() { + return itemNum_; + } + /** + * optional int32 itemNum = 3; + */ + public Builder setItemNum(int value) { + bitField0_ |= 0x00000004; + itemNum_ = value; + onChanged(); + return this; + } + /** + * optional int32 itemNum = 3; + */ + public Builder clearItemNum() { + bitField0_ = (bitField0_ & ~0x00000004); + itemNum_ = 0; + onChanged(); + return this; + } + + // optional int32 itemType = 4; + private int itemType_ ; + /** + * optional int32 itemType = 4; + */ + public boolean hasItemType() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional int32 itemType = 4; + */ + public int getItemType() { + return itemType_; + } + /** + * optional int32 itemType = 4; + */ + public Builder setItemType(int value) { + bitField0_ |= 0x00000008; + itemType_ = value; + onChanged(); + return this; + } + /** + * optional int32 itemType = 4; + */ + public Builder clearItemType() { + bitField0_ = (bitField0_ & ~0x00000008); + itemType_ = 0; + onChanged(); + return this; + } + + // optional int32 itemQuality = 5; + private int itemQuality_ ; + /** + * optional int32 itemQuality = 5; + */ + public boolean hasItemQuality() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional int32 itemQuality = 5; + */ + public int getItemQuality() { + return itemQuality_; + } + /** + * optional int32 itemQuality = 5; + */ + public Builder setItemQuality(int value) { + bitField0_ |= 0x00000010; + itemQuality_ = value; + onChanged(); + return this; + } + /** + * optional int32 itemQuality = 5; + */ + public Builder clearItemQuality() { + bitField0_ = (bitField0_ & ~0x00000010); + itemQuality_ = 0; + onChanged(); + return this; + } + + // optional bool isStacking = 6; + private boolean isStacking_ ; + /** + * optional bool isStacking = 6; + */ + public boolean hasIsStacking() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + * optional bool isStacking = 6; + */ + public boolean getIsStacking() { + return isStacking_; + } + /** + * optional bool isStacking = 6; + */ + public Builder setIsStacking(boolean value) { + bitField0_ |= 0x00000020; + isStacking_ = value; + onChanged(); + return this; + } + /** + * optional bool isStacking = 6; + */ + public Builder clearIsStacking() { + bitField0_ = (bitField0_ & ~0x00000020); + isStacking_ = false; + onChanged(); + return this; + } + + // optional int32 endingTime = 7; + private int endingTime_ ; + /** + * optional int32 endingTime = 7; + */ + public boolean hasEndingTime() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + /** + * optional int32 endingTime = 7; + */ + public int getEndingTime() { + return endingTime_; + } + /** + * optional int32 endingTime = 7; + */ + public Builder setEndingTime(int value) { + bitField0_ |= 0x00000040; + endingTime_ = value; + onChanged(); + return this; + } + /** + * optional int32 endingTime = 7; + */ + public Builder clearEndingTime() { + bitField0_ = (bitField0_ & ~0x00000040); + endingTime_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:com.ljsd.jieling.protocols.Common.Item) + } + + static { + defaultInstance = new Item(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:com.ljsd.jieling.protocols.Common.Item) + } + + public interface HeroOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional string id = 1; + /** + * optional string id = 1; + */ + boolean hasId(); + /** + * optional string id = 1; + */ + java.lang.String getId(); + /** + * optional string id = 1; + */ + com.google.protobuf.ByteString + getIdBytes(); + + // optional int32 heroId = 2; + /** + * optional int32 heroId = 2; + */ + boolean hasHeroId(); + /** + * optional int32 heroId = 2; + */ + int getHeroId(); + + // optional int32 heroType = 3; + /** + * optional int32 heroType = 3; + */ + boolean hasHeroType(); + /** + * optional int32 heroType = 3; + */ + int getHeroType(); + + // optional int32 level = 4; + /** + * optional int32 level = 4; + */ + boolean hasLevel(); + /** + * optional int32 level = 4; + */ + int getLevel(); + + // optional int32 star = 5; + /** + * optional int32 star = 5; + */ + boolean hasStar(); + /** + * optional int32 star = 5; + */ + int getStar(); + + // optional int32 quality = 6; + /** + * optional int32 quality = 6; + */ + boolean hasQuality(); + /** + * optional int32 quality = 6; + */ + int getQuality(); + + // optional int32 hp = 7; + /** + * optional int32 hp = 7; + */ + boolean hasHp(); + /** + * optional int32 hp = 7; + */ + int getHp(); + + // optional int32 attack = 8; + /** + * optional int32 attack = 8; + */ + boolean hasAttack(); + /** + * optional int32 attack = 8; + */ + int getAttack(); + + // optional int32 pDefence = 9; + /** + * optional int32 pDefence = 9; + */ + boolean hasPDefence(); + /** + * optional int32 pDefence = 9; + */ + int getPDefence(); + + // optional int32 mDefence = 10; + /** + * optional int32 mDefence = 10; + */ + boolean hasMDefence(); + /** + * optional int32 mDefence = 10; + */ + int getMDefence(); + + // optional int32 speed = 11; + /** + * optional int32 speed = 11; + */ + boolean hasSpeed(); + /** + * optional int32 speed = 11; + */ + int getSpeed(); + } + /** + * Protobuf type {@code com.ljsd.jieling.protocols.Common.Hero} + */ + public static final class Hero extends + com.google.protobuf.GeneratedMessage + implements HeroOrBuilder { + // Use Hero.newBuilder() to construct. + private Hero(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private Hero(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final Hero defaultInstance; + public static Hero getDefaultInstance() { + return defaultInstance; + } + + public Hero getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Hero( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + id_ = input.readBytes(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + heroId_ = input.readInt32(); + break; + } + case 24: { + bitField0_ |= 0x00000004; + heroType_ = input.readInt32(); + break; + } + case 32: { + bitField0_ |= 0x00000008; + level_ = input.readInt32(); + break; + } + case 40: { + bitField0_ |= 0x00000010; + star_ = input.readInt32(); + break; + } + case 48: { + bitField0_ |= 0x00000020; + quality_ = input.readInt32(); + break; + } + case 56: { + bitField0_ |= 0x00000040; + hp_ = input.readInt32(); + break; + } + case 64: { + bitField0_ |= 0x00000080; + attack_ = input.readInt32(); + break; + } + case 72: { + bitField0_ |= 0x00000100; + pDefence_ = input.readInt32(); + break; + } + case 80: { + bitField0_ |= 0x00000200; + mDefence_ = input.readInt32(); + break; + } + case 88: { + bitField0_ |= 0x00000400; + speed_ = input.readInt32(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Hero_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Hero_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.ljsd.jieling.protocols.CommonProto.Common.Hero.class, com.ljsd.jieling.protocols.CommonProto.Common.Hero.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Hero parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Hero(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + // optional string id = 1; + public static final int ID_FIELD_NUMBER = 1; + private java.lang.Object id_; + /** + * optional string id = 1; + */ + public boolean hasId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string id = 1; + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + id_ = s; + } + return s; + } + } + /** + * optional string id = 1; + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // optional int32 heroId = 2; + public static final int HEROID_FIELD_NUMBER = 2; + private int heroId_; + /** + * optional int32 heroId = 2; + */ + public boolean hasHeroId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional int32 heroId = 2; + */ + public int getHeroId() { + return heroId_; + } + + // optional int32 heroType = 3; + public static final int HEROTYPE_FIELD_NUMBER = 3; + private int heroType_; + /** + * optional int32 heroType = 3; + */ + public boolean hasHeroType() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional int32 heroType = 3; + */ + public int getHeroType() { + return heroType_; + } + + // optional int32 level = 4; + public static final int LEVEL_FIELD_NUMBER = 4; + private int level_; + /** + * optional int32 level = 4; + */ + public boolean hasLevel() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional int32 level = 4; + */ + public int getLevel() { + return level_; + } + + // optional int32 star = 5; + public static final int STAR_FIELD_NUMBER = 5; + private int star_; + /** + * optional int32 star = 5; + */ + public boolean hasStar() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional int32 star = 5; + */ + public int getStar() { + return star_; + } + + // optional int32 quality = 6; + public static final int QUALITY_FIELD_NUMBER = 6; + private int quality_; + /** + * optional int32 quality = 6; + */ + public boolean hasQuality() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + * optional int32 quality = 6; + */ + public int getQuality() { + return quality_; + } + + // optional int32 hp = 7; + public static final int HP_FIELD_NUMBER = 7; + private int hp_; + /** + * optional int32 hp = 7; + */ + public boolean hasHp() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + /** + * optional int32 hp = 7; + */ + public int getHp() { + return hp_; + } + + // optional int32 attack = 8; + public static final int ATTACK_FIELD_NUMBER = 8; + private int attack_; + /** + * optional int32 attack = 8; + */ + public boolean hasAttack() { + return ((bitField0_ & 0x00000080) == 0x00000080); + } + /** + * optional int32 attack = 8; + */ + public int getAttack() { + return attack_; + } + + // optional int32 pDefence = 9; + public static final int PDEFENCE_FIELD_NUMBER = 9; + private int pDefence_; + /** + * optional int32 pDefence = 9; + */ + public boolean hasPDefence() { + return ((bitField0_ & 0x00000100) == 0x00000100); + } + /** + * optional int32 pDefence = 9; + */ + public int getPDefence() { + return pDefence_; + } + + // optional int32 mDefence = 10; + public static final int MDEFENCE_FIELD_NUMBER = 10; + private int mDefence_; + /** + * optional int32 mDefence = 10; + */ + public boolean hasMDefence() { + return ((bitField0_ & 0x00000200) == 0x00000200); + } + /** + * optional int32 mDefence = 10; + */ + public int getMDefence() { + return mDefence_; + } + + // optional int32 speed = 11; + public static final int SPEED_FIELD_NUMBER = 11; + private int speed_; + /** + * optional int32 speed = 11; + */ + public boolean hasSpeed() { + return ((bitField0_ & 0x00000400) == 0x00000400); + } + /** + * optional int32 speed = 11; + */ + public int getSpeed() { + return speed_; + } + + private void initFields() { + id_ = ""; + heroId_ = 0; + heroType_ = 0; + level_ = 0; + star_ = 0; + quality_ = 0; + hp_ = 0; + attack_ = 0; + pDefence_ = 0; + mDefence_ = 0; + speed_ = 0; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getIdBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeInt32(2, heroId_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeInt32(3, heroType_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeInt32(4, level_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeInt32(5, star_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + output.writeInt32(6, quality_); + } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + output.writeInt32(7, hp_); + } + if (((bitField0_ & 0x00000080) == 0x00000080)) { + output.writeInt32(8, attack_); + } + if (((bitField0_ & 0x00000100) == 0x00000100)) { + output.writeInt32(9, pDefence_); + } + if (((bitField0_ & 0x00000200) == 0x00000200)) { + output.writeInt32(10, mDefence_); + } + if (((bitField0_ & 0x00000400) == 0x00000400)) { + output.writeInt32(11, speed_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, getIdBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, heroId_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, heroType_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, level_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, star_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(6, quality_); + } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(7, hp_); + } + if (((bitField0_ & 0x00000080) == 0x00000080)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(8, attack_); + } + if (((bitField0_ & 0x00000100) == 0x00000100)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(9, pDefence_); + } + if (((bitField0_ & 0x00000200) == 0x00000200)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(10, mDefence_); + } + if (((bitField0_ & 0x00000400) == 0x00000400)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(11, speed_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static com.ljsd.jieling.protocols.CommonProto.Common.Hero parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Hero parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Hero parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Hero parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Hero parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Hero parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Hero parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Hero parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Hero parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Hero parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(com.ljsd.jieling.protocols.CommonProto.Common.Hero prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code com.ljsd.jieling.protocols.Common.Hero} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements com.ljsd.jieling.protocols.CommonProto.Common.HeroOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Hero_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Hero_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.ljsd.jieling.protocols.CommonProto.Common.Hero.class, com.ljsd.jieling.protocols.CommonProto.Common.Hero.Builder.class); + } + + // Construct using com.ljsd.jieling.protocols.CommonProto.Common.Hero.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + id_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + heroId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + heroType_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + level_ = 0; + bitField0_ = (bitField0_ & ~0x00000008); + star_ = 0; + bitField0_ = (bitField0_ & ~0x00000010); + quality_ = 0; + bitField0_ = (bitField0_ & ~0x00000020); + hp_ = 0; + bitField0_ = (bitField0_ & ~0x00000040); + attack_ = 0; + bitField0_ = (bitField0_ & ~0x00000080); + pDefence_ = 0; + bitField0_ = (bitField0_ & ~0x00000100); + mDefence_ = 0; + bitField0_ = (bitField0_ & ~0x00000200); + speed_ = 0; + bitField0_ = (bitField0_ & ~0x00000400); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Hero_descriptor; + } + + public com.ljsd.jieling.protocols.CommonProto.Common.Hero getDefaultInstanceForType() { + return com.ljsd.jieling.protocols.CommonProto.Common.Hero.getDefaultInstance(); + } + + public com.ljsd.jieling.protocols.CommonProto.Common.Hero build() { + com.ljsd.jieling.protocols.CommonProto.Common.Hero result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.ljsd.jieling.protocols.CommonProto.Common.Hero buildPartial() { + com.ljsd.jieling.protocols.CommonProto.Common.Hero result = new com.ljsd.jieling.protocols.CommonProto.Common.Hero(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.id_ = id_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.heroId_ = heroId_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.heroType_ = heroType_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.level_ = level_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000010; + } + result.star_ = star_; + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000020; + } + result.quality_ = quality_; + if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + to_bitField0_ |= 0x00000040; + } + result.hp_ = hp_; + if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + to_bitField0_ |= 0x00000080; + } + result.attack_ = attack_; + if (((from_bitField0_ & 0x00000100) == 0x00000100)) { + to_bitField0_ |= 0x00000100; + } + result.pDefence_ = pDefence_; + if (((from_bitField0_ & 0x00000200) == 0x00000200)) { + to_bitField0_ |= 0x00000200; + } + result.mDefence_ = mDefence_; + if (((from_bitField0_ & 0x00000400) == 0x00000400)) { + to_bitField0_ |= 0x00000400; + } + result.speed_ = speed_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.ljsd.jieling.protocols.CommonProto.Common.Hero) { + return mergeFrom((com.ljsd.jieling.protocols.CommonProto.Common.Hero)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.ljsd.jieling.protocols.CommonProto.Common.Hero other) { + if (other == com.ljsd.jieling.protocols.CommonProto.Common.Hero.getDefaultInstance()) return this; + if (other.hasId()) { + bitField0_ |= 0x00000001; + id_ = other.id_; + onChanged(); + } + if (other.hasHeroId()) { + setHeroId(other.getHeroId()); + } + if (other.hasHeroType()) { + setHeroType(other.getHeroType()); + } + if (other.hasLevel()) { + setLevel(other.getLevel()); + } + if (other.hasStar()) { + setStar(other.getStar()); + } + if (other.hasQuality()) { + setQuality(other.getQuality()); + } + if (other.hasHp()) { + setHp(other.getHp()); + } + if (other.hasAttack()) { + setAttack(other.getAttack()); + } + if (other.hasPDefence()) { + setPDefence(other.getPDefence()); + } + if (other.hasMDefence()) { + setMDefence(other.getMDefence()); + } + if (other.hasSpeed()) { + setSpeed(other.getSpeed()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.ljsd.jieling.protocols.CommonProto.Common.Hero parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.ljsd.jieling.protocols.CommonProto.Common.Hero) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // optional string id = 1; + private java.lang.Object id_ = ""; + /** + * optional string id = 1; + */ + public boolean hasId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string id = 1; + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string id = 1; + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string id = 1; + */ + public Builder setId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + id_ = value; + onChanged(); + return this; + } + /** + * optional string id = 1; + */ + public Builder clearId() { + bitField0_ = (bitField0_ & ~0x00000001); + id_ = getDefaultInstance().getId(); + onChanged(); + return this; + } + /** + * optional string id = 1; + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + id_ = value; + onChanged(); + return this; + } + + // optional int32 heroId = 2; + private int heroId_ ; + /** + * optional int32 heroId = 2; + */ + public boolean hasHeroId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional int32 heroId = 2; + */ + public int getHeroId() { + return heroId_; + } + /** + * optional int32 heroId = 2; + */ + public Builder setHeroId(int value) { + bitField0_ |= 0x00000002; + heroId_ = value; + onChanged(); + return this; + } + /** + * optional int32 heroId = 2; + */ + public Builder clearHeroId() { + bitField0_ = (bitField0_ & ~0x00000002); + heroId_ = 0; + onChanged(); + return this; + } + + // optional int32 heroType = 3; + private int heroType_ ; + /** + * optional int32 heroType = 3; + */ + public boolean hasHeroType() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional int32 heroType = 3; + */ + public int getHeroType() { + return heroType_; + } + /** + * optional int32 heroType = 3; + */ + public Builder setHeroType(int value) { + bitField0_ |= 0x00000004; + heroType_ = value; + onChanged(); + return this; + } + /** + * optional int32 heroType = 3; + */ + public Builder clearHeroType() { + bitField0_ = (bitField0_ & ~0x00000004); + heroType_ = 0; + onChanged(); + return this; + } + + // optional int32 level = 4; + private int level_ ; + /** + * optional int32 level = 4; + */ + public boolean hasLevel() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional int32 level = 4; + */ + public int getLevel() { + return level_; + } + /** + * optional int32 level = 4; + */ + public Builder setLevel(int value) { + bitField0_ |= 0x00000008; + level_ = value; + onChanged(); + return this; + } + /** + * optional int32 level = 4; + */ + public Builder clearLevel() { + bitField0_ = (bitField0_ & ~0x00000008); + level_ = 0; + onChanged(); + return this; + } + + // optional int32 star = 5; + private int star_ ; + /** + * optional int32 star = 5; + */ + public boolean hasStar() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional int32 star = 5; + */ + public int getStar() { + return star_; + } + /** + * optional int32 star = 5; + */ + public Builder setStar(int value) { + bitField0_ |= 0x00000010; + star_ = value; + onChanged(); + return this; + } + /** + * optional int32 star = 5; + */ + public Builder clearStar() { + bitField0_ = (bitField0_ & ~0x00000010); + star_ = 0; + onChanged(); + return this; + } + + // optional int32 quality = 6; + private int quality_ ; + /** + * optional int32 quality = 6; + */ + public boolean hasQuality() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + * optional int32 quality = 6; + */ + public int getQuality() { + return quality_; + } + /** + * optional int32 quality = 6; + */ + public Builder setQuality(int value) { + bitField0_ |= 0x00000020; + quality_ = value; + onChanged(); + return this; + } + /** + * optional int32 quality = 6; + */ + public Builder clearQuality() { + bitField0_ = (bitField0_ & ~0x00000020); + quality_ = 0; + onChanged(); + return this; + } + + // optional int32 hp = 7; + private int hp_ ; + /** + * optional int32 hp = 7; + */ + public boolean hasHp() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + /** + * optional int32 hp = 7; + */ + public int getHp() { + return hp_; + } + /** + * optional int32 hp = 7; + */ + public Builder setHp(int value) { + bitField0_ |= 0x00000040; + hp_ = value; + onChanged(); + return this; + } + /** + * optional int32 hp = 7; + */ + public Builder clearHp() { + bitField0_ = (bitField0_ & ~0x00000040); + hp_ = 0; + onChanged(); + return this; + } + + // optional int32 attack = 8; + private int attack_ ; + /** + * optional int32 attack = 8; + */ + public boolean hasAttack() { + return ((bitField0_ & 0x00000080) == 0x00000080); + } + /** + * optional int32 attack = 8; + */ + public int getAttack() { + return attack_; + } + /** + * optional int32 attack = 8; + */ + public Builder setAttack(int value) { + bitField0_ |= 0x00000080; + attack_ = value; + onChanged(); + return this; + } + /** + * optional int32 attack = 8; + */ + public Builder clearAttack() { + bitField0_ = (bitField0_ & ~0x00000080); + attack_ = 0; + onChanged(); + return this; + } + + // optional int32 pDefence = 9; + private int pDefence_ ; + /** + * optional int32 pDefence = 9; + */ + public boolean hasPDefence() { + return ((bitField0_ & 0x00000100) == 0x00000100); + } + /** + * optional int32 pDefence = 9; + */ + public int getPDefence() { + return pDefence_; + } + /** + * optional int32 pDefence = 9; + */ + public Builder setPDefence(int value) { + bitField0_ |= 0x00000100; + pDefence_ = value; + onChanged(); + return this; + } + /** + * optional int32 pDefence = 9; + */ + public Builder clearPDefence() { + bitField0_ = (bitField0_ & ~0x00000100); + pDefence_ = 0; + onChanged(); + return this; + } + + // optional int32 mDefence = 10; + private int mDefence_ ; + /** + * optional int32 mDefence = 10; + */ + public boolean hasMDefence() { + return ((bitField0_ & 0x00000200) == 0x00000200); + } + /** + * optional int32 mDefence = 10; + */ + public int getMDefence() { + return mDefence_; + } + /** + * optional int32 mDefence = 10; + */ + public Builder setMDefence(int value) { + bitField0_ |= 0x00000200; + mDefence_ = value; + onChanged(); + return this; + } + /** + * optional int32 mDefence = 10; + */ + public Builder clearMDefence() { + bitField0_ = (bitField0_ & ~0x00000200); + mDefence_ = 0; + onChanged(); + return this; + } + + // optional int32 speed = 11; + private int speed_ ; + /** + * optional int32 speed = 11; + */ + public boolean hasSpeed() { + return ((bitField0_ & 0x00000400) == 0x00000400); + } + /** + * optional int32 speed = 11; + */ + public int getSpeed() { + return speed_; + } + /** + * optional int32 speed = 11; + */ + public Builder setSpeed(int value) { + bitField0_ |= 0x00000400; + speed_ = value; + onChanged(); + return this; + } + /** + * optional int32 speed = 11; + */ + public Builder clearSpeed() { + bitField0_ = (bitField0_ & ~0x00000400); + speed_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:com.ljsd.jieling.protocols.Common.Hero) + } + + static { + defaultInstance = new Hero(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:com.ljsd.jieling.protocols.Common.Hero) + } + + public interface SkillOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional string id = 1; + /** + * optional string id = 1; + */ + boolean hasId(); + /** + * optional string id = 1; + */ + java.lang.String getId(); + /** + * optional string id = 1; + */ + com.google.protobuf.ByteString + getIdBytes(); + + // optional int32 skillId = 2; + /** + * optional int32 skillId = 2; + */ + boolean hasSkillId(); + /** + * optional int32 skillId = 2; + */ + int getSkillId(); + + // optional int32 skillType = 3; + /** + * optional int32 skillType = 3; + */ + boolean hasSkillType(); + /** + * optional int32 skillType = 3; + */ + int getSkillType(); + + // optional int32 level = 4; + /** + * optional int32 level = 4; + */ + boolean hasLevel(); + /** + * optional int32 level = 4; + */ + int getLevel(); + + // optional int32 star = 5; + /** + * optional int32 star = 5; + */ + boolean hasStar(); + /** + * optional int32 star = 5; + */ + int getStar(); + + // optional int32 cd = 6; + /** + * optional int32 cd = 6; + */ + boolean hasCd(); + /** + * optional int32 cd = 6; + */ + int getCd(); + + // repeated int32 effectId = 7; + /** + * repeated int32 effectId = 7; + */ + java.util.List getEffectIdList(); + /** + * repeated int32 effectId = 7; + */ + int getEffectIdCount(); + /** + * repeated int32 effectId = 7; + */ + int getEffectId(int index); + } + /** + * Protobuf type {@code com.ljsd.jieling.protocols.Common.Skill} + */ + public static final class Skill extends + com.google.protobuf.GeneratedMessage + implements SkillOrBuilder { + // Use Skill.newBuilder() to construct. + private Skill(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private Skill(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final Skill defaultInstance; + public static Skill getDefaultInstance() { + return defaultInstance; + } + + public Skill getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Skill( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + id_ = input.readBytes(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + skillId_ = input.readInt32(); + break; + } + case 24: { + bitField0_ |= 0x00000004; + skillType_ = input.readInt32(); + break; + } + case 32: { + bitField0_ |= 0x00000008; + level_ = input.readInt32(); + break; + } + case 40: { + bitField0_ |= 0x00000010; + star_ = input.readInt32(); + break; + } + case 48: { + bitField0_ |= 0x00000020; + cd_ = input.readInt32(); + break; + } + case 56: { + if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { + effectId_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000040; + } + effectId_.add(input.readInt32()); + break; + } + case 58: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000040) == 0x00000040) && input.getBytesUntilLimit() > 0) { + effectId_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000040; + } + while (input.getBytesUntilLimit() > 0) { + effectId_.add(input.readInt32()); + } + input.popLimit(limit); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { + effectId_ = java.util.Collections.unmodifiableList(effectId_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Skill_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Skill_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.ljsd.jieling.protocols.CommonProto.Common.Skill.class, com.ljsd.jieling.protocols.CommonProto.Common.Skill.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Skill parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Skill(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + // optional string id = 1; + public static final int ID_FIELD_NUMBER = 1; + private java.lang.Object id_; + /** + * optional string id = 1; + */ + public boolean hasId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string id = 1; + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + id_ = s; + } + return s; + } + } + /** + * optional string id = 1; + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // optional int32 skillId = 2; + public static final int SKILLID_FIELD_NUMBER = 2; + private int skillId_; + /** + * optional int32 skillId = 2; + */ + public boolean hasSkillId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional int32 skillId = 2; + */ + public int getSkillId() { + return skillId_; + } + + // optional int32 skillType = 3; + public static final int SKILLTYPE_FIELD_NUMBER = 3; + private int skillType_; + /** + * optional int32 skillType = 3; + */ + public boolean hasSkillType() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional int32 skillType = 3; + */ + public int getSkillType() { + return skillType_; + } + + // optional int32 level = 4; + public static final int LEVEL_FIELD_NUMBER = 4; + private int level_; + /** + * optional int32 level = 4; + */ + public boolean hasLevel() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional int32 level = 4; + */ + public int getLevel() { + return level_; + } + + // optional int32 star = 5; + public static final int STAR_FIELD_NUMBER = 5; + private int star_; + /** + * optional int32 star = 5; + */ + public boolean hasStar() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional int32 star = 5; + */ + public int getStar() { + return star_; + } + + // optional int32 cd = 6; + public static final int CD_FIELD_NUMBER = 6; + private int cd_; + /** + * optional int32 cd = 6; + */ + public boolean hasCd() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + * optional int32 cd = 6; + */ + public int getCd() { + return cd_; + } + + // repeated int32 effectId = 7; + public static final int EFFECTID_FIELD_NUMBER = 7; + private java.util.List effectId_; + /** + * repeated int32 effectId = 7; + */ + public java.util.List + getEffectIdList() { + return effectId_; + } + /** + * repeated int32 effectId = 7; + */ + public int getEffectIdCount() { + return effectId_.size(); + } + /** + * repeated int32 effectId = 7; + */ + public int getEffectId(int index) { + return effectId_.get(index); + } + + private void initFields() { + id_ = ""; + skillId_ = 0; + skillType_ = 0; + level_ = 0; + star_ = 0; + cd_ = 0; + effectId_ = java.util.Collections.emptyList(); + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getIdBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeInt32(2, skillId_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeInt32(3, skillType_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeInt32(4, level_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeInt32(5, star_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + output.writeInt32(6, cd_); + } + for (int i = 0; i < effectId_.size(); i++) { + output.writeInt32(7, effectId_.get(i)); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, getIdBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, skillId_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, skillType_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, level_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, star_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(6, cd_); + } + { + int dataSize = 0; + for (int i = 0; i < effectId_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(effectId_.get(i)); + } + size += dataSize; + size += 1 * getEffectIdList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static com.ljsd.jieling.protocols.CommonProto.Common.Skill parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Skill parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Skill parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Skill parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Skill parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Skill parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Skill parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Skill parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Skill parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Skill parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(com.ljsd.jieling.protocols.CommonProto.Common.Skill prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code com.ljsd.jieling.protocols.Common.Skill} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements com.ljsd.jieling.protocols.CommonProto.Common.SkillOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Skill_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Skill_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.ljsd.jieling.protocols.CommonProto.Common.Skill.class, com.ljsd.jieling.protocols.CommonProto.Common.Skill.Builder.class); + } + + // Construct using com.ljsd.jieling.protocols.CommonProto.Common.Skill.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + id_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + skillId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + skillType_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + level_ = 0; + bitField0_ = (bitField0_ & ~0x00000008); + star_ = 0; + bitField0_ = (bitField0_ & ~0x00000010); + cd_ = 0; + bitField0_ = (bitField0_ & ~0x00000020); + effectId_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Skill_descriptor; + } + + public com.ljsd.jieling.protocols.CommonProto.Common.Skill getDefaultInstanceForType() { + return com.ljsd.jieling.protocols.CommonProto.Common.Skill.getDefaultInstance(); + } + + public com.ljsd.jieling.protocols.CommonProto.Common.Skill build() { + com.ljsd.jieling.protocols.CommonProto.Common.Skill result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.ljsd.jieling.protocols.CommonProto.Common.Skill buildPartial() { + com.ljsd.jieling.protocols.CommonProto.Common.Skill result = new com.ljsd.jieling.protocols.CommonProto.Common.Skill(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.id_ = id_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.skillId_ = skillId_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.skillType_ = skillType_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.level_ = level_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000010; + } + result.star_ = star_; + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000020; + } + result.cd_ = cd_; + if (((bitField0_ & 0x00000040) == 0x00000040)) { + effectId_ = java.util.Collections.unmodifiableList(effectId_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.effectId_ = effectId_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.ljsd.jieling.protocols.CommonProto.Common.Skill) { + return mergeFrom((com.ljsd.jieling.protocols.CommonProto.Common.Skill)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.ljsd.jieling.protocols.CommonProto.Common.Skill other) { + if (other == com.ljsd.jieling.protocols.CommonProto.Common.Skill.getDefaultInstance()) return this; + if (other.hasId()) { + bitField0_ |= 0x00000001; + id_ = other.id_; + onChanged(); + } + if (other.hasSkillId()) { + setSkillId(other.getSkillId()); + } + if (other.hasSkillType()) { + setSkillType(other.getSkillType()); + } + if (other.hasLevel()) { + setLevel(other.getLevel()); + } + if (other.hasStar()) { + setStar(other.getStar()); + } + if (other.hasCd()) { + setCd(other.getCd()); + } + if (!other.effectId_.isEmpty()) { + if (effectId_.isEmpty()) { + effectId_ = other.effectId_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureEffectIdIsMutable(); + effectId_.addAll(other.effectId_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.ljsd.jieling.protocols.CommonProto.Common.Skill parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.ljsd.jieling.protocols.CommonProto.Common.Skill) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // optional string id = 1; + private java.lang.Object id_ = ""; + /** + * optional string id = 1; + */ + public boolean hasId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string id = 1; + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string id = 1; + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string id = 1; + */ + public Builder setId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + id_ = value; + onChanged(); + return this; + } + /** + * optional string id = 1; + */ + public Builder clearId() { + bitField0_ = (bitField0_ & ~0x00000001); + id_ = getDefaultInstance().getId(); + onChanged(); + return this; + } + /** + * optional string id = 1; + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + id_ = value; + onChanged(); + return this; + } + + // optional int32 skillId = 2; + private int skillId_ ; + /** + * optional int32 skillId = 2; + */ + public boolean hasSkillId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional int32 skillId = 2; + */ + public int getSkillId() { + return skillId_; + } + /** + * optional int32 skillId = 2; + */ + public Builder setSkillId(int value) { + bitField0_ |= 0x00000002; + skillId_ = value; + onChanged(); + return this; + } + /** + * optional int32 skillId = 2; + */ + public Builder clearSkillId() { + bitField0_ = (bitField0_ & ~0x00000002); + skillId_ = 0; + onChanged(); + return this; + } + + // optional int32 skillType = 3; + private int skillType_ ; + /** + * optional int32 skillType = 3; + */ + public boolean hasSkillType() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional int32 skillType = 3; + */ + public int getSkillType() { + return skillType_; + } + /** + * optional int32 skillType = 3; + */ + public Builder setSkillType(int value) { + bitField0_ |= 0x00000004; + skillType_ = value; + onChanged(); + return this; + } + /** + * optional int32 skillType = 3; + */ + public Builder clearSkillType() { + bitField0_ = (bitField0_ & ~0x00000004); + skillType_ = 0; + onChanged(); + return this; + } + + // optional int32 level = 4; + private int level_ ; + /** + * optional int32 level = 4; + */ + public boolean hasLevel() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional int32 level = 4; + */ + public int getLevel() { + return level_; + } + /** + * optional int32 level = 4; + */ + public Builder setLevel(int value) { + bitField0_ |= 0x00000008; + level_ = value; + onChanged(); + return this; + } + /** + * optional int32 level = 4; + */ + public Builder clearLevel() { + bitField0_ = (bitField0_ & ~0x00000008); + level_ = 0; + onChanged(); + return this; + } + + // optional int32 star = 5; + private int star_ ; + /** + * optional int32 star = 5; + */ + public boolean hasStar() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + * optional int32 star = 5; + */ + public int getStar() { + return star_; + } + /** + * optional int32 star = 5; + */ + public Builder setStar(int value) { + bitField0_ |= 0x00000010; + star_ = value; + onChanged(); + return this; + } + /** + * optional int32 star = 5; + */ + public Builder clearStar() { + bitField0_ = (bitField0_ & ~0x00000010); + star_ = 0; + onChanged(); + return this; + } + + // optional int32 cd = 6; + private int cd_ ; + /** + * optional int32 cd = 6; + */ + public boolean hasCd() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + * optional int32 cd = 6; + */ + public int getCd() { + return cd_; + } + /** + * optional int32 cd = 6; + */ + public Builder setCd(int value) { + bitField0_ |= 0x00000020; + cd_ = value; + onChanged(); + return this; + } + /** + * optional int32 cd = 6; + */ + public Builder clearCd() { + bitField0_ = (bitField0_ & ~0x00000020); + cd_ = 0; + onChanged(); + return this; + } + + // repeated int32 effectId = 7; + private java.util.List effectId_ = java.util.Collections.emptyList(); + private void ensureEffectIdIsMutable() { + if (!((bitField0_ & 0x00000040) == 0x00000040)) { + effectId_ = new java.util.ArrayList(effectId_); + bitField0_ |= 0x00000040; + } + } + /** + * repeated int32 effectId = 7; + */ + public java.util.List + getEffectIdList() { + return java.util.Collections.unmodifiableList(effectId_); + } + /** + * repeated int32 effectId = 7; + */ + public int getEffectIdCount() { + return effectId_.size(); + } + /** + * repeated int32 effectId = 7; + */ + public int getEffectId(int index) { + return effectId_.get(index); + } + /** + * repeated int32 effectId = 7; + */ + public Builder setEffectId( + int index, int value) { + ensureEffectIdIsMutable(); + effectId_.set(index, value); + onChanged(); + return this; + } + /** + * repeated int32 effectId = 7; + */ + public Builder addEffectId(int value) { + ensureEffectIdIsMutable(); + effectId_.add(value); + onChanged(); + return this; + } + /** + * repeated int32 effectId = 7; + */ + public Builder addAllEffectId( + java.lang.Iterable values) { + ensureEffectIdIsMutable(); + super.addAll(values, effectId_); + onChanged(); + return this; + } + /** + * repeated int32 effectId = 7; + */ + public Builder clearEffectId() { + effectId_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:com.ljsd.jieling.protocols.Common.Skill) + } + + static { + defaultInstance = new Skill(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:com.ljsd.jieling.protocols.Common.Skill) + } + + public interface MailOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional string id = 1; + /** + * optional string id = 1; + */ + boolean hasId(); + /** + * optional string id = 1; + */ + java.lang.String getId(); + /** + * optional string id = 1; + */ + com.google.protobuf.ByteString + getIdBytes(); + + // optional int32 itemId = 2; + /** + * optional int32 itemId = 2; + */ + boolean hasItemId(); + /** + * optional int32 itemId = 2; + */ + int getItemId(); + } + /** + * Protobuf type {@code com.ljsd.jieling.protocols.Common.Mail} + */ + public static final class Mail extends + com.google.protobuf.GeneratedMessage + implements MailOrBuilder { + // Use Mail.newBuilder() to construct. + private Mail(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private Mail(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final Mail defaultInstance; + public static Mail getDefaultInstance() { + return defaultInstance; + } + + public Mail getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Mail( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + id_ = input.readBytes(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + itemId_ = input.readInt32(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Mail_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Mail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.ljsd.jieling.protocols.CommonProto.Common.Mail.class, com.ljsd.jieling.protocols.CommonProto.Common.Mail.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Mail parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Mail(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + // optional string id = 1; + public static final int ID_FIELD_NUMBER = 1; + private java.lang.Object id_; + /** + * optional string id = 1; + */ + public boolean hasId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string id = 1; + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + id_ = s; + } + return s; + } + } + /** + * optional string id = 1; + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // optional int32 itemId = 2; + public static final int ITEMID_FIELD_NUMBER = 2; + private int itemId_; + /** + * optional int32 itemId = 2; + */ + public boolean hasItemId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional int32 itemId = 2; + */ + public int getItemId() { + return itemId_; + } + + private void initFields() { + id_ = ""; + itemId_ = 0; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getIdBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeInt32(2, itemId_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, getIdBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, itemId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static com.ljsd.jieling.protocols.CommonProto.Common.Mail parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Mail parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Mail parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Mail parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Mail parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Mail parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Mail parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Mail parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Mail parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Mail parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(com.ljsd.jieling.protocols.CommonProto.Common.Mail prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code com.ljsd.jieling.protocols.Common.Mail} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements com.ljsd.jieling.protocols.CommonProto.Common.MailOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Mail_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Mail_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.ljsd.jieling.protocols.CommonProto.Common.Mail.class, com.ljsd.jieling.protocols.CommonProto.Common.Mail.Builder.class); + } + + // Construct using com.ljsd.jieling.protocols.CommonProto.Common.Mail.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + id_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + itemId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Mail_descriptor; + } + + public com.ljsd.jieling.protocols.CommonProto.Common.Mail getDefaultInstanceForType() { + return com.ljsd.jieling.protocols.CommonProto.Common.Mail.getDefaultInstance(); + } + + public com.ljsd.jieling.protocols.CommonProto.Common.Mail build() { + com.ljsd.jieling.protocols.CommonProto.Common.Mail result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.ljsd.jieling.protocols.CommonProto.Common.Mail buildPartial() { + com.ljsd.jieling.protocols.CommonProto.Common.Mail result = new com.ljsd.jieling.protocols.CommonProto.Common.Mail(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.id_ = id_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.itemId_ = itemId_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.ljsd.jieling.protocols.CommonProto.Common.Mail) { + return mergeFrom((com.ljsd.jieling.protocols.CommonProto.Common.Mail)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.ljsd.jieling.protocols.CommonProto.Common.Mail other) { + if (other == com.ljsd.jieling.protocols.CommonProto.Common.Mail.getDefaultInstance()) return this; + if (other.hasId()) { + bitField0_ |= 0x00000001; + id_ = other.id_; + onChanged(); + } + if (other.hasItemId()) { + setItemId(other.getItemId()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.ljsd.jieling.protocols.CommonProto.Common.Mail parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.ljsd.jieling.protocols.CommonProto.Common.Mail) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // optional string id = 1; + private java.lang.Object id_ = ""; + /** + * optional string id = 1; + */ + public boolean hasId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string id = 1; + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string id = 1; + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string id = 1; + */ + public Builder setId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + id_ = value; + onChanged(); + return this; + } + /** + * optional string id = 1; + */ + public Builder clearId() { + bitField0_ = (bitField0_ & ~0x00000001); + id_ = getDefaultInstance().getId(); + onChanged(); + return this; + } + /** + * optional string id = 1; + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + id_ = value; + onChanged(); + return this; + } + + // optional int32 itemId = 2; + private int itemId_ ; + /** + * optional int32 itemId = 2; + */ + public boolean hasItemId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional int32 itemId = 2; + */ + public int getItemId() { + return itemId_; + } + /** + * optional int32 itemId = 2; + */ + public Builder setItemId(int value) { + bitField0_ |= 0x00000002; + itemId_ = value; + onChanged(); + return this; + } + /** + * optional int32 itemId = 2; + */ + public Builder clearItemId() { + bitField0_ = (bitField0_ & ~0x00000002); + itemId_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:com.ljsd.jieling.protocols.Common.Mail) + } + + static { + defaultInstance = new Mail(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:com.ljsd.jieling.protocols.Common.Mail) + } + + public interface MapOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional int32 mapId = 1; + /** + * optional int32 mapId = 1; + */ + boolean hasMapId(); + /** + * optional int32 mapId = 1; + */ + int getMapId(); + + // repeated .com.ljsd.jieling.protocols.Common.Cell cellList = 2; + /** + * repeated .com.ljsd.jieling.protocols.Common.Cell cellList = 2; + */ + java.util.List + getCellListList(); + /** + * repeated .com.ljsd.jieling.protocols.Common.Cell cellList = 2; + */ + com.ljsd.jieling.protocols.CommonProto.Common.Cell getCellList(int index); + /** + * repeated .com.ljsd.jieling.protocols.Common.Cell cellList = 2; + */ + int getCellListCount(); + /** + * repeated .com.ljsd.jieling.protocols.Common.Cell cellList = 2; + */ + java.util.List + getCellListOrBuilderList(); + /** + * repeated .com.ljsd.jieling.protocols.Common.Cell cellList = 2; + */ + com.ljsd.jieling.protocols.CommonProto.Common.CellOrBuilder getCellListOrBuilder( + int index); + } + /** + * Protobuf type {@code com.ljsd.jieling.protocols.Common.Map} + */ + public static final class Map extends + com.google.protobuf.GeneratedMessage + implements MapOrBuilder { + // Use Map.newBuilder() to construct. + private Map(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private Map(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final Map defaultInstance; + public static Map getDefaultInstance() { + return defaultInstance; + } + + public Map getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Map( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + mapId_ = input.readInt32(); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + cellList_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + cellList_.add(input.readMessage(com.ljsd.jieling.protocols.CommonProto.Common.Cell.PARSER, extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + cellList_ = java.util.Collections.unmodifiableList(cellList_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Map_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Map_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.ljsd.jieling.protocols.CommonProto.Common.Map.class, com.ljsd.jieling.protocols.CommonProto.Common.Map.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Map parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Map(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + // optional int32 mapId = 1; + public static final int MAPID_FIELD_NUMBER = 1; + private int mapId_; + /** + * optional int32 mapId = 1; + */ + public boolean hasMapId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional int32 mapId = 1; + */ + public int getMapId() { + return mapId_; + } + + // repeated .com.ljsd.jieling.protocols.Common.Cell cellList = 2; + public static final int CELLLIST_FIELD_NUMBER = 2; + private java.util.List cellList_; + /** + * repeated .com.ljsd.jieling.protocols.Common.Cell cellList = 2; + */ + public java.util.List getCellListList() { + return cellList_; + } + /** + * repeated .com.ljsd.jieling.protocols.Common.Cell cellList = 2; + */ + public java.util.List + getCellListOrBuilderList() { + return cellList_; + } + /** + * repeated .com.ljsd.jieling.protocols.Common.Cell cellList = 2; + */ + public int getCellListCount() { + return cellList_.size(); + } + /** + * repeated .com.ljsd.jieling.protocols.Common.Cell cellList = 2; + */ + public com.ljsd.jieling.protocols.CommonProto.Common.Cell getCellList(int index) { + return cellList_.get(index); + } + /** + * repeated .com.ljsd.jieling.protocols.Common.Cell cellList = 2; + */ + public com.ljsd.jieling.protocols.CommonProto.Common.CellOrBuilder getCellListOrBuilder( + int index) { + return cellList_.get(index); + } + + private void initFields() { + mapId_ = 0; + cellList_ = java.util.Collections.emptyList(); + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeInt32(1, mapId_); + } + for (int i = 0; i < cellList_.size(); i++) { + output.writeMessage(2, cellList_.get(i)); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, mapId_); + } + for (int i = 0; i < cellList_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, cellList_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static com.ljsd.jieling.protocols.CommonProto.Common.Map parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Map parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Map parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Map parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Map parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Map parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Map parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Map parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Map parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Map parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(com.ljsd.jieling.protocols.CommonProto.Common.Map prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code com.ljsd.jieling.protocols.Common.Map} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements com.ljsd.jieling.protocols.CommonProto.Common.MapOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Map_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Map_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.ljsd.jieling.protocols.CommonProto.Common.Map.class, com.ljsd.jieling.protocols.CommonProto.Common.Map.Builder.class); + } + + // Construct using com.ljsd.jieling.protocols.CommonProto.Common.Map.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getCellListFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + mapId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + if (cellListBuilder_ == null) { + cellList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + cellListBuilder_.clear(); + } + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Map_descriptor; + } + + public com.ljsd.jieling.protocols.CommonProto.Common.Map getDefaultInstanceForType() { + return com.ljsd.jieling.protocols.CommonProto.Common.Map.getDefaultInstance(); + } + + public com.ljsd.jieling.protocols.CommonProto.Common.Map build() { + com.ljsd.jieling.protocols.CommonProto.Common.Map result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.ljsd.jieling.protocols.CommonProto.Common.Map buildPartial() { + com.ljsd.jieling.protocols.CommonProto.Common.Map result = new com.ljsd.jieling.protocols.CommonProto.Common.Map(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.mapId_ = mapId_; + if (cellListBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + cellList_ = java.util.Collections.unmodifiableList(cellList_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.cellList_ = cellList_; + } else { + result.cellList_ = cellListBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.ljsd.jieling.protocols.CommonProto.Common.Map) { + return mergeFrom((com.ljsd.jieling.protocols.CommonProto.Common.Map)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.ljsd.jieling.protocols.CommonProto.Common.Map other) { + if (other == com.ljsd.jieling.protocols.CommonProto.Common.Map.getDefaultInstance()) return this; + if (other.hasMapId()) { + setMapId(other.getMapId()); + } + if (cellListBuilder_ == null) { + if (!other.cellList_.isEmpty()) { + if (cellList_.isEmpty()) { + cellList_ = other.cellList_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureCellListIsMutable(); + cellList_.addAll(other.cellList_); + } + onChanged(); + } + } else { + if (!other.cellList_.isEmpty()) { + if (cellListBuilder_.isEmpty()) { + cellListBuilder_.dispose(); + cellListBuilder_ = null; + cellList_ = other.cellList_; + bitField0_ = (bitField0_ & ~0x00000002); + cellListBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getCellListFieldBuilder() : null; + } else { + cellListBuilder_.addAllMessages(other.cellList_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.ljsd.jieling.protocols.CommonProto.Common.Map parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.ljsd.jieling.protocols.CommonProto.Common.Map) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // optional int32 mapId = 1; + private int mapId_ ; + /** + * optional int32 mapId = 1; + */ + public boolean hasMapId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional int32 mapId = 1; + */ + public int getMapId() { + return mapId_; + } + /** + * optional int32 mapId = 1; + */ + public Builder setMapId(int value) { + bitField0_ |= 0x00000001; + mapId_ = value; + onChanged(); + return this; + } + /** + * optional int32 mapId = 1; + */ + public Builder clearMapId() { + bitField0_ = (bitField0_ & ~0x00000001); + mapId_ = 0; + onChanged(); + return this; + } + + // repeated .com.ljsd.jieling.protocols.Common.Cell cellList = 2; + private java.util.List cellList_ = + java.util.Collections.emptyList(); + private void ensureCellListIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + cellList_ = new java.util.ArrayList(cellList_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.ljsd.jieling.protocols.CommonProto.Common.Cell, com.ljsd.jieling.protocols.CommonProto.Common.Cell.Builder, com.ljsd.jieling.protocols.CommonProto.Common.CellOrBuilder> cellListBuilder_; + + /** + * repeated .com.ljsd.jieling.protocols.Common.Cell cellList = 2; + */ + public java.util.List getCellListList() { + if (cellListBuilder_ == null) { + return java.util.Collections.unmodifiableList(cellList_); + } else { + return cellListBuilder_.getMessageList(); + } + } + /** + * repeated .com.ljsd.jieling.protocols.Common.Cell cellList = 2; + */ + public int getCellListCount() { + if (cellListBuilder_ == null) { + return cellList_.size(); + } else { + return cellListBuilder_.getCount(); + } + } + /** + * repeated .com.ljsd.jieling.protocols.Common.Cell cellList = 2; + */ + public com.ljsd.jieling.protocols.CommonProto.Common.Cell getCellList(int index) { + if (cellListBuilder_ == null) { + return cellList_.get(index); + } else { + return cellListBuilder_.getMessage(index); + } + } + /** + * repeated .com.ljsd.jieling.protocols.Common.Cell cellList = 2; + */ + public Builder setCellList( + int index, com.ljsd.jieling.protocols.CommonProto.Common.Cell value) { + if (cellListBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCellListIsMutable(); + cellList_.set(index, value); + onChanged(); + } else { + cellListBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .com.ljsd.jieling.protocols.Common.Cell cellList = 2; + */ + public Builder setCellList( + int index, com.ljsd.jieling.protocols.CommonProto.Common.Cell.Builder builderForValue) { + if (cellListBuilder_ == null) { + ensureCellListIsMutable(); + cellList_.set(index, builderForValue.build()); + onChanged(); + } else { + cellListBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .com.ljsd.jieling.protocols.Common.Cell cellList = 2; + */ + public Builder addCellList(com.ljsd.jieling.protocols.CommonProto.Common.Cell value) { + if (cellListBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCellListIsMutable(); + cellList_.add(value); + onChanged(); + } else { + cellListBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .com.ljsd.jieling.protocols.Common.Cell cellList = 2; + */ + public Builder addCellList( + int index, com.ljsd.jieling.protocols.CommonProto.Common.Cell value) { + if (cellListBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCellListIsMutable(); + cellList_.add(index, value); + onChanged(); + } else { + cellListBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .com.ljsd.jieling.protocols.Common.Cell cellList = 2; + */ + public Builder addCellList( + com.ljsd.jieling.protocols.CommonProto.Common.Cell.Builder builderForValue) { + if (cellListBuilder_ == null) { + ensureCellListIsMutable(); + cellList_.add(builderForValue.build()); + onChanged(); + } else { + cellListBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .com.ljsd.jieling.protocols.Common.Cell cellList = 2; + */ + public Builder addCellList( + int index, com.ljsd.jieling.protocols.CommonProto.Common.Cell.Builder builderForValue) { + if (cellListBuilder_ == null) { + ensureCellListIsMutable(); + cellList_.add(index, builderForValue.build()); + onChanged(); + } else { + cellListBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .com.ljsd.jieling.protocols.Common.Cell cellList = 2; + */ + public Builder addAllCellList( + java.lang.Iterable values) { + if (cellListBuilder_ == null) { + ensureCellListIsMutable(); + super.addAll(values, cellList_); + onChanged(); + } else { + cellListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .com.ljsd.jieling.protocols.Common.Cell cellList = 2; + */ + public Builder clearCellList() { + if (cellListBuilder_ == null) { + cellList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + cellListBuilder_.clear(); + } + return this; + } + /** + * repeated .com.ljsd.jieling.protocols.Common.Cell cellList = 2; + */ + public Builder removeCellList(int index) { + if (cellListBuilder_ == null) { + ensureCellListIsMutable(); + cellList_.remove(index); + onChanged(); + } else { + cellListBuilder_.remove(index); + } + return this; + } + /** + * repeated .com.ljsd.jieling.protocols.Common.Cell cellList = 2; + */ + public com.ljsd.jieling.protocols.CommonProto.Common.Cell.Builder getCellListBuilder( + int index) { + return getCellListFieldBuilder().getBuilder(index); + } + /** + * repeated .com.ljsd.jieling.protocols.Common.Cell cellList = 2; + */ + public com.ljsd.jieling.protocols.CommonProto.Common.CellOrBuilder getCellListOrBuilder( + int index) { + if (cellListBuilder_ == null) { + return cellList_.get(index); } else { + return cellListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .com.ljsd.jieling.protocols.Common.Cell cellList = 2; + */ + public java.util.List + getCellListOrBuilderList() { + if (cellListBuilder_ != null) { + return cellListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(cellList_); + } + } + /** + * repeated .com.ljsd.jieling.protocols.Common.Cell cellList = 2; + */ + public com.ljsd.jieling.protocols.CommonProto.Common.Cell.Builder addCellListBuilder() { + return getCellListFieldBuilder().addBuilder( + com.ljsd.jieling.protocols.CommonProto.Common.Cell.getDefaultInstance()); + } + /** + * repeated .com.ljsd.jieling.protocols.Common.Cell cellList = 2; + */ + public com.ljsd.jieling.protocols.CommonProto.Common.Cell.Builder addCellListBuilder( + int index) { + return getCellListFieldBuilder().addBuilder( + index, com.ljsd.jieling.protocols.CommonProto.Common.Cell.getDefaultInstance()); + } + /** + * repeated .com.ljsd.jieling.protocols.Common.Cell cellList = 2; + */ + public java.util.List + getCellListBuilderList() { + return getCellListFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + com.ljsd.jieling.protocols.CommonProto.Common.Cell, com.ljsd.jieling.protocols.CommonProto.Common.Cell.Builder, com.ljsd.jieling.protocols.CommonProto.Common.CellOrBuilder> + getCellListFieldBuilder() { + if (cellListBuilder_ == null) { + cellListBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + com.ljsd.jieling.protocols.CommonProto.Common.Cell, com.ljsd.jieling.protocols.CommonProto.Common.Cell.Builder, com.ljsd.jieling.protocols.CommonProto.Common.CellOrBuilder>( + cellList_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + cellList_ = null; + } + return cellListBuilder_; + } + + // @@protoc_insertion_point(builder_scope:com.ljsd.jieling.protocols.Common.Map) + } + + static { + defaultInstance = new Map(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:com.ljsd.jieling.protocols.Common.Map) + } + + public interface CellOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional int32 cellId = 1; + /** + * optional int32 cellId = 1; + */ + boolean hasCellId(); + /** + * optional int32 cellId = 1; + */ + int getCellId(); + + // optional bool canGo = 2; + /** + * optional bool canGo = 2; + */ + boolean hasCanGo(); + /** + * optional bool canGo = 2; + */ + boolean getCanGo(); + + // optional bool isFoggy = 3; + /** + * optional bool isFoggy = 3; + */ + boolean hasIsFoggy(); + /** + * optional bool isFoggy = 3; + */ + boolean getIsFoggy(); + + // repeated int32 eventList = 4; + /** + * repeated int32 eventList = 4; + */ + java.util.List getEventListList(); + /** + * repeated int32 eventList = 4; + */ + int getEventListCount(); + /** + * repeated int32 eventList = 4; + */ + int getEventList(int index); + } + /** + * Protobuf type {@code com.ljsd.jieling.protocols.Common.Cell} + */ + public static final class Cell extends + com.google.protobuf.GeneratedMessage + implements CellOrBuilder { + // Use Cell.newBuilder() to construct. + private Cell(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private Cell(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final Cell defaultInstance; + public static Cell getDefaultInstance() { + return defaultInstance; + } + + public Cell getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Cell( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + cellId_ = input.readInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + canGo_ = input.readBool(); + break; + } + case 24: { + bitField0_ |= 0x00000004; + isFoggy_ = input.readBool(); + break; + } + case 32: { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + eventList_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + eventList_.add(input.readInt32()); + break; + } + case 34: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008) && input.getBytesUntilLimit() > 0) { + eventList_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + while (input.getBytesUntilLimit() > 0) { + eventList_.add(input.readInt32()); + } + input.popLimit(limit); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + eventList_ = java.util.Collections.unmodifiableList(eventList_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Cell_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Cell_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.ljsd.jieling.protocols.CommonProto.Common.Cell.class, com.ljsd.jieling.protocols.CommonProto.Common.Cell.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Cell parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Cell(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + // optional int32 cellId = 1; + public static final int CELLID_FIELD_NUMBER = 1; + private int cellId_; + /** + * optional int32 cellId = 1; + */ + public boolean hasCellId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional int32 cellId = 1; + */ + public int getCellId() { + return cellId_; + } + + // optional bool canGo = 2; + public static final int CANGO_FIELD_NUMBER = 2; + private boolean canGo_; + /** + * optional bool canGo = 2; + */ + public boolean hasCanGo() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional bool canGo = 2; + */ + public boolean getCanGo() { + return canGo_; + } + + // optional bool isFoggy = 3; + public static final int ISFOGGY_FIELD_NUMBER = 3; + private boolean isFoggy_; + /** + * optional bool isFoggy = 3; + */ + public boolean hasIsFoggy() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional bool isFoggy = 3; + */ + public boolean getIsFoggy() { + return isFoggy_; + } + + // repeated int32 eventList = 4; + public static final int EVENTLIST_FIELD_NUMBER = 4; + private java.util.List eventList_; + /** + * repeated int32 eventList = 4; + */ + public java.util.List + getEventListList() { + return eventList_; + } + /** + * repeated int32 eventList = 4; + */ + public int getEventListCount() { + return eventList_.size(); + } + /** + * repeated int32 eventList = 4; + */ + public int getEventList(int index) { + return eventList_.get(index); + } + + private void initFields() { + cellId_ = 0; + canGo_ = false; + isFoggy_ = false; + eventList_ = java.util.Collections.emptyList(); + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeInt32(1, cellId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBool(2, canGo_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeBool(3, isFoggy_); + } + for (int i = 0; i < eventList_.size(); i++) { + output.writeInt32(4, eventList_.get(i)); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, cellId_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, canGo_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, isFoggy_); + } + { + int dataSize = 0; + for (int i = 0; i < eventList_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(eventList_.get(i)); + } + size += dataSize; + size += 1 * getEventListList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static com.ljsd.jieling.protocols.CommonProto.Common.Cell parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Cell parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Cell parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Cell parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Cell parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Cell parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Cell parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Cell parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Cell parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Cell parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(com.ljsd.jieling.protocols.CommonProto.Common.Cell prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code com.ljsd.jieling.protocols.Common.Cell} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements com.ljsd.jieling.protocols.CommonProto.Common.CellOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Cell_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Cell_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.ljsd.jieling.protocols.CommonProto.Common.Cell.class, com.ljsd.jieling.protocols.CommonProto.Common.Cell.Builder.class); + } + + // Construct using com.ljsd.jieling.protocols.CommonProto.Common.Cell.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + cellId_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + canGo_ = false; + bitField0_ = (bitField0_ & ~0x00000002); + isFoggy_ = false; + bitField0_ = (bitField0_ & ~0x00000004); + eventList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Cell_descriptor; + } + + public com.ljsd.jieling.protocols.CommonProto.Common.Cell getDefaultInstanceForType() { + return com.ljsd.jieling.protocols.CommonProto.Common.Cell.getDefaultInstance(); + } + + public com.ljsd.jieling.protocols.CommonProto.Common.Cell build() { + com.ljsd.jieling.protocols.CommonProto.Common.Cell result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.ljsd.jieling.protocols.CommonProto.Common.Cell buildPartial() { + com.ljsd.jieling.protocols.CommonProto.Common.Cell result = new com.ljsd.jieling.protocols.CommonProto.Common.Cell(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.cellId_ = cellId_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.canGo_ = canGo_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.isFoggy_ = isFoggy_; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + eventList_ = java.util.Collections.unmodifiableList(eventList_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.eventList_ = eventList_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.ljsd.jieling.protocols.CommonProto.Common.Cell) { + return mergeFrom((com.ljsd.jieling.protocols.CommonProto.Common.Cell)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.ljsd.jieling.protocols.CommonProto.Common.Cell other) { + if (other == com.ljsd.jieling.protocols.CommonProto.Common.Cell.getDefaultInstance()) return this; + if (other.hasCellId()) { + setCellId(other.getCellId()); + } + if (other.hasCanGo()) { + setCanGo(other.getCanGo()); + } + if (other.hasIsFoggy()) { + setIsFoggy(other.getIsFoggy()); + } + if (!other.eventList_.isEmpty()) { + if (eventList_.isEmpty()) { + eventList_ = other.eventList_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureEventListIsMutable(); + eventList_.addAll(other.eventList_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.ljsd.jieling.protocols.CommonProto.Common.Cell parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.ljsd.jieling.protocols.CommonProto.Common.Cell) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // optional int32 cellId = 1; + private int cellId_ ; + /** + * optional int32 cellId = 1; + */ + public boolean hasCellId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional int32 cellId = 1; + */ + public int getCellId() { + return cellId_; + } + /** + * optional int32 cellId = 1; + */ + public Builder setCellId(int value) { + bitField0_ |= 0x00000001; + cellId_ = value; + onChanged(); + return this; + } + /** + * optional int32 cellId = 1; + */ + public Builder clearCellId() { + bitField0_ = (bitField0_ & ~0x00000001); + cellId_ = 0; + onChanged(); + return this; + } + + // optional bool canGo = 2; + private boolean canGo_ ; + /** + * optional bool canGo = 2; + */ + public boolean hasCanGo() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional bool canGo = 2; + */ + public boolean getCanGo() { + return canGo_; + } + /** + * optional bool canGo = 2; + */ + public Builder setCanGo(boolean value) { + bitField0_ |= 0x00000002; + canGo_ = value; + onChanged(); + return this; + } + /** + * optional bool canGo = 2; + */ + public Builder clearCanGo() { + bitField0_ = (bitField0_ & ~0x00000002); + canGo_ = false; + onChanged(); + return this; + } + + // optional bool isFoggy = 3; + private boolean isFoggy_ ; + /** + * optional bool isFoggy = 3; + */ + public boolean hasIsFoggy() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional bool isFoggy = 3; + */ + public boolean getIsFoggy() { + return isFoggy_; + } + /** + * optional bool isFoggy = 3; + */ + public Builder setIsFoggy(boolean value) { + bitField0_ |= 0x00000004; + isFoggy_ = value; + onChanged(); + return this; + } + /** + * optional bool isFoggy = 3; + */ + public Builder clearIsFoggy() { + bitField0_ = (bitField0_ & ~0x00000004); + isFoggy_ = false; + onChanged(); + return this; + } + + // repeated int32 eventList = 4; + private java.util.List eventList_ = java.util.Collections.emptyList(); + private void ensureEventListIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + eventList_ = new java.util.ArrayList(eventList_); + bitField0_ |= 0x00000008; + } + } + /** + * repeated int32 eventList = 4; + */ + public java.util.List + getEventListList() { + return java.util.Collections.unmodifiableList(eventList_); + } + /** + * repeated int32 eventList = 4; + */ + public int getEventListCount() { + return eventList_.size(); + } + /** + * repeated int32 eventList = 4; + */ + public int getEventList(int index) { + return eventList_.get(index); + } + /** + * repeated int32 eventList = 4; + */ + public Builder setEventList( + int index, int value) { + ensureEventListIsMutable(); + eventList_.set(index, value); + onChanged(); + return this; + } + /** + * repeated int32 eventList = 4; + */ + public Builder addEventList(int value) { + ensureEventListIsMutable(); + eventList_.add(value); + onChanged(); + return this; + } + /** + * repeated int32 eventList = 4; + */ + public Builder addAllEventList( + java.lang.Iterable values) { + ensureEventListIsMutable(); + super.addAll(values, eventList_); + onChanged(); + return this; + } + /** + * repeated int32 eventList = 4; + */ + public Builder clearEventList() { + eventList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:com.ljsd.jieling.protocols.Common.Cell) + } + + static { + defaultInstance = new Cell(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:com.ljsd.jieling.protocols.Common.Cell) + } + + public interface MissionOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional string id = 1; + /** + * optional string id = 1; + */ + boolean hasId(); + /** + * optional string id = 1; + */ + java.lang.String getId(); + /** + * optional string id = 1; + */ + com.google.protobuf.ByteString + getIdBytes(); + + // optional int32 itemId = 2; + /** + * optional int32 itemId = 2; + */ + boolean hasItemId(); + /** + * optional int32 itemId = 2; + */ + int getItemId(); + } + /** + * Protobuf type {@code com.ljsd.jieling.protocols.Common.Mission} + */ + public static final class Mission extends + com.google.protobuf.GeneratedMessage + implements MissionOrBuilder { + // Use Mission.newBuilder() to construct. + private Mission(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private Mission(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final Mission defaultInstance; + public static Mission getDefaultInstance() { + return defaultInstance; + } + + public Mission getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Mission( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + id_ = input.readBytes(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + itemId_ = input.readInt32(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Mission_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Mission_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.ljsd.jieling.protocols.CommonProto.Common.Mission.class, com.ljsd.jieling.protocols.CommonProto.Common.Mission.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Mission parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Mission(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + // optional string id = 1; + public static final int ID_FIELD_NUMBER = 1; + private java.lang.Object id_; + /** + * optional string id = 1; + */ + public boolean hasId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string id = 1; + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + id_ = s; + } + return s; + } + } + /** + * optional string id = 1; + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // optional int32 itemId = 2; + public static final int ITEMID_FIELD_NUMBER = 2; + private int itemId_; + /** + * optional int32 itemId = 2; + */ + public boolean hasItemId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional int32 itemId = 2; + */ + public int getItemId() { + return itemId_; + } + + private void initFields() { + id_ = ""; + itemId_ = 0; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getIdBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeInt32(2, itemId_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, getIdBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, itemId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static com.ljsd.jieling.protocols.CommonProto.Common.Mission parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Mission parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Mission parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Mission parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Mission parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Mission parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Mission parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Mission parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Mission parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Mission parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(com.ljsd.jieling.protocols.CommonProto.Common.Mission prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code com.ljsd.jieling.protocols.Common.Mission} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements com.ljsd.jieling.protocols.CommonProto.Common.MissionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Mission_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Mission_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.ljsd.jieling.protocols.CommonProto.Common.Mission.class, com.ljsd.jieling.protocols.CommonProto.Common.Mission.Builder.class); + } + + // Construct using com.ljsd.jieling.protocols.CommonProto.Common.Mission.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + id_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + itemId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Mission_descriptor; + } + + public com.ljsd.jieling.protocols.CommonProto.Common.Mission getDefaultInstanceForType() { + return com.ljsd.jieling.protocols.CommonProto.Common.Mission.getDefaultInstance(); + } + + public com.ljsd.jieling.protocols.CommonProto.Common.Mission build() { + com.ljsd.jieling.protocols.CommonProto.Common.Mission result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.ljsd.jieling.protocols.CommonProto.Common.Mission buildPartial() { + com.ljsd.jieling.protocols.CommonProto.Common.Mission result = new com.ljsd.jieling.protocols.CommonProto.Common.Mission(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.id_ = id_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.itemId_ = itemId_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.ljsd.jieling.protocols.CommonProto.Common.Mission) { + return mergeFrom((com.ljsd.jieling.protocols.CommonProto.Common.Mission)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.ljsd.jieling.protocols.CommonProto.Common.Mission other) { + if (other == com.ljsd.jieling.protocols.CommonProto.Common.Mission.getDefaultInstance()) return this; + if (other.hasId()) { + bitField0_ |= 0x00000001; + id_ = other.id_; + onChanged(); + } + if (other.hasItemId()) { + setItemId(other.getItemId()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.ljsd.jieling.protocols.CommonProto.Common.Mission parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.ljsd.jieling.protocols.CommonProto.Common.Mission) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // optional string id = 1; + private java.lang.Object id_ = ""; + /** + * optional string id = 1; + */ + public boolean hasId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string id = 1; + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string id = 1; + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string id = 1; + */ + public Builder setId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + id_ = value; + onChanged(); + return this; + } + /** + * optional string id = 1; + */ + public Builder clearId() { + bitField0_ = (bitField0_ & ~0x00000001); + id_ = getDefaultInstance().getId(); + onChanged(); + return this; + } + /** + * optional string id = 1; + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + id_ = value; + onChanged(); + return this; + } + + // optional int32 itemId = 2; + private int itemId_ ; + /** + * optional int32 itemId = 2; + */ + public boolean hasItemId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional int32 itemId = 2; + */ + public int getItemId() { + return itemId_; + } + /** + * optional int32 itemId = 2; + */ + public Builder setItemId(int value) { + bitField0_ |= 0x00000002; + itemId_ = value; + onChanged(); + return this; + } + /** + * optional int32 itemId = 2; + */ + public Builder clearItemId() { + bitField0_ = (bitField0_ & ~0x00000002); + itemId_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:com.ljsd.jieling.protocols.Common.Mission) + } + + static { + defaultInstance = new Mission(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:com.ljsd.jieling.protocols.Common.Mission) + } + + public interface EquipOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional string id = 1; + /** + * optional string id = 1; + */ + boolean hasId(); + /** + * optional string id = 1; + */ + java.lang.String getId(); + /** + * optional string id = 1; + */ + com.google.protobuf.ByteString + getIdBytes(); + + // optional int32 itemId = 2; + /** + * optional int32 itemId = 2; + */ + boolean hasItemId(); + /** + * optional int32 itemId = 2; + */ + int getItemId(); + } + /** + * Protobuf type {@code com.ljsd.jieling.protocols.Common.Equip} + */ + public static final class Equip extends + com.google.protobuf.GeneratedMessage + implements EquipOrBuilder { + // Use Equip.newBuilder() to construct. + private Equip(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private Equip(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final Equip defaultInstance; + public static Equip getDefaultInstance() { + return defaultInstance; + } + + public Equip getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Equip( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + id_ = input.readBytes(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + itemId_ = input.readInt32(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Equip_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Equip_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.ljsd.jieling.protocols.CommonProto.Common.Equip.class, com.ljsd.jieling.protocols.CommonProto.Common.Equip.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Equip parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Equip(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + // optional string id = 1; + public static final int ID_FIELD_NUMBER = 1; + private java.lang.Object id_; + /** + * optional string id = 1; + */ + public boolean hasId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string id = 1; + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + id_ = s; + } + return s; + } + } + /** + * optional string id = 1; + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + // optional int32 itemId = 2; + public static final int ITEMID_FIELD_NUMBER = 2; + private int itemId_; + /** + * optional int32 itemId = 2; + */ + public boolean hasItemId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional int32 itemId = 2; + */ + public int getItemId() { + return itemId_; + } + + private void initFields() { + id_ = ""; + itemId_ = 0; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getIdBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeInt32(2, itemId_); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, getIdBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, itemId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static com.ljsd.jieling.protocols.CommonProto.Common.Equip parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Equip parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Equip parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Equip parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Equip parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Equip parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Equip parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Equip parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Equip parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Equip parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(com.ljsd.jieling.protocols.CommonProto.Common.Equip prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code com.ljsd.jieling.protocols.Common.Equip} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements com.ljsd.jieling.protocols.CommonProto.Common.EquipOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Equip_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Equip_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.ljsd.jieling.protocols.CommonProto.Common.Equip.class, com.ljsd.jieling.protocols.CommonProto.Common.Equip.Builder.class); + } + + // Construct using com.ljsd.jieling.protocols.CommonProto.Common.Equip.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + id_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + itemId_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Equip_descriptor; + } + + public com.ljsd.jieling.protocols.CommonProto.Common.Equip getDefaultInstanceForType() { + return com.ljsd.jieling.protocols.CommonProto.Common.Equip.getDefaultInstance(); + } + + public com.ljsd.jieling.protocols.CommonProto.Common.Equip build() { + com.ljsd.jieling.protocols.CommonProto.Common.Equip result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.ljsd.jieling.protocols.CommonProto.Common.Equip buildPartial() { + com.ljsd.jieling.protocols.CommonProto.Common.Equip result = new com.ljsd.jieling.protocols.CommonProto.Common.Equip(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.id_ = id_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.itemId_ = itemId_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.ljsd.jieling.protocols.CommonProto.Common.Equip) { + return mergeFrom((com.ljsd.jieling.protocols.CommonProto.Common.Equip)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.ljsd.jieling.protocols.CommonProto.Common.Equip other) { + if (other == com.ljsd.jieling.protocols.CommonProto.Common.Equip.getDefaultInstance()) return this; + if (other.hasId()) { + bitField0_ |= 0x00000001; + id_ = other.id_; + onChanged(); + } + if (other.hasItemId()) { + setItemId(other.getItemId()); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.ljsd.jieling.protocols.CommonProto.Common.Equip parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.ljsd.jieling.protocols.CommonProto.Common.Equip) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // optional string id = 1; + private java.lang.Object id_ = ""; + /** + * optional string id = 1; + */ + public boolean hasId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string id = 1; + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string id = 1; + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string id = 1; + */ + public Builder setId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + id_ = value; + onChanged(); + return this; + } + /** + * optional string id = 1; + */ + public Builder clearId() { + bitField0_ = (bitField0_ & ~0x00000001); + id_ = getDefaultInstance().getId(); + onChanged(); + return this; + } + /** + * optional string id = 1; + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + id_ = value; + onChanged(); + return this; + } + + // optional int32 itemId = 2; + private int itemId_ ; + /** + * optional int32 itemId = 2; + */ + public boolean hasItemId() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional int32 itemId = 2; + */ + public int getItemId() { + return itemId_; + } + /** + * optional int32 itemId = 2; + */ + public Builder setItemId(int value) { + bitField0_ |= 0x00000002; + itemId_ = value; + onChanged(); + return this; + } + /** + * optional int32 itemId = 2; + */ + public Builder clearItemId() { + bitField0_ = (bitField0_ & ~0x00000002); + itemId_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:com.ljsd.jieling.protocols.Common.Equip) + } + + static { + defaultInstance = new Equip(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:com.ljsd.jieling.protocols.Common.Equip) + } + + public interface FamilyOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional string id = 1; + /** + * optional string id = 1; + */ + boolean hasId(); + /** + * optional string id = 1; + */ + java.lang.String getId(); + /** + * optional string id = 1; + */ + com.google.protobuf.ByteString + getIdBytes(); + } + /** + * Protobuf type {@code com.ljsd.jieling.protocols.Common.Family} + */ + public static final class Family extends + com.google.protobuf.GeneratedMessage + implements FamilyOrBuilder { + // Use Family.newBuilder() to construct. + private Family(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private Family(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final Family defaultInstance; + public static Family getDefaultInstance() { + return defaultInstance; + } + + public Family getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Family( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + bitField0_ |= 0x00000001; + id_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Family_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Family_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.ljsd.jieling.protocols.CommonProto.Common.Family.class, com.ljsd.jieling.protocols.CommonProto.Common.Family.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Family parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Family(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + // optional string id = 1; + public static final int ID_FIELD_NUMBER = 1; + private java.lang.Object id_; + /** + * optional string id = 1; + */ + public boolean hasId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string id = 1; + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + id_ = s; + } + return s; + } + } + /** + * optional string id = 1; + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private void initFields() { + id_ = ""; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getIdBytes()); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, getIdBytes()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static com.ljsd.jieling.protocols.CommonProto.Common.Family parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Family parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Family parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Family parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Family parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Family parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Family parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Family parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Family parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static com.ljsd.jieling.protocols.CommonProto.Common.Family parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(com.ljsd.jieling.protocols.CommonProto.Common.Family prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code com.ljsd.jieling.protocols.Common.Family} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements com.ljsd.jieling.protocols.CommonProto.Common.FamilyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Family_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Family_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.ljsd.jieling.protocols.CommonProto.Common.Family.class, com.ljsd.jieling.protocols.CommonProto.Common.Family.Builder.class); + } + + // Construct using com.ljsd.jieling.protocols.CommonProto.Common.Family.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + id_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.ljsd.jieling.protocols.CommonProto.internal_static_com_ljsd_jieling_protocols_Common_Family_descriptor; + } + + public com.ljsd.jieling.protocols.CommonProto.Common.Family getDefaultInstanceForType() { + return com.ljsd.jieling.protocols.CommonProto.Common.Family.getDefaultInstance(); + } + + public com.ljsd.jieling.protocols.CommonProto.Common.Family build() { + com.ljsd.jieling.protocols.CommonProto.Common.Family result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.ljsd.jieling.protocols.CommonProto.Common.Family buildPartial() { + com.ljsd.jieling.protocols.CommonProto.Common.Family result = new com.ljsd.jieling.protocols.CommonProto.Common.Family(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.id_ = id_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.ljsd.jieling.protocols.CommonProto.Common.Family) { + return mergeFrom((com.ljsd.jieling.protocols.CommonProto.Common.Family)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.ljsd.jieling.protocols.CommonProto.Common.Family other) { + if (other == com.ljsd.jieling.protocols.CommonProto.Common.Family.getDefaultInstance()) return this; + if (other.hasId()) { + bitField0_ |= 0x00000001; + id_ = other.id_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.ljsd.jieling.protocols.CommonProto.Common.Family parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.ljsd.jieling.protocols.CommonProto.Common.Family) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // optional string id = 1; + private java.lang.Object id_ = ""; + /** + * optional string id = 1; + */ + public boolean hasId() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string id = 1; + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string id = 1; + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string id = 1; + */ + public Builder setId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + id_ = value; + onChanged(); + return this; + } + /** + * optional string id = 1; + */ + public Builder clearId() { + bitField0_ = (bitField0_ & ~0x00000001); + id_ = getDefaultInstance().getId(); + onChanged(); + return this; + } + /** + * optional string id = 1; + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + id_ = value; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:com.ljsd.jieling.protocols.Common.Family) + } + + static { + defaultInstance = new Family(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:com.ljsd.jieling.protocols.Common.Family) + } + private void initFields() { } private byte memoizedIsInitialized = -1; @@ -322,6 +8381,56 @@ public final class CommonProto { private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_ljsd_jieling_protocols_Common_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_com_ljsd_jieling_protocols_Common_Player_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_com_ljsd_jieling_protocols_Common_Player_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_com_ljsd_jieling_protocols_Common_Item_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_com_ljsd_jieling_protocols_Common_Item_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_com_ljsd_jieling_protocols_Common_Hero_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_com_ljsd_jieling_protocols_Common_Hero_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_com_ljsd_jieling_protocols_Common_Skill_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_com_ljsd_jieling_protocols_Common_Skill_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_com_ljsd_jieling_protocols_Common_Mail_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_com_ljsd_jieling_protocols_Common_Mail_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_com_ljsd_jieling_protocols_Common_Map_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_com_ljsd_jieling_protocols_Common_Map_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_com_ljsd_jieling_protocols_Common_Cell_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_com_ljsd_jieling_protocols_Common_Cell_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_com_ljsd_jieling_protocols_Common_Mission_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_com_ljsd_jieling_protocols_Common_Mission_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_com_ljsd_jieling_protocols_Common_Equip_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_com_ljsd_jieling_protocols_Common_Equip_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_com_ljsd_jieling_protocols_Common_Family_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_com_ljsd_jieling_protocols_Common_Family_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -332,7 +8441,28 @@ public final class CommonProto { static { java.lang.String[] descriptorData = { "\n\021CommonProto.proto\022\032com.ljsd.jieling.pr" + - "otocols\"\010\n\006CommonB\002H\001" + "otocols\"\335\006\n\006Common\032\203\001\n\006Player\022\013\n\003uid\030\001 \001" + + "(\005\022\020\n\010nicknime\030\002 \001(\t\022\r\n\005level\030\003 \001(\005\022\013\n\003e" + + "xp\030\004 \001(\005\022\020\n\010vipLevel\030\005 \001(\005\022\020\n\010familyId\030\006" + + " \001(\t\022\014\n\004head\030\007 \001(\t\022\014\n\004gold\030\010 \001(\005\032\202\001\n\004Ite" + + "m\022\n\n\002id\030\001 \001(\t\022\016\n\006itemId\030\002 \001(\005\022\017\n\007itemNum" + + "\030\003 \001(\005\022\020\n\010itemType\030\004 \001(\005\022\023\n\013itemQuality\030" + + "\005 \001(\005\022\022\n\nisStacking\030\006 \001(\010\022\022\n\nendingTime\030" + + "\007 \001(\005\032\261\001\n\004Hero\022\n\n\002id\030\001 \001(\t\022\016\n\006heroId\030\002 \001" + + "(\005\022\020\n\010heroType\030\003 \001(\005\022\r\n\005level\030\004 \001(\005\022\014\n\004s", + "tar\030\005 \001(\005\022\017\n\007quality\030\006 \001(\005\022\n\n\002hp\030\007 \001(\005\022\016" + + "\n\006attack\030\010 \001(\005\022\020\n\010pDefence\030\t \001(\005\022\020\n\010mDef" + + "ence\030\n \001(\005\022\r\n\005speed\030\013 \001(\005\032r\n\005Skill\022\n\n\002id" + + "\030\001 \001(\t\022\017\n\007skillId\030\002 \001(\005\022\021\n\tskillType\030\003 \001" + + "(\005\022\r\n\005level\030\004 \001(\005\022\014\n\004star\030\005 \001(\005\022\n\n\002cd\030\006 " + + "\001(\005\022\020\n\010effectId\030\007 \003(\005\032\"\n\004Mail\022\n\n\002id\030\001 \001(" + + "\t\022\016\n\006itemId\030\002 \001(\005\032O\n\003Map\022\r\n\005mapId\030\001 \001(\005\022" + + "9\n\010cellList\030\002 \003(\0132\'.com.ljsd.jieling.pro" + + "tocols.Common.Cell\032I\n\004Cell\022\016\n\006cellId\030\001 \001" + + "(\005\022\r\n\005canGo\030\002 \001(\010\022\017\n\007isFoggy\030\003 \001(\010\022\021\n\tev", + "entList\030\004 \003(\005\032%\n\007Mission\022\n\n\002id\030\001 \001(\t\022\016\n\006" + + "itemId\030\002 \001(\005\032#\n\005Equip\022\n\n\002id\030\001 \001(\t\022\016\n\006ite" + + "mId\030\002 \001(\005\032\024\n\006Family\022\n\n\002id\030\001 \001(\tB\002H\001" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -345,6 +8475,66 @@ public final class CommonProto { com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_ljsd_jieling_protocols_Common_descriptor, new java.lang.String[] { }); + internal_static_com_ljsd_jieling_protocols_Common_Player_descriptor = + internal_static_com_ljsd_jieling_protocols_Common_descriptor.getNestedTypes().get(0); + internal_static_com_ljsd_jieling_protocols_Common_Player_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_ljsd_jieling_protocols_Common_Player_descriptor, + new java.lang.String[] { "Uid", "Nicknime", "Level", "Exp", "VipLevel", "FamilyId", "Head", "Gold", }); + internal_static_com_ljsd_jieling_protocols_Common_Item_descriptor = + internal_static_com_ljsd_jieling_protocols_Common_descriptor.getNestedTypes().get(1); + internal_static_com_ljsd_jieling_protocols_Common_Item_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_ljsd_jieling_protocols_Common_Item_descriptor, + new java.lang.String[] { "Id", "ItemId", "ItemNum", "ItemType", "ItemQuality", "IsStacking", "EndingTime", }); + internal_static_com_ljsd_jieling_protocols_Common_Hero_descriptor = + internal_static_com_ljsd_jieling_protocols_Common_descriptor.getNestedTypes().get(2); + internal_static_com_ljsd_jieling_protocols_Common_Hero_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_ljsd_jieling_protocols_Common_Hero_descriptor, + new java.lang.String[] { "Id", "HeroId", "HeroType", "Level", "Star", "Quality", "Hp", "Attack", "PDefence", "MDefence", "Speed", }); + internal_static_com_ljsd_jieling_protocols_Common_Skill_descriptor = + internal_static_com_ljsd_jieling_protocols_Common_descriptor.getNestedTypes().get(3); + internal_static_com_ljsd_jieling_protocols_Common_Skill_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_ljsd_jieling_protocols_Common_Skill_descriptor, + new java.lang.String[] { "Id", "SkillId", "SkillType", "Level", "Star", "Cd", "EffectId", }); + internal_static_com_ljsd_jieling_protocols_Common_Mail_descriptor = + internal_static_com_ljsd_jieling_protocols_Common_descriptor.getNestedTypes().get(4); + internal_static_com_ljsd_jieling_protocols_Common_Mail_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_ljsd_jieling_protocols_Common_Mail_descriptor, + new java.lang.String[] { "Id", "ItemId", }); + internal_static_com_ljsd_jieling_protocols_Common_Map_descriptor = + internal_static_com_ljsd_jieling_protocols_Common_descriptor.getNestedTypes().get(5); + internal_static_com_ljsd_jieling_protocols_Common_Map_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_ljsd_jieling_protocols_Common_Map_descriptor, + new java.lang.String[] { "MapId", "CellList", }); + internal_static_com_ljsd_jieling_protocols_Common_Cell_descriptor = + internal_static_com_ljsd_jieling_protocols_Common_descriptor.getNestedTypes().get(6); + internal_static_com_ljsd_jieling_protocols_Common_Cell_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_ljsd_jieling_protocols_Common_Cell_descriptor, + new java.lang.String[] { "CellId", "CanGo", "IsFoggy", "EventList", }); + internal_static_com_ljsd_jieling_protocols_Common_Mission_descriptor = + internal_static_com_ljsd_jieling_protocols_Common_descriptor.getNestedTypes().get(7); + internal_static_com_ljsd_jieling_protocols_Common_Mission_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_ljsd_jieling_protocols_Common_Mission_descriptor, + new java.lang.String[] { "Id", "ItemId", }); + internal_static_com_ljsd_jieling_protocols_Common_Equip_descriptor = + internal_static_com_ljsd_jieling_protocols_Common_descriptor.getNestedTypes().get(8); + internal_static_com_ljsd_jieling_protocols_Common_Equip_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_ljsd_jieling_protocols_Common_Equip_descriptor, + new java.lang.String[] { "Id", "ItemId", }); + internal_static_com_ljsd_jieling_protocols_Common_Family_descriptor = + internal_static_com_ljsd_jieling_protocols_Common_descriptor.getNestedTypes().get(9); + internal_static_com_ljsd_jieling_protocols_Common_Family_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_ljsd_jieling_protocols_Common_Family_descriptor, + new java.lang.String[] { "Id", }); return null; } }; diff --git a/serverlogic/src/main/java/com/ljsd/jieling/protocols/MessageTypeProto.java b/serverlogic/src/main/java/com/ljsd/jieling/protocols/MessageTypeProto.java index 64dddfc52..df9f67610 100644 --- a/serverlogic/src/main/java/com/ljsd/jieling/protocols/MessageTypeProto.java +++ b/serverlogic/src/main/java/com/ljsd/jieling/protocols/MessageTypeProto.java @@ -41,6 +41,94 @@ public final class MessageTypeProto { * LOGIN_RESPONSE = 10001; */ LOGIN_RESPONSE(3, 10001), + /** + * GET_PLAYERINFO_REQUEST = 10002; + * + *
+     * 
+ */ + GET_PLAYERINFO_REQUEST(4, 10002), + /** + * GET_PLAYERINFO_RESPONSE = 10003; + */ + GET_PLAYERINFO_RESPONSE(5, 10003), + /** + * GET_HEROINFO_REQUEST = 10004; + * + *
+     * 
+ */ + GET_HEROINFO_REQUEST(6, 10004), + /** + * GET_HEROINFO_RESPONSE = 10005; + */ + GET_HEROINFO_RESPONSE(7, 10005), + /** + * GET_ITEMINFO_REQUEST = 10006; + * + *
+     * 
+ */ + GET_ITEMINFO_REQUEST(8, 10006), + /** + * GET_ITEMINFO_RESPONSE = 10007; + */ + GET_ITEMINFO_RESPONSE(9, 10007), + /** + * ENTER_MAP_REQUEST = 10008; + * + *
+     * 
+ */ + ENTER_MAP_REQUEST(10, 10008), + /** + * ENTER_MAP_RESPONSE = 10009; + */ + ENTER_MAP_RESPONSE(11, 10009), + /** + * START_FIGHT_REQUEST = 10010; + * + *
+     * 
+ */ + START_FIGHT_REQUEST(12, 10010), + /** + * START_FIGHT_RESPONSE = 10011; + */ + START_FIGHT_RESPONSE(13, 10011), + /** + * END_FIGHT_REQUEST = 10012; + * + *
+     * 
+ */ + END_FIGHT_REQUEST(14, 10012), + /** + * END_FIGHT_RESPONSE = 10013; + */ + END_FIGHT_RESPONSE(15, 10013), + /** + * TRIGGER_EVENT_REQUEST = 10014; + * + *
+     * 
+ */ + TRIGGER_EVENT_REQUEST(16, 10014), + /** + * TRIGGER_EVENT_RESPONSE = 10015; + */ + TRIGGER_EVENT_RESPONSE(17, 10015), + /** + * OUT_MAP_REQUEST = 10016; + * + *
+     * 
+ */ + OUT_MAP_REQUEST(18, 10016), + /** + * OUT_MAP_RESPONSE = 10017; + */ + OUT_MAP_RESPONSE(19, 10017), ; /** @@ -71,6 +159,94 @@ public final class MessageTypeProto { * LOGIN_RESPONSE = 10001; */ public static final int LOGIN_RESPONSE_VALUE = 10001; + /** + * GET_PLAYERINFO_REQUEST = 10002; + * + *
+     * 
+ */ + public static final int GET_PLAYERINFO_REQUEST_VALUE = 10002; + /** + * GET_PLAYERINFO_RESPONSE = 10003; + */ + public static final int GET_PLAYERINFO_RESPONSE_VALUE = 10003; + /** + * GET_HEROINFO_REQUEST = 10004; + * + *
+     * 
+ */ + public static final int GET_HEROINFO_REQUEST_VALUE = 10004; + /** + * GET_HEROINFO_RESPONSE = 10005; + */ + public static final int GET_HEROINFO_RESPONSE_VALUE = 10005; + /** + * GET_ITEMINFO_REQUEST = 10006; + * + *
+     * 
+ */ + public static final int GET_ITEMINFO_REQUEST_VALUE = 10006; + /** + * GET_ITEMINFO_RESPONSE = 10007; + */ + public static final int GET_ITEMINFO_RESPONSE_VALUE = 10007; + /** + * ENTER_MAP_REQUEST = 10008; + * + *
+     * 
+ */ + public static final int ENTER_MAP_REQUEST_VALUE = 10008; + /** + * ENTER_MAP_RESPONSE = 10009; + */ + public static final int ENTER_MAP_RESPONSE_VALUE = 10009; + /** + * START_FIGHT_REQUEST = 10010; + * + *
+     * 
+ */ + public static final int START_FIGHT_REQUEST_VALUE = 10010; + /** + * START_FIGHT_RESPONSE = 10011; + */ + public static final int START_FIGHT_RESPONSE_VALUE = 10011; + /** + * END_FIGHT_REQUEST = 10012; + * + *
+     * 
+ */ + public static final int END_FIGHT_REQUEST_VALUE = 10012; + /** + * END_FIGHT_RESPONSE = 10013; + */ + public static final int END_FIGHT_RESPONSE_VALUE = 10013; + /** + * TRIGGER_EVENT_REQUEST = 10014; + * + *
+     * 
+ */ + public static final int TRIGGER_EVENT_REQUEST_VALUE = 10014; + /** + * TRIGGER_EVENT_RESPONSE = 10015; + */ + public static final int TRIGGER_EVENT_RESPONSE_VALUE = 10015; + /** + * OUT_MAP_REQUEST = 10016; + * + *
+     * 
+ */ + public static final int OUT_MAP_REQUEST_VALUE = 10016; + /** + * OUT_MAP_RESPONSE = 10017; + */ + public static final int OUT_MAP_RESPONSE_VALUE = 10017; public final int getNumber() { return value; } @@ -81,6 +257,22 @@ public final class MessageTypeProto { case 1001: return HEART_BEAT_RESPONSE; case 10000: return LOGIN_REQUEST; case 10001: return LOGIN_RESPONSE; + case 10002: return GET_PLAYERINFO_REQUEST; + case 10003: return GET_PLAYERINFO_RESPONSE; + case 10004: return GET_HEROINFO_REQUEST; + case 10005: return GET_HEROINFO_RESPONSE; + case 10006: return GET_ITEMINFO_REQUEST; + case 10007: return GET_ITEMINFO_RESPONSE; + case 10008: return ENTER_MAP_REQUEST; + case 10009: return ENTER_MAP_RESPONSE; + case 10010: return START_FIGHT_REQUEST; + case 10011: return START_FIGHT_RESPONSE; + case 10012: return END_FIGHT_REQUEST; + case 10013: return END_FIGHT_RESPONSE; + case 10014: return TRIGGER_EVENT_REQUEST; + case 10015: return TRIGGER_EVENT_RESPONSE; + case 10016: return OUT_MAP_REQUEST; + case 10017: return OUT_MAP_RESPONSE; default: return null; } } @@ -142,10 +334,20 @@ public final class MessageTypeProto { static { java.lang.String[] descriptorData = { "\n\026MessageTypeProto.proto\022\032com.ljsd.jieli" + - "ng.protocols*i\n\013MessageType\022\027\n\022HEART_BEA" + - "T_REQUEST\020\350\007\022\030\n\023HEART_BEAT_RESPONSE\020\351\007\022\022" + - "\n\rLOGIN_REQUEST\020\220N\022\023\n\016LOGIN_RESPONSE\020\221NB" + - "\002H\001" + "ng.protocols*\217\004\n\013MessageType\022\027\n\022HEART_BE" + + "AT_REQUEST\020\350\007\022\030\n\023HEART_BEAT_RESPONSE\020\351\007\022" + + "\022\n\rLOGIN_REQUEST\020\220N\022\023\n\016LOGIN_RESPONSE\020\221N" + + "\022\033\n\026GET_PLAYERINFO_REQUEST\020\222N\022\034\n\027GET_PLA" + + "YERINFO_RESPONSE\020\223N\022\031\n\024GET_HEROINFO_REQU" + + "EST\020\224N\022\032\n\025GET_HEROINFO_RESPONSE\020\225N\022\031\n\024GE" + + "T_ITEMINFO_REQUEST\020\226N\022\032\n\025GET_ITEMINFO_RE" + + "SPONSE\020\227N\022\026\n\021ENTER_MAP_REQUEST\020\230N\022\027\n\022ENT" + + "ER_MAP_RESPONSE\020\231N\022\030\n\023START_FIGHT_REQUES", + "T\020\232N\022\031\n\024START_FIGHT_RESPONSE\020\233N\022\026\n\021END_F" + + "IGHT_REQUEST\020\234N\022\027\n\022END_FIGHT_RESPONSE\020\235N" + + "\022\032\n\025TRIGGER_EVENT_REQUEST\020\236N\022\033\n\026TRIGGER_" + + "EVENT_RESPONSE\020\237N\022\024\n\017OUT_MAP_REQUEST\020\240N\022" + + "\025\n\020OUT_MAP_RESPONSE\020\241NB\002H\001" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { diff --git a/serverlogic/src/main/java/com/ljsd/jieling/protocols/PlayerInfoProto.java b/serverlogic/src/main/java/com/ljsd/jieling/protocols/PlayerInfoProto.java index 0dd413da4..0bdd590b9 100644 --- a/serverlogic/src/main/java/com/ljsd/jieling/protocols/PlayerInfoProto.java +++ b/serverlogic/src/main/java/com/ljsd/jieling/protocols/PlayerInfoProto.java @@ -100,6 +100,1110 @@ public final class PlayerInfoProto { return PARSER; } + public interface LoginRequestOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional int32 num = 1; + /** + * optional int32 num = 1; + */ + boolean hasNum(); + /** + * optional int32 num = 1; + */ + int getNum(); + + // optional string str = 2; + /** + * optional string str = 2; + */ + boolean hasStr(); + /** + * optional string str = 2; + */ + java.lang.String getStr(); + /** + * optional string str = 2; + */ + com.google.protobuf.ByteString + getStrBytes(); + } + /** + * Protobuf type {@code com.ljsd.jieling.protocols.PlayerInfo.LoginRequest} + */ + public static final class LoginRequest extends + com.google.protobuf.GeneratedMessage + implements LoginRequestOrBuilder { + // Use LoginRequest.newBuilder() to construct. + private LoginRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private LoginRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final LoginRequest defaultInstance; + public static LoginRequest getDefaultInstance() { + return defaultInstance; + } + + public LoginRequest getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LoginRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + num_ = input.readInt32(); + break; + } + case 18: { + bitField0_ |= 0x00000002; + str_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.ljsd.jieling.protocols.PlayerInfoProto.internal_static_com_ljsd_jieling_protocols_PlayerInfo_LoginRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.ljsd.jieling.protocols.PlayerInfoProto.internal_static_com_ljsd_jieling_protocols_PlayerInfo_LoginRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginRequest.class, com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginRequest.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public LoginRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LoginRequest(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + // optional int32 num = 1; + public static final int NUM_FIELD_NUMBER = 1; + private int num_; + /** + * optional int32 num = 1; + */ + public boolean hasNum() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional int32 num = 1; + */ + public int getNum() { + return num_; + } + + // optional string str = 2; + public static final int STR_FIELD_NUMBER = 2; + private java.lang.Object str_; + /** + * optional string str = 2; + */ + public boolean hasStr() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional string str = 2; + */ + public java.lang.String getStr() { + java.lang.Object ref = str_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + str_ = s; + } + return s; + } + } + /** + * optional string str = 2; + */ + public com.google.protobuf.ByteString + getStrBytes() { + java.lang.Object ref = str_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + str_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private void initFields() { + num_ = 0; + str_ = ""; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeInt32(1, num_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(2, getStrBytes()); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, num_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, getStrBytes()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginRequest prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code com.ljsd.jieling.protocols.PlayerInfo.LoginRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.ljsd.jieling.protocols.PlayerInfoProto.internal_static_com_ljsd_jieling_protocols_PlayerInfo_LoginRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.ljsd.jieling.protocols.PlayerInfoProto.internal_static_com_ljsd_jieling_protocols_PlayerInfo_LoginRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginRequest.class, com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginRequest.Builder.class); + } + + // Construct using com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + num_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + str_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.ljsd.jieling.protocols.PlayerInfoProto.internal_static_com_ljsd_jieling_protocols_PlayerInfo_LoginRequest_descriptor; + } + + public com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginRequest getDefaultInstanceForType() { + return com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginRequest.getDefaultInstance(); + } + + public com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginRequest build() { + com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginRequest buildPartial() { + com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginRequest result = new com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginRequest(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.num_ = num_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.str_ = str_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginRequest) { + return mergeFrom((com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginRequest other) { + if (other == com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginRequest.getDefaultInstance()) return this; + if (other.hasNum()) { + setNum(other.getNum()); + } + if (other.hasStr()) { + bitField0_ |= 0x00000002; + str_ = other.str_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginRequest) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // optional int32 num = 1; + private int num_ ; + /** + * optional int32 num = 1; + */ + public boolean hasNum() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional int32 num = 1; + */ + public int getNum() { + return num_; + } + /** + * optional int32 num = 1; + */ + public Builder setNum(int value) { + bitField0_ |= 0x00000001; + num_ = value; + onChanged(); + return this; + } + /** + * optional int32 num = 1; + */ + public Builder clearNum() { + bitField0_ = (bitField0_ & ~0x00000001); + num_ = 0; + onChanged(); + return this; + } + + // optional string str = 2; + private java.lang.Object str_ = ""; + /** + * optional string str = 2; + */ + public boolean hasStr() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional string str = 2; + */ + public java.lang.String getStr() { + java.lang.Object ref = str_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + str_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string str = 2; + */ + public com.google.protobuf.ByteString + getStrBytes() { + java.lang.Object ref = str_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + str_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string str = 2; + */ + public Builder setStr( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + str_ = value; + onChanged(); + return this; + } + /** + * optional string str = 2; + */ + public Builder clearStr() { + bitField0_ = (bitField0_ & ~0x00000002); + str_ = getDefaultInstance().getStr(); + onChanged(); + return this; + } + /** + * optional string str = 2; + */ + public Builder setStrBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + str_ = value; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:com.ljsd.jieling.protocols.PlayerInfo.LoginRequest) + } + + static { + defaultInstance = new LoginRequest(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:com.ljsd.jieling.protocols.PlayerInfo.LoginRequest) + } + + public interface LoginResponseOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional int32 resultCode = 1; + /** + * optional int32 resultCode = 1; + */ + boolean hasResultCode(); + /** + * optional int32 resultCode = 1; + */ + int getResultCode(); + + // optional string newToken = 2; + /** + * optional string newToken = 2; + */ + boolean hasNewToken(); + /** + * optional string newToken = 2; + */ + java.lang.String getNewToken(); + /** + * optional string newToken = 2; + */ + com.google.protobuf.ByteString + getNewTokenBytes(); + } + /** + * Protobuf type {@code com.ljsd.jieling.protocols.PlayerInfo.LoginResponse} + */ + public static final class LoginResponse extends + com.google.protobuf.GeneratedMessage + implements LoginResponseOrBuilder { + // Use LoginResponse.newBuilder() to construct. + private LoginResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private LoginResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final LoginResponse defaultInstance; + public static LoginResponse getDefaultInstance() { + return defaultInstance; + } + + public LoginResponse getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LoginResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + resultCode_ = input.readInt32(); + break; + } + case 18: { + bitField0_ |= 0x00000002; + newToken_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.ljsd.jieling.protocols.PlayerInfoProto.internal_static_com_ljsd_jieling_protocols_PlayerInfo_LoginResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.ljsd.jieling.protocols.PlayerInfoProto.internal_static_com_ljsd_jieling_protocols_PlayerInfo_LoginResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginResponse.class, com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginResponse.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public LoginResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LoginResponse(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + // optional int32 resultCode = 1; + public static final int RESULTCODE_FIELD_NUMBER = 1; + private int resultCode_; + /** + * optional int32 resultCode = 1; + */ + public boolean hasResultCode() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional int32 resultCode = 1; + */ + public int getResultCode() { + return resultCode_; + } + + // optional string newToken = 2; + public static final int NEWTOKEN_FIELD_NUMBER = 2; + private java.lang.Object newToken_; + /** + * optional string newToken = 2; + */ + public boolean hasNewToken() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional string newToken = 2; + */ + public java.lang.String getNewToken() { + java.lang.Object ref = newToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + newToken_ = s; + } + return s; + } + } + /** + * optional string newToken = 2; + */ + public com.google.protobuf.ByteString + getNewTokenBytes() { + java.lang.Object ref = newToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + newToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private void initFields() { + resultCode_ = 0; + newToken_ = ""; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeInt32(1, resultCode_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(2, getNewTokenBytes()); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, resultCode_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, getNewTokenBytes()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginResponse prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code com.ljsd.jieling.protocols.PlayerInfo.LoginResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.ljsd.jieling.protocols.PlayerInfoProto.internal_static_com_ljsd_jieling_protocols_PlayerInfo_LoginResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.ljsd.jieling.protocols.PlayerInfoProto.internal_static_com_ljsd_jieling_protocols_PlayerInfo_LoginResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginResponse.class, com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginResponse.Builder.class); + } + + // Construct using com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + resultCode_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + newToken_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.ljsd.jieling.protocols.PlayerInfoProto.internal_static_com_ljsd_jieling_protocols_PlayerInfo_LoginResponse_descriptor; + } + + public com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginResponse getDefaultInstanceForType() { + return com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginResponse.getDefaultInstance(); + } + + public com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginResponse build() { + com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginResponse buildPartial() { + com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginResponse result = new com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginResponse(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.resultCode_ = resultCode_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.newToken_ = newToken_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginResponse) { + return mergeFrom((com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginResponse other) { + if (other == com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginResponse.getDefaultInstance()) return this; + if (other.hasResultCode()) { + setResultCode(other.getResultCode()); + } + if (other.hasNewToken()) { + bitField0_ |= 0x00000002; + newToken_ = other.newToken_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.LoginResponse) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // optional int32 resultCode = 1; + private int resultCode_ ; + /** + * optional int32 resultCode = 1; + */ + public boolean hasResultCode() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional int32 resultCode = 1; + */ + public int getResultCode() { + return resultCode_; + } + /** + * optional int32 resultCode = 1; + */ + public Builder setResultCode(int value) { + bitField0_ |= 0x00000001; + resultCode_ = value; + onChanged(); + return this; + } + /** + * optional int32 resultCode = 1; + */ + public Builder clearResultCode() { + bitField0_ = (bitField0_ & ~0x00000001); + resultCode_ = 0; + onChanged(); + return this; + } + + // optional string newToken = 2; + private java.lang.Object newToken_ = ""; + /** + * optional string newToken = 2; + */ + public boolean hasNewToken() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional string newToken = 2; + */ + public java.lang.String getNewToken() { + java.lang.Object ref = newToken_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + newToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string newToken = 2; + */ + public com.google.protobuf.ByteString + getNewTokenBytes() { + java.lang.Object ref = newToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + newToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string newToken = 2; + */ + public Builder setNewToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + newToken_ = value; + onChanged(); + return this; + } + /** + * optional string newToken = 2; + */ + public Builder clearNewToken() { + bitField0_ = (bitField0_ & ~0x00000002); + newToken_ = getDefaultInstance().getNewToken(); + onChanged(); + return this; + } + /** + * optional string newToken = 2; + */ + public Builder setNewTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + newToken_ = value; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:com.ljsd.jieling.protocols.PlayerInfo.LoginResponse) + } + + static { + defaultInstance = new LoginResponse(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:com.ljsd.jieling.protocols.PlayerInfo.LoginResponse) + } + public interface GetPlayerInfoRequestOrBuilder extends com.google.protobuf.MessageOrBuilder { @@ -127,21 +1231,6 @@ public final class PlayerInfoProto { */ com.google.protobuf.ByteString getStrBytes(); - - // optional string str1 = 3; - /** - * optional string str1 = 3; - */ - boolean hasStr1(); - /** - * optional string str1 = 3; - */ - java.lang.String getStr1(); - /** - * optional string str1 = 3; - */ - com.google.protobuf.ByteString - getStr1Bytes(); } /** * Protobuf type {@code com.ljsd.jieling.protocols.PlayerInfo.GetPlayerInfoRequest} @@ -204,11 +1293,6 @@ public final class PlayerInfoProto { str_ = input.readBytes(); break; } - case 26: { - bitField0_ |= 0x00000004; - str1_ = input.readBytes(); - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -308,53 +1392,9 @@ public final class PlayerInfoProto { } } - // optional string str1 = 3; - public static final int STR1_FIELD_NUMBER = 3; - private java.lang.Object str1_; - /** - * optional string str1 = 3; - */ - public boolean hasStr1() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string str1 = 3; - */ - public java.lang.String getStr1() { - java.lang.Object ref = str1_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - str1_ = s; - } - return s; - } - } - /** - * optional string str1 = 3; - */ - public com.google.protobuf.ByteString - getStr1Bytes() { - java.lang.Object ref = str1_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - str1_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - private void initFields() { num_ = 0; str_ = ""; - str1_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { @@ -374,9 +1414,6 @@ public final class PlayerInfoProto { if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getStrBytes()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getStr1Bytes()); - } getUnknownFields().writeTo(output); } @@ -394,10 +1431,6 @@ public final class PlayerInfoProto { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getStrBytes()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getStr1Bytes()); - } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; @@ -518,8 +1551,6 @@ public final class PlayerInfoProto { bitField0_ = (bitField0_ & ~0x00000001); str_ = ""; bitField0_ = (bitField0_ & ~0x00000002); - str1_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); return this; } @@ -556,10 +1587,6 @@ public final class PlayerInfoProto { to_bitField0_ |= 0x00000002; } result.str_ = str_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.str1_ = str1_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -584,11 +1611,6 @@ public final class PlayerInfoProto { str_ = other.str_; onChanged(); } - if (other.hasStr1()) { - bitField0_ |= 0x00000004; - str1_ = other.str1_; - onChanged(); - } this.mergeUnknownFields(other.getUnknownFields()); return this; } @@ -723,80 +1745,6 @@ public final class PlayerInfoProto { return this; } - // optional string str1 = 3; - private java.lang.Object str1_ = ""; - /** - * optional string str1 = 3; - */ - public boolean hasStr1() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional string str1 = 3; - */ - public java.lang.String getStr1() { - java.lang.Object ref = str1_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - str1_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string str1 = 3; - */ - public com.google.protobuf.ByteString - getStr1Bytes() { - java.lang.Object ref = str1_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - str1_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string str1 = 3; - */ - public Builder setStr1( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - str1_ = value; - onChanged(); - return this; - } - /** - * optional string str1 = 3; - */ - public Builder clearStr1() { - bitField0_ = (bitField0_ & ~0x00000004); - str1_ = getDefaultInstance().getStr1(); - onChanged(); - return this; - } - /** - * optional string str1 = 3; - */ - public Builder setStr1Bytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - str1_ = value; - onChanged(); - return this; - } - // @@protoc_insertion_point(builder_scope:com.ljsd.jieling.protocols.PlayerInfo.GetPlayerInfoRequest) } @@ -811,68 +1759,19 @@ public final class PlayerInfoProto { public interface GetPlayerInfoResponseOrBuilder extends com.google.protobuf.MessageOrBuilder { - // optional int32 sex = 1; + // optional .com.ljsd.jieling.protocols.Common.Player player = 1; /** - * optional int32 sex = 1; - * - *
-       * 性别
-       * 
+ * optional .com.ljsd.jieling.protocols.Common.Player player = 1; */ - boolean hasSex(); + boolean hasPlayer(); /** - * optional int32 sex = 1; - * - *
-       * 性别
-       * 
+ * optional .com.ljsd.jieling.protocols.Common.Player player = 1; */ - int getSex(); - - // optional string family = 2; + com.ljsd.jieling.protocols.CommonProto.Common.Player getPlayer(); /** - * optional string family = 2; - * - *
-       * 家族
-       * 
+ * optional .com.ljsd.jieling.protocols.Common.Player player = 1; */ - boolean hasFamily(); - /** - * optional string family = 2; - * - *
-       * 家族
-       * 
- */ - java.lang.String getFamily(); - /** - * optional string family = 2; - * - *
-       * 家族
-       * 
- */ - com.google.protobuf.ByteString - getFamilyBytes(); - - // optional int32 rank = 3; - /** - * optional int32 rank = 3; - * - *
-       * 上赛季排名
-       * 
- */ - boolean hasRank(); - /** - * optional int32 rank = 3; - * - *
-       * 上赛季排名
-       * 
- */ - int getRank(); + com.ljsd.jieling.protocols.CommonProto.Common.PlayerOrBuilder getPlayerOrBuilder(); } /** * Protobuf type {@code com.ljsd.jieling.protocols.PlayerInfo.GetPlayerInfoResponse} @@ -925,19 +1824,17 @@ public final class PlayerInfoProto { } break; } - case 8: { + case 10: { + com.ljsd.jieling.protocols.CommonProto.Common.Player.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = player_.toBuilder(); + } + player_ = input.readMessage(com.ljsd.jieling.protocols.CommonProto.Common.Player.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(player_); + player_ = subBuilder.buildPartial(); + } bitField0_ |= 0x00000001; - sex_ = input.readInt32(); - break; - } - case 18: { - bitField0_ |= 0x00000002; - family_ = input.readBytes(); - break; - } - case 24: { - bitField0_ |= 0x00000004; - rank_ = input.readInt32(); break; } } @@ -980,113 +1877,30 @@ public final class PlayerInfoProto { } private int bitField0_; - // optional int32 sex = 1; - public static final int SEX_FIELD_NUMBER = 1; - private int sex_; + // optional .com.ljsd.jieling.protocols.Common.Player player = 1; + public static final int PLAYER_FIELD_NUMBER = 1; + private com.ljsd.jieling.protocols.CommonProto.Common.Player player_; /** - * optional int32 sex = 1; - * - *
-       * 性别
-       * 
+ * optional .com.ljsd.jieling.protocols.Common.Player player = 1; */ - public boolean hasSex() { + public boolean hasPlayer() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** - * optional int32 sex = 1; - * - *
-       * 性别
-       * 
+ * optional .com.ljsd.jieling.protocols.Common.Player player = 1; */ - public int getSex() { - return sex_; - } - - // optional string family = 2; - public static final int FAMILY_FIELD_NUMBER = 2; - private java.lang.Object family_; - /** - * optional string family = 2; - * - *
-       * 家族
-       * 
- */ - public boolean hasFamily() { - return ((bitField0_ & 0x00000002) == 0x00000002); + public com.ljsd.jieling.protocols.CommonProto.Common.Player getPlayer() { + return player_; } /** - * optional string family = 2; - * - *
-       * 家族
-       * 
+ * optional .com.ljsd.jieling.protocols.Common.Player player = 1; */ - public java.lang.String getFamily() { - java.lang.Object ref = family_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - family_ = s; - } - return s; - } - } - /** - * optional string family = 2; - * - *
-       * 家族
-       * 
- */ - public com.google.protobuf.ByteString - getFamilyBytes() { - java.lang.Object ref = family_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - family_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - // optional int32 rank = 3; - public static final int RANK_FIELD_NUMBER = 3; - private int rank_; - /** - * optional int32 rank = 3; - * - *
-       * 上赛季排名
-       * 
- */ - public boolean hasRank() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional int32 rank = 3; - * - *
-       * 上赛季排名
-       * 
- */ - public int getRank() { - return rank_; + public com.ljsd.jieling.protocols.CommonProto.Common.PlayerOrBuilder getPlayerOrBuilder() { + return player_; } private void initFields() { - sex_ = 0; - family_ = ""; - rank_ = 0; + player_ = com.ljsd.jieling.protocols.CommonProto.Common.Player.getDefaultInstance(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { @@ -1101,13 +1915,7 @@ public final class PlayerInfoProto { throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeInt32(1, sex_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getFamilyBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeInt32(3, rank_); + output.writeMessage(1, player_); } getUnknownFields().writeTo(output); } @@ -1120,15 +1928,7 @@ public final class PlayerInfoProto { size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, sex_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getFamilyBytes()); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, rank_); + .computeMessageSize(1, player_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; @@ -1238,6 +2038,7 @@ public final class PlayerInfoProto { } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getPlayerFieldBuilder(); } } private static Builder create() { @@ -1246,12 +2047,12 @@ public final class PlayerInfoProto { public Builder clear() { super.clear(); - sex_ = 0; + if (playerBuilder_ == null) { + player_ = com.ljsd.jieling.protocols.CommonProto.Common.Player.getDefaultInstance(); + } else { + playerBuilder_.clear(); + } bitField0_ = (bitField0_ & ~0x00000001); - family_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - rank_ = 0; - bitField0_ = (bitField0_ & ~0x00000004); return this; } @@ -1283,15 +2084,11 @@ public final class PlayerInfoProto { if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } - result.sex_ = sex_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; + if (playerBuilder_ == null) { + result.player_ = player_; + } else { + result.player_ = playerBuilder_.build(); } - result.family_ = family_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.rank_ = rank_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -1308,16 +2105,8 @@ public final class PlayerInfoProto { public Builder mergeFrom(com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetPlayerInfoResponse other) { if (other == com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetPlayerInfoResponse.getDefaultInstance()) return this; - if (other.hasSex()) { - setSex(other.getSex()); - } - if (other.hasFamily()) { - bitField0_ |= 0x00000002; - family_ = other.family_; - onChanged(); - } - if (other.hasRank()) { - setRank(other.getRank()); + if (other.hasPlayer()) { + mergePlayer(other.getPlayer()); } this.mergeUnknownFields(other.getUnknownFields()); return this; @@ -1346,200 +2135,121 @@ public final class PlayerInfoProto { } private int bitField0_; - // optional int32 sex = 1; - private int sex_ ; + // optional .com.ljsd.jieling.protocols.Common.Player player = 1; + private com.ljsd.jieling.protocols.CommonProto.Common.Player player_ = com.ljsd.jieling.protocols.CommonProto.Common.Player.getDefaultInstance(); + private com.google.protobuf.SingleFieldBuilder< + com.ljsd.jieling.protocols.CommonProto.Common.Player, com.ljsd.jieling.protocols.CommonProto.Common.Player.Builder, com.ljsd.jieling.protocols.CommonProto.Common.PlayerOrBuilder> playerBuilder_; /** - * optional int32 sex = 1; - * - *
-         * 性别
-         * 
+ * optional .com.ljsd.jieling.protocols.Common.Player player = 1; */ - public boolean hasSex() { + public boolean hasPlayer() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** - * optional int32 sex = 1; - * - *
-         * 性别
-         * 
+ * optional .com.ljsd.jieling.protocols.Common.Player player = 1; */ - public int getSex() { - return sex_; + public com.ljsd.jieling.protocols.CommonProto.Common.Player getPlayer() { + if (playerBuilder_ == null) { + return player_; + } else { + return playerBuilder_.getMessage(); + } } /** - * optional int32 sex = 1; - * - *
-         * 性别
-         * 
+ * optional .com.ljsd.jieling.protocols.Common.Player player = 1; */ - public Builder setSex(int value) { + public Builder setPlayer(com.ljsd.jieling.protocols.CommonProto.Common.Player value) { + if (playerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + player_ = value; + onChanged(); + } else { + playerBuilder_.setMessage(value); + } bitField0_ |= 0x00000001; - sex_ = value; - onChanged(); return this; } /** - * optional int32 sex = 1; - * - *
-         * 性别
-         * 
+ * optional .com.ljsd.jieling.protocols.Common.Player player = 1; */ - public Builder clearSex() { + public Builder setPlayer( + com.ljsd.jieling.protocols.CommonProto.Common.Player.Builder builderForValue) { + if (playerBuilder_ == null) { + player_ = builderForValue.build(); + onChanged(); + } else { + playerBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + return this; + } + /** + * optional .com.ljsd.jieling.protocols.Common.Player player = 1; + */ + public Builder mergePlayer(com.ljsd.jieling.protocols.CommonProto.Common.Player value) { + if (playerBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + player_ != com.ljsd.jieling.protocols.CommonProto.Common.Player.getDefaultInstance()) { + player_ = + com.ljsd.jieling.protocols.CommonProto.Common.Player.newBuilder(player_).mergeFrom(value).buildPartial(); + } else { + player_ = value; + } + onChanged(); + } else { + playerBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + * optional .com.ljsd.jieling.protocols.Common.Player player = 1; + */ + public Builder clearPlayer() { + if (playerBuilder_ == null) { + player_ = com.ljsd.jieling.protocols.CommonProto.Common.Player.getDefaultInstance(); + onChanged(); + } else { + playerBuilder_.clear(); + } bitField0_ = (bitField0_ & ~0x00000001); - sex_ = 0; - onChanged(); return this; } - - // optional string family = 2; - private java.lang.Object family_ = ""; /** - * optional string family = 2; - * - *
-         * 家族
-         * 
+ * optional .com.ljsd.jieling.protocols.Common.Player player = 1; */ - public boolean hasFamily() { - return ((bitField0_ & 0x00000002) == 0x00000002); + public com.ljsd.jieling.protocols.CommonProto.Common.Player.Builder getPlayerBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPlayerFieldBuilder().getBuilder(); } /** - * optional string family = 2; - * - *
-         * 家族
-         * 
+ * optional .com.ljsd.jieling.protocols.Common.Player player = 1; */ - public java.lang.String getFamily() { - java.lang.Object ref = family_; - if (!(ref instanceof java.lang.String)) { - java.lang.String s = ((com.google.protobuf.ByteString) ref) - .toStringUtf8(); - family_ = s; - return s; + public com.ljsd.jieling.protocols.CommonProto.Common.PlayerOrBuilder getPlayerOrBuilder() { + if (playerBuilder_ != null) { + return playerBuilder_.getMessageOrBuilder(); } else { - return (java.lang.String) ref; + return player_; } } /** - * optional string family = 2; - * - *
-         * 家族
-         * 
+ * optional .com.ljsd.jieling.protocols.Common.Player player = 1; */ - public com.google.protobuf.ByteString - getFamilyBytes() { - java.lang.Object ref = family_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - family_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + private com.google.protobuf.SingleFieldBuilder< + com.ljsd.jieling.protocols.CommonProto.Common.Player, com.ljsd.jieling.protocols.CommonProto.Common.Player.Builder, com.ljsd.jieling.protocols.CommonProto.Common.PlayerOrBuilder> + getPlayerFieldBuilder() { + if (playerBuilder_ == null) { + playerBuilder_ = new com.google.protobuf.SingleFieldBuilder< + com.ljsd.jieling.protocols.CommonProto.Common.Player, com.ljsd.jieling.protocols.CommonProto.Common.Player.Builder, com.ljsd.jieling.protocols.CommonProto.Common.PlayerOrBuilder>( + player_, + getParentForChildren(), + isClean()); + player_ = null; } - } - /** - * optional string family = 2; - * - *
-         * 家族
-         * 
- */ - public Builder setFamily( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - family_ = value; - onChanged(); - return this; - } - /** - * optional string family = 2; - * - *
-         * 家族
-         * 
- */ - public Builder clearFamily() { - bitField0_ = (bitField0_ & ~0x00000002); - family_ = getDefaultInstance().getFamily(); - onChanged(); - return this; - } - /** - * optional string family = 2; - * - *
-         * 家族
-         * 
- */ - public Builder setFamilyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - family_ = value; - onChanged(); - return this; - } - - // optional int32 rank = 3; - private int rank_ ; - /** - * optional int32 rank = 3; - * - *
-         * 上赛季排名
-         * 
- */ - public boolean hasRank() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - * optional int32 rank = 3; - * - *
-         * 上赛季排名
-         * 
- */ - public int getRank() { - return rank_; - } - /** - * optional int32 rank = 3; - * - *
-         * 上赛季排名
-         * 
- */ - public Builder setRank(int value) { - bitField0_ |= 0x00000004; - rank_ = value; - onChanged(); - return this; - } - /** - * optional int32 rank = 3; - * - *
-         * 上赛季排名
-         * 
- */ - public Builder clearRank() { - bitField0_ = (bitField0_ & ~0x00000004); - rank_ = 0; - onChanged(); - return this; + return playerBuilder_; } // @@protoc_insertion_point(builder_scope:com.ljsd.jieling.protocols.PlayerInfo.GetPlayerInfoResponse) @@ -1553,6 +2263,1232 @@ public final class PlayerInfoProto { // @@protoc_insertion_point(class_scope:com.ljsd.jieling.protocols.PlayerInfo.GetPlayerInfoResponse) } + public interface GetItemInfoRequestOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // optional int32 num = 1; + /** + * optional int32 num = 1; + */ + boolean hasNum(); + /** + * optional int32 num = 1; + */ + int getNum(); + + // optional string str = 2; + /** + * optional string str = 2; + */ + boolean hasStr(); + /** + * optional string str = 2; + */ + java.lang.String getStr(); + /** + * optional string str = 2; + */ + com.google.protobuf.ByteString + getStrBytes(); + } + /** + * Protobuf type {@code com.ljsd.jieling.protocols.PlayerInfo.GetItemInfoRequest} + */ + public static final class GetItemInfoRequest extends + com.google.protobuf.GeneratedMessage + implements GetItemInfoRequestOrBuilder { + // Use GetItemInfoRequest.newBuilder() to construct. + private GetItemInfoRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private GetItemInfoRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final GetItemInfoRequest defaultInstance; + public static GetItemInfoRequest getDefaultInstance() { + return defaultInstance; + } + + public GetItemInfoRequest getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetItemInfoRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 8: { + bitField0_ |= 0x00000001; + num_ = input.readInt32(); + break; + } + case 18: { + bitField0_ |= 0x00000002; + str_ = input.readBytes(); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.ljsd.jieling.protocols.PlayerInfoProto.internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetItemInfoRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.ljsd.jieling.protocols.PlayerInfoProto.internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetItemInfoRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoRequest.class, com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoRequest.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public GetItemInfoRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetItemInfoRequest(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + // optional int32 num = 1; + public static final int NUM_FIELD_NUMBER = 1; + private int num_; + /** + * optional int32 num = 1; + */ + public boolean hasNum() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional int32 num = 1; + */ + public int getNum() { + return num_; + } + + // optional string str = 2; + public static final int STR_FIELD_NUMBER = 2; + private java.lang.Object str_; + /** + * optional string str = 2; + */ + public boolean hasStr() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional string str = 2; + */ + public java.lang.String getStr() { + java.lang.Object ref = str_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + str_ = s; + } + return s; + } + } + /** + * optional string str = 2; + */ + public com.google.protobuf.ByteString + getStrBytes() { + java.lang.Object ref = str_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + str_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private void initFields() { + num_ = 0; + str_ = ""; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeInt32(1, num_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(2, getStrBytes()); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, num_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, getStrBytes()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoRequest prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code com.ljsd.jieling.protocols.PlayerInfo.GetItemInfoRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.ljsd.jieling.protocols.PlayerInfoProto.internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetItemInfoRequest_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.ljsd.jieling.protocols.PlayerInfoProto.internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetItemInfoRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoRequest.class, com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoRequest.Builder.class); + } + + // Construct using com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + num_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + str_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.ljsd.jieling.protocols.PlayerInfoProto.internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetItemInfoRequest_descriptor; + } + + public com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoRequest getDefaultInstanceForType() { + return com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoRequest.getDefaultInstance(); + } + + public com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoRequest build() { + com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoRequest buildPartial() { + com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoRequest result = new com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoRequest(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.num_ = num_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.str_ = str_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoRequest) { + return mergeFrom((com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoRequest other) { + if (other == com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoRequest.getDefaultInstance()) return this; + if (other.hasNum()) { + setNum(other.getNum()); + } + if (other.hasStr()) { + bitField0_ |= 0x00000002; + str_ = other.str_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoRequest) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // optional int32 num = 1; + private int num_ ; + /** + * optional int32 num = 1; + */ + public boolean hasNum() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional int32 num = 1; + */ + public int getNum() { + return num_; + } + /** + * optional int32 num = 1; + */ + public Builder setNum(int value) { + bitField0_ |= 0x00000001; + num_ = value; + onChanged(); + return this; + } + /** + * optional int32 num = 1; + */ + public Builder clearNum() { + bitField0_ = (bitField0_ & ~0x00000001); + num_ = 0; + onChanged(); + return this; + } + + // optional string str = 2; + private java.lang.Object str_ = ""; + /** + * optional string str = 2; + */ + public boolean hasStr() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional string str = 2; + */ + public java.lang.String getStr() { + java.lang.Object ref = str_; + if (!(ref instanceof java.lang.String)) { + java.lang.String s = ((com.google.protobuf.ByteString) ref) + .toStringUtf8(); + str_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string str = 2; + */ + public com.google.protobuf.ByteString + getStrBytes() { + java.lang.Object ref = str_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + str_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string str = 2; + */ + public Builder setStr( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + str_ = value; + onChanged(); + return this; + } + /** + * optional string str = 2; + */ + public Builder clearStr() { + bitField0_ = (bitField0_ & ~0x00000002); + str_ = getDefaultInstance().getStr(); + onChanged(); + return this; + } + /** + * optional string str = 2; + */ + public Builder setStrBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + str_ = value; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:com.ljsd.jieling.protocols.PlayerInfo.GetItemInfoRequest) + } + + static { + defaultInstance = new GetItemInfoRequest(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:com.ljsd.jieling.protocols.PlayerInfo.GetItemInfoRequest) + } + + public interface GetItemInfoResponseOrBuilder + extends com.google.protobuf.MessageOrBuilder { + + // repeated .com.ljsd.jieling.protocols.Common.Item itemlist = 1; + /** + * repeated .com.ljsd.jieling.protocols.Common.Item itemlist = 1; + */ + java.util.List + getItemlistList(); + /** + * repeated .com.ljsd.jieling.protocols.Common.Item itemlist = 1; + */ + com.ljsd.jieling.protocols.CommonProto.Common.Item getItemlist(int index); + /** + * repeated .com.ljsd.jieling.protocols.Common.Item itemlist = 1; + */ + int getItemlistCount(); + /** + * repeated .com.ljsd.jieling.protocols.Common.Item itemlist = 1; + */ + java.util.List + getItemlistOrBuilderList(); + /** + * repeated .com.ljsd.jieling.protocols.Common.Item itemlist = 1; + */ + com.ljsd.jieling.protocols.CommonProto.Common.ItemOrBuilder getItemlistOrBuilder( + int index); + } + /** + * Protobuf type {@code com.ljsd.jieling.protocols.PlayerInfo.GetItemInfoResponse} + */ + public static final class GetItemInfoResponse extends + com.google.protobuf.GeneratedMessage + implements GetItemInfoResponseOrBuilder { + // Use GetItemInfoResponse.newBuilder() to construct. + private GetItemInfoResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private GetItemInfoResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final GetItemInfoResponse defaultInstance; + public static GetItemInfoResponse getDefaultInstance() { + return defaultInstance; + } + + public GetItemInfoResponse getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetItemInfoResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + initFields(); + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField(input, unknownFields, + extensionRegistry, tag)) { + done = true; + } + break; + } + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + itemlist_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + itemlist_.add(input.readMessage(com.ljsd.jieling.protocols.CommonProto.Common.Item.PARSER, extensionRegistry)); + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e.getMessage()).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + itemlist_ = java.util.Collections.unmodifiableList(itemlist_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.ljsd.jieling.protocols.PlayerInfoProto.internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetItemInfoResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.ljsd.jieling.protocols.PlayerInfoProto.internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetItemInfoResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoResponse.class, com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoResponse.Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public GetItemInfoResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetItemInfoResponse(input, extensionRegistry); + } + }; + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + // repeated .com.ljsd.jieling.protocols.Common.Item itemlist = 1; + public static final int ITEMLIST_FIELD_NUMBER = 1; + private java.util.List itemlist_; + /** + * repeated .com.ljsd.jieling.protocols.Common.Item itemlist = 1; + */ + public java.util.List getItemlistList() { + return itemlist_; + } + /** + * repeated .com.ljsd.jieling.protocols.Common.Item itemlist = 1; + */ + public java.util.List + getItemlistOrBuilderList() { + return itemlist_; + } + /** + * repeated .com.ljsd.jieling.protocols.Common.Item itemlist = 1; + */ + public int getItemlistCount() { + return itemlist_.size(); + } + /** + * repeated .com.ljsd.jieling.protocols.Common.Item itemlist = 1; + */ + public com.ljsd.jieling.protocols.CommonProto.Common.Item getItemlist(int index) { + return itemlist_.get(index); + } + /** + * repeated .com.ljsd.jieling.protocols.Common.Item itemlist = 1; + */ + public com.ljsd.jieling.protocols.CommonProto.Common.ItemOrBuilder getItemlistOrBuilder( + int index) { + return itemlist_.get(index); + } + + private void initFields() { + itemlist_ = java.util.Collections.emptyList(); + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized != -1) return isInitialized == 1; + + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + for (int i = 0; i < itemlist_.size(); i++) { + output.writeMessage(1, itemlist_.get(i)); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < itemlist_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, itemlist_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @java.lang.Override + protected java.lang.Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoResponse prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code com.ljsd.jieling.protocols.PlayerInfo.GetItemInfoResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder + implements com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.ljsd.jieling.protocols.PlayerInfoProto.internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetItemInfoResponse_descriptor; + } + + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.ljsd.jieling.protocols.PlayerInfoProto.internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetItemInfoResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoResponse.class, com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoResponse.Builder.class); + } + + // Construct using com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getItemlistFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + if (itemlistBuilder_ == null) { + itemlist_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + itemlistBuilder_.clear(); + } + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.ljsd.jieling.protocols.PlayerInfoProto.internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetItemInfoResponse_descriptor; + } + + public com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoResponse getDefaultInstanceForType() { + return com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoResponse.getDefaultInstance(); + } + + public com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoResponse build() { + com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoResponse buildPartial() { + com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoResponse result = new com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoResponse(this); + int from_bitField0_ = bitField0_; + if (itemlistBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + itemlist_ = java.util.Collections.unmodifiableList(itemlist_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.itemlist_ = itemlist_; + } else { + result.itemlist_ = itemlistBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoResponse) { + return mergeFrom((com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoResponse other) { + if (other == com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoResponse.getDefaultInstance()) return this; + if (itemlistBuilder_ == null) { + if (!other.itemlist_.isEmpty()) { + if (itemlist_.isEmpty()) { + itemlist_ = other.itemlist_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureItemlistIsMutable(); + itemlist_.addAll(other.itemlist_); + } + onChanged(); + } + } else { + if (!other.itemlist_.isEmpty()) { + if (itemlistBuilder_.isEmpty()) { + itemlistBuilder_.dispose(); + itemlistBuilder_ = null; + itemlist_ = other.itemlist_; + bitField0_ = (bitField0_ & ~0x00000001); + itemlistBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getItemlistFieldBuilder() : null; + } else { + itemlistBuilder_.addAllMessages(other.itemlist_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.ljsd.jieling.protocols.PlayerInfoProto.PlayerInfo.GetItemInfoResponse) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + // repeated .com.ljsd.jieling.protocols.Common.Item itemlist = 1; + private java.util.List itemlist_ = + java.util.Collections.emptyList(); + private void ensureItemlistIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + itemlist_ = new java.util.ArrayList(itemlist_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.ljsd.jieling.protocols.CommonProto.Common.Item, com.ljsd.jieling.protocols.CommonProto.Common.Item.Builder, com.ljsd.jieling.protocols.CommonProto.Common.ItemOrBuilder> itemlistBuilder_; + + /** + * repeated .com.ljsd.jieling.protocols.Common.Item itemlist = 1; + */ + public java.util.List getItemlistList() { + if (itemlistBuilder_ == null) { + return java.util.Collections.unmodifiableList(itemlist_); + } else { + return itemlistBuilder_.getMessageList(); + } + } + /** + * repeated .com.ljsd.jieling.protocols.Common.Item itemlist = 1; + */ + public int getItemlistCount() { + if (itemlistBuilder_ == null) { + return itemlist_.size(); + } else { + return itemlistBuilder_.getCount(); + } + } + /** + * repeated .com.ljsd.jieling.protocols.Common.Item itemlist = 1; + */ + public com.ljsd.jieling.protocols.CommonProto.Common.Item getItemlist(int index) { + if (itemlistBuilder_ == null) { + return itemlist_.get(index); + } else { + return itemlistBuilder_.getMessage(index); + } + } + /** + * repeated .com.ljsd.jieling.protocols.Common.Item itemlist = 1; + */ + public Builder setItemlist( + int index, com.ljsd.jieling.protocols.CommonProto.Common.Item value) { + if (itemlistBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemlistIsMutable(); + itemlist_.set(index, value); + onChanged(); + } else { + itemlistBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .com.ljsd.jieling.protocols.Common.Item itemlist = 1; + */ + public Builder setItemlist( + int index, com.ljsd.jieling.protocols.CommonProto.Common.Item.Builder builderForValue) { + if (itemlistBuilder_ == null) { + ensureItemlistIsMutable(); + itemlist_.set(index, builderForValue.build()); + onChanged(); + } else { + itemlistBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .com.ljsd.jieling.protocols.Common.Item itemlist = 1; + */ + public Builder addItemlist(com.ljsd.jieling.protocols.CommonProto.Common.Item value) { + if (itemlistBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemlistIsMutable(); + itemlist_.add(value); + onChanged(); + } else { + itemlistBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .com.ljsd.jieling.protocols.Common.Item itemlist = 1; + */ + public Builder addItemlist( + int index, com.ljsd.jieling.protocols.CommonProto.Common.Item value) { + if (itemlistBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemlistIsMutable(); + itemlist_.add(index, value); + onChanged(); + } else { + itemlistBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .com.ljsd.jieling.protocols.Common.Item itemlist = 1; + */ + public Builder addItemlist( + com.ljsd.jieling.protocols.CommonProto.Common.Item.Builder builderForValue) { + if (itemlistBuilder_ == null) { + ensureItemlistIsMutable(); + itemlist_.add(builderForValue.build()); + onChanged(); + } else { + itemlistBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .com.ljsd.jieling.protocols.Common.Item itemlist = 1; + */ + public Builder addItemlist( + int index, com.ljsd.jieling.protocols.CommonProto.Common.Item.Builder builderForValue) { + if (itemlistBuilder_ == null) { + ensureItemlistIsMutable(); + itemlist_.add(index, builderForValue.build()); + onChanged(); + } else { + itemlistBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .com.ljsd.jieling.protocols.Common.Item itemlist = 1; + */ + public Builder addAllItemlist( + java.lang.Iterable values) { + if (itemlistBuilder_ == null) { + ensureItemlistIsMutable(); + super.addAll(values, itemlist_); + onChanged(); + } else { + itemlistBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .com.ljsd.jieling.protocols.Common.Item itemlist = 1; + */ + public Builder clearItemlist() { + if (itemlistBuilder_ == null) { + itemlist_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + itemlistBuilder_.clear(); + } + return this; + } + /** + * repeated .com.ljsd.jieling.protocols.Common.Item itemlist = 1; + */ + public Builder removeItemlist(int index) { + if (itemlistBuilder_ == null) { + ensureItemlistIsMutable(); + itemlist_.remove(index); + onChanged(); + } else { + itemlistBuilder_.remove(index); + } + return this; + } + /** + * repeated .com.ljsd.jieling.protocols.Common.Item itemlist = 1; + */ + public com.ljsd.jieling.protocols.CommonProto.Common.Item.Builder getItemlistBuilder( + int index) { + return getItemlistFieldBuilder().getBuilder(index); + } + /** + * repeated .com.ljsd.jieling.protocols.Common.Item itemlist = 1; + */ + public com.ljsd.jieling.protocols.CommonProto.Common.ItemOrBuilder getItemlistOrBuilder( + int index) { + if (itemlistBuilder_ == null) { + return itemlist_.get(index); } else { + return itemlistBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .com.ljsd.jieling.protocols.Common.Item itemlist = 1; + */ + public java.util.List + getItemlistOrBuilderList() { + if (itemlistBuilder_ != null) { + return itemlistBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(itemlist_); + } + } + /** + * repeated .com.ljsd.jieling.protocols.Common.Item itemlist = 1; + */ + public com.ljsd.jieling.protocols.CommonProto.Common.Item.Builder addItemlistBuilder() { + return getItemlistFieldBuilder().addBuilder( + com.ljsd.jieling.protocols.CommonProto.Common.Item.getDefaultInstance()); + } + /** + * repeated .com.ljsd.jieling.protocols.Common.Item itemlist = 1; + */ + public com.ljsd.jieling.protocols.CommonProto.Common.Item.Builder addItemlistBuilder( + int index) { + return getItemlistFieldBuilder().addBuilder( + index, com.ljsd.jieling.protocols.CommonProto.Common.Item.getDefaultInstance()); + } + /** + * repeated .com.ljsd.jieling.protocols.Common.Item itemlist = 1; + */ + public java.util.List + getItemlistBuilderList() { + return getItemlistFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + com.ljsd.jieling.protocols.CommonProto.Common.Item, com.ljsd.jieling.protocols.CommonProto.Common.Item.Builder, com.ljsd.jieling.protocols.CommonProto.Common.ItemOrBuilder> + getItemlistFieldBuilder() { + if (itemlistBuilder_ == null) { + itemlistBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + com.ljsd.jieling.protocols.CommonProto.Common.Item, com.ljsd.jieling.protocols.CommonProto.Common.Item.Builder, com.ljsd.jieling.protocols.CommonProto.Common.ItemOrBuilder>( + itemlist_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + itemlist_ = null; + } + return itemlistBuilder_; + } + + // @@protoc_insertion_point(builder_scope:com.ljsd.jieling.protocols.PlayerInfo.GetItemInfoResponse) + } + + static { + defaultInstance = new GetItemInfoResponse(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:com.ljsd.jieling.protocols.PlayerInfo.GetItemInfoResponse) + } + private void initFields() { } private byte memoizedIsInitialized = -1; @@ -1775,6 +3711,16 @@ public final class PlayerInfoProto { private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_ljsd_jieling_protocols_PlayerInfo_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_com_ljsd_jieling_protocols_PlayerInfo_LoginRequest_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_com_ljsd_jieling_protocols_PlayerInfo_LoginRequest_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_com_ljsd_jieling_protocols_PlayerInfo_LoginResponse_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_com_ljsd_jieling_protocols_PlayerInfo_LoginResponse_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetPlayerInfoRequest_descriptor; private static @@ -1785,6 +3731,16 @@ public final class PlayerInfoProto { private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetPlayerInfoResponse_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetItemInfoRequest_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetItemInfoRequest_fieldAccessorTable; + private static com.google.protobuf.Descriptors.Descriptor + internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetItemInfoResponse_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetItemInfoResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -1795,11 +3751,17 @@ public final class PlayerInfoProto { static { java.lang.String[] descriptorData = { "\n\025PlayerInfoProto.proto\022\032com.ljsd.jielin" + - "g.protocols\"\220\001\n\nPlayerInfo\032>\n\024GetPlayerI" + - "nfoRequest\022\013\n\003num\030\001 \001(\005\022\013\n\003str\030\002 \001(\t\022\014\n\004" + - "str1\030\003 \001(\t\032B\n\025GetPlayerInfoResponse\022\013\n\003s" + - "ex\030\001 \001(\005\022\016\n\006family\030\002 \001(\t\022\014\n\004rank\030\003 \001(\005B\002" + - "H\001" + "g.protocols\032\021CommonProto.proto\"\365\002\n\nPlaye" + + "rInfo\032(\n\014LoginRequest\022\013\n\003num\030\001 \001(\005\022\013\n\003st" + + "r\030\002 \001(\t\0325\n\rLoginResponse\022\022\n\nresultCode\030\001" + + " \001(\005\022\020\n\010newToken\030\002 \001(\t\0320\n\024GetPlayerInfoR" + + "equest\022\013\n\003num\030\001 \001(\005\022\013\n\003str\030\002 \001(\t\032R\n\025GetP" + + "layerInfoResponse\0229\n\006player\030\001 \001(\0132).com." + + "ljsd.jieling.protocols.Common.Player\032.\n\022" + + "GetItemInfoRequest\022\013\n\003num\030\001 \001(\005\022\013\n\003str\030\002" + + " \001(\t\032P\n\023GetItemInfoResponse\0229\n\010itemlist\030", + "\001 \003(\0132\'.com.ljsd.jieling.protocols.Commo" + + "n.ItemB\002H\001" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { @@ -1812,24 +3774,49 @@ public final class PlayerInfoProto { com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_ljsd_jieling_protocols_PlayerInfo_descriptor, new java.lang.String[] { }); - internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetPlayerInfoRequest_descriptor = + internal_static_com_ljsd_jieling_protocols_PlayerInfo_LoginRequest_descriptor = internal_static_com_ljsd_jieling_protocols_PlayerInfo_descriptor.getNestedTypes().get(0); + internal_static_com_ljsd_jieling_protocols_PlayerInfo_LoginRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_ljsd_jieling_protocols_PlayerInfo_LoginRequest_descriptor, + new java.lang.String[] { "Num", "Str", }); + internal_static_com_ljsd_jieling_protocols_PlayerInfo_LoginResponse_descriptor = + internal_static_com_ljsd_jieling_protocols_PlayerInfo_descriptor.getNestedTypes().get(1); + internal_static_com_ljsd_jieling_protocols_PlayerInfo_LoginResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_ljsd_jieling_protocols_PlayerInfo_LoginResponse_descriptor, + new java.lang.String[] { "ResultCode", "NewToken", }); + internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetPlayerInfoRequest_descriptor = + internal_static_com_ljsd_jieling_protocols_PlayerInfo_descriptor.getNestedTypes().get(2); internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetPlayerInfoRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetPlayerInfoRequest_descriptor, - new java.lang.String[] { "Num", "Str", "Str1", }); + new java.lang.String[] { "Num", "Str", }); internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetPlayerInfoResponse_descriptor = - internal_static_com_ljsd_jieling_protocols_PlayerInfo_descriptor.getNestedTypes().get(1); + internal_static_com_ljsd_jieling_protocols_PlayerInfo_descriptor.getNestedTypes().get(3); internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetPlayerInfoResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetPlayerInfoResponse_descriptor, - new java.lang.String[] { "Sex", "Family", "Rank", }); + new java.lang.String[] { "Player", }); + internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetItemInfoRequest_descriptor = + internal_static_com_ljsd_jieling_protocols_PlayerInfo_descriptor.getNestedTypes().get(4); + internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetItemInfoRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetItemInfoRequest_descriptor, + new java.lang.String[] { "Num", "Str", }); + internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetItemInfoResponse_descriptor = + internal_static_com_ljsd_jieling_protocols_PlayerInfo_descriptor.getNestedTypes().get(5); + internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetItemInfoResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_com_ljsd_jieling_protocols_PlayerInfo_GetItemInfoResponse_descriptor, + new java.lang.String[] { "Itemlist", }); return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { + com.ljsd.jieling.protocols.CommonProto.getDescriptor(), }, assigner); }