/docs/weixin_7.0.4_source/反编译源码/未反混淆/src/main/java/com/tencent/mm/protocal/protobuf/clg.java

https://github.com/HelloHuDi/AndroidReverseNotes · Java · 213 lines · 210 code · 3 blank · 0 comment · 58 complexity · 73160f96ff410027d529b2f47594bc01 MD5 · raw file

  1. package com.tencent.mm.protocal.protobuf;
  2. import com.tencent.matrix.trace.core.AppMethodBeat;
  3. import e.a.a.b;
  4. import e.a.a.c.a;
  5. import java.util.LinkedList;
  6. public final class clg extends bsr {
  7. public int nda;
  8. public int ptw;
  9. public int ptx;
  10. public int pty;
  11. public SKBuiltinBuffer_t ptz;
  12. public bts xiT;
  13. public bts xiU;
  14. public int xiV;
  15. public int xiW;
  16. public int xiX;
  17. public int xiY;
  18. public final int op(int i, Object... objArr) {
  19. AppMethodBeat.i(116809);
  20. b bVar;
  21. int ix;
  22. if (i == 0) {
  23. a aVar = (a) objArr[0];
  24. if (this.xiT == null) {
  25. bVar = new b("Not all required fields were included: ClientMediaId");
  26. AppMethodBeat.o(116809);
  27. throw bVar;
  28. } else if (this.xiU == null) {
  29. bVar = new b("Not all required fields were included: DataMD5");
  30. AppMethodBeat.o(116809);
  31. throw bVar;
  32. } else if (this.ptz == null) {
  33. bVar = new b("Not all required fields were included: Data");
  34. AppMethodBeat.o(116809);
  35. throw bVar;
  36. } else {
  37. if (this.BaseRequest != null) {
  38. aVar.iy(1, this.BaseRequest.computeSize());
  39. this.BaseRequest.writeFields(aVar);
  40. }
  41. if (this.xiT != null) {
  42. aVar.iy(2, this.xiT.computeSize());
  43. this.xiT.writeFields(aVar);
  44. }
  45. if (this.xiU != null) {
  46. aVar.iy(3, this.xiU.computeSize());
  47. this.xiU.writeFields(aVar);
  48. }
  49. aVar.iz(4, this.ptw);
  50. aVar.iz(5, this.ptx);
  51. aVar.iz(6, this.pty);
  52. if (this.ptz != null) {
  53. aVar.iy(7, this.ptz.computeSize());
  54. this.ptz.writeFields(aVar);
  55. }
  56. aVar.iz(8, this.nda);
  57. aVar.iz(9, this.xiV);
  58. aVar.iz(10, this.xiW);
  59. aVar.iz(11, this.xiX);
  60. aVar.iz(12, this.xiY);
  61. AppMethodBeat.o(116809);
  62. return 0;
  63. }
  64. } else if (i == 1) {
  65. if (this.BaseRequest != null) {
  66. ix = e.a.a.a.ix(1, this.BaseRequest.computeSize()) + 0;
  67. } else {
  68. ix = 0;
  69. }
  70. if (this.xiT != null) {
  71. ix += e.a.a.a.ix(2, this.xiT.computeSize());
  72. }
  73. if (this.xiU != null) {
  74. ix += e.a.a.a.ix(3, this.xiU.computeSize());
  75. }
  76. ix = ((ix + e.a.a.b.b.a.bs(4, this.ptw)) + e.a.a.b.b.a.bs(5, this.ptx)) + e.a.a.b.b.a.bs(6, this.pty);
  77. if (this.ptz != null) {
  78. ix += e.a.a.a.ix(7, this.ptz.computeSize());
  79. }
  80. int bs = ((((ix + e.a.a.b.b.a.bs(8, this.nda)) + e.a.a.b.b.a.bs(9, this.xiV)) + e.a.a.b.b.a.bs(10, this.xiW)) + e.a.a.b.b.a.bs(11, this.xiX)) + e.a.a.b.b.a.bs(12, this.xiY);
  81. AppMethodBeat.o(116809);
  82. return bs;
  83. } else if (i == 2) {
  84. e.a.a.a.a aVar2 = new e.a.a.a.a((byte[]) objArr[0], unknownTagHandler);
  85. for (ix = com.tencent.mm.bt.a.getNextFieldNumber(aVar2); ix > 0; ix = com.tencent.mm.bt.a.getNextFieldNumber(aVar2)) {
  86. if (!super.populateBuilderWithField(aVar2, this, ix)) {
  87. aVar2.ems();
  88. }
  89. }
  90. if (this.xiT == null) {
  91. bVar = new b("Not all required fields were included: ClientMediaId");
  92. AppMethodBeat.o(116809);
  93. throw bVar;
  94. } else if (this.xiU == null) {
  95. bVar = new b("Not all required fields were included: DataMD5");
  96. AppMethodBeat.o(116809);
  97. throw bVar;
  98. } else if (this.ptz == null) {
  99. bVar = new b("Not all required fields were included: Data");
  100. AppMethodBeat.o(116809);
  101. throw bVar;
  102. } else {
  103. AppMethodBeat.o(116809);
  104. return 0;
  105. }
  106. } else if (i == 3) {
  107. e.a.a.a.a aVar3 = (e.a.a.a.a) objArr[0];
  108. clg clg = (clg) objArr[1];
  109. int intValue = ((Integer) objArr[2]).intValue();
  110. LinkedList Vh;
  111. int size;
  112. byte[] bArr;
  113. e.a.a.a.a aVar4;
  114. boolean z;
  115. bts bts;
  116. switch (intValue) {
  117. case 1:
  118. Vh = aVar3.Vh(intValue);
  119. size = Vh.size();
  120. for (intValue = 0; intValue < size; intValue++) {
  121. bArr = (byte[]) Vh.get(intValue);
  122. hl hlVar = new hl();
  123. aVar4 = new e.a.a.a.a(bArr, unknownTagHandler);
  124. for (z = true; z; z = hlVar.populateBuilderWithField(aVar4, hlVar, com.tencent.mm.bt.a.getNextFieldNumber(aVar4))) {
  125. }
  126. clg.BaseRequest = hlVar;
  127. }
  128. AppMethodBeat.o(116809);
  129. return 0;
  130. case 2:
  131. Vh = aVar3.Vh(intValue);
  132. size = Vh.size();
  133. for (intValue = 0; intValue < size; intValue++) {
  134. bArr = (byte[]) Vh.get(intValue);
  135. bts = new bts();
  136. aVar4 = new e.a.a.a.a(bArr, unknownTagHandler);
  137. for (z = true; z; z = bts.populateBuilderWithField(aVar4, bts, com.tencent.mm.bt.a.getNextFieldNumber(aVar4))) {
  138. }
  139. clg.xiT = bts;
  140. }
  141. AppMethodBeat.o(116809);
  142. return 0;
  143. case 3:
  144. Vh = aVar3.Vh(intValue);
  145. size = Vh.size();
  146. for (intValue = 0; intValue < size; intValue++) {
  147. bArr = (byte[]) Vh.get(intValue);
  148. bts = new bts();
  149. aVar4 = new e.a.a.a.a(bArr, unknownTagHandler);
  150. for (z = true; z; z = bts.populateBuilderWithField(aVar4, bts, com.tencent.mm.bt.a.getNextFieldNumber(aVar4))) {
  151. }
  152. clg.xiU = bts;
  153. }
  154. AppMethodBeat.o(116809);
  155. return 0;
  156. case 4:
  157. clg.ptw = aVar3.BTU.vd();
  158. AppMethodBeat.o(116809);
  159. return 0;
  160. case 5:
  161. clg.ptx = aVar3.BTU.vd();
  162. AppMethodBeat.o(116809);
  163. return 0;
  164. case 6:
  165. clg.pty = aVar3.BTU.vd();
  166. AppMethodBeat.o(116809);
  167. return 0;
  168. case 7:
  169. Vh = aVar3.Vh(intValue);
  170. size = Vh.size();
  171. for (intValue = 0; intValue < size; intValue++) {
  172. bArr = (byte[]) Vh.get(intValue);
  173. SKBuiltinBuffer_t sKBuiltinBuffer_t = new SKBuiltinBuffer_t();
  174. aVar4 = new e.a.a.a.a(bArr, unknownTagHandler);
  175. for (z = true; z; z = sKBuiltinBuffer_t.populateBuilderWithField(aVar4, sKBuiltinBuffer_t, com.tencent.mm.bt.a.getNextFieldNumber(aVar4))) {
  176. }
  177. clg.ptz = sKBuiltinBuffer_t;
  178. }
  179. AppMethodBeat.o(116809);
  180. return 0;
  181. case 8:
  182. clg.nda = aVar3.BTU.vd();
  183. AppMethodBeat.o(116809);
  184. return 0;
  185. case 9:
  186. clg.xiV = aVar3.BTU.vd();
  187. AppMethodBeat.o(116809);
  188. return 0;
  189. case 10:
  190. clg.xiW = aVar3.BTU.vd();
  191. AppMethodBeat.o(116809);
  192. return 0;
  193. case 11:
  194. clg.xiX = aVar3.BTU.vd();
  195. AppMethodBeat.o(116809);
  196. return 0;
  197. case 12:
  198. clg.xiY = aVar3.BTU.vd();
  199. AppMethodBeat.o(116809);
  200. return 0;
  201. default:
  202. AppMethodBeat.o(116809);
  203. return -1;
  204. }
  205. } else {
  206. AppMethodBeat.o(116809);
  207. return -1;
  208. }
  209. }
  210. }