@juzi/wechaty-grpc 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (636) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +351 -0
  3. package/dist/cjs/commonjs/README.md +15 -0
  4. package/dist/cjs/commonjs/code-root.cjs +10 -0
  5. package/dist/cjs/commonjs/code-root.cjs.d.ts +1 -0
  6. package/dist/cjs/commonjs/code-root.spec.ts +9 -0
  7. package/dist/cjs/commonjs/generated/google.cjs +9 -0
  8. package/dist/cjs/commonjs/generated/google.cjs.d.ts +2 -0
  9. package/dist/cjs/commonjs/generated/google.spec.ts +13 -0
  10. package/dist/cjs/commonjs/generated/puppet.cjs +39 -0
  11. package/dist/cjs/commonjs/generated/puppet.cjs.d.ts +42 -0
  12. package/dist/cjs/commonjs/generated/puppet.spec.ts +19 -0
  13. package/dist/cjs/commonjs/package.json +1 -0
  14. package/dist/cjs/examples/auth/client.d.ts +3 -0
  15. package/dist/cjs/examples/auth/client.d.ts.map +1 -0
  16. package/dist/cjs/examples/auth/client.js +52 -0
  17. package/dist/cjs/examples/auth/client.js.map +1 -0
  18. package/dist/cjs/examples/auth/raw-https/client.d.ts +2 -0
  19. package/dist/cjs/examples/auth/raw-https/client.d.ts.map +1 -0
  20. package/dist/cjs/examples/auth/raw-https/client.js +21 -0
  21. package/dist/cjs/examples/auth/raw-https/client.js.map +1 -0
  22. package/dist/cjs/examples/auth/raw-https/server.d.ts +2 -0
  23. package/dist/cjs/examples/auth/raw-https/server.d.ts.map +1 -0
  24. package/dist/cjs/examples/auth/raw-https/server.js +18 -0
  25. package/dist/cjs/examples/auth/raw-https/server.js.map +1 -0
  26. package/dist/cjs/examples/auth/server.d.ts +2 -0
  27. package/dist/cjs/examples/auth/server.d.ts.map +1 -0
  28. package/dist/cjs/examples/auth/server.js +117 -0
  29. package/dist/cjs/examples/auth/server.js.map +1 -0
  30. package/dist/cjs/examples/client.d.ts +5 -0
  31. package/dist/cjs/examples/client.d.ts.map +1 -0
  32. package/dist/cjs/examples/client.js +83 -0
  33. package/dist/cjs/examples/client.js.map +1 -0
  34. package/dist/cjs/examples/promisify.d.ts +49 -0
  35. package/dist/cjs/examples/promisify.d.ts.map +1 -0
  36. package/dist/cjs/examples/promisify.js +6 -0
  37. package/dist/cjs/examples/promisify.js.map +1 -0
  38. package/dist/cjs/examples/server.d.ts +2 -0
  39. package/dist/cjs/examples/server.d.ts.map +1 -0
  40. package/dist/cjs/examples/server.js +83 -0
  41. package/dist/cjs/examples/server.js.map +1 -0
  42. package/dist/cjs/out/google/api/annotations_grpc_pb.js +1 -0
  43. package/dist/cjs/out/google/api/annotations_pb.d.ts +9 -0
  44. package/dist/cjs/out/google/api/annotations_pb.js +48 -0
  45. package/dist/cjs/out/google/api/annotations_pb_service.d.ts +3 -0
  46. package/dist/cjs/out/google/api/annotations_pb_service.js +3 -0
  47. package/dist/cjs/out/google/api/health_check/v1/health_check_grpc_pb.d.ts +56 -0
  48. package/dist/cjs/out/google/api/health_check/v1/health_check_grpc_pb.js +90 -0
  49. package/dist/cjs/out/google/api/health_check/v1/health_check_pb.d.ts +54 -0
  50. package/dist/cjs/out/google/api/health_check/v1/health_check_pb.js +333 -0
  51. package/dist/cjs/out/google/api/health_check/v1/health_check_pb_service.d.ts +74 -0
  52. package/dist/cjs/out/google/api/health_check/v1/health_check_pb_service.js +109 -0
  53. package/dist/cjs/out/google/api/http_grpc_pb.js +1 -0
  54. package/dist/cjs/out/google/api/http_pb.d.ts +136 -0
  55. package/dist/cjs/out/google/api/http_pb.js +1006 -0
  56. package/dist/cjs/out/google/api/http_pb_service.d.ts +3 -0
  57. package/dist/cjs/out/google/api/http_pb_service.js +3 -0
  58. package/dist/cjs/out/package.json +1 -0
  59. package/dist/cjs/out/protoc-gen-openapiv2/options/annotations_grpc_pb.js +1 -0
  60. package/dist/cjs/out/protoc-gen-openapiv2/options/annotations_pb.d.ts +17 -0
  61. package/dist/cjs/out/protoc-gen-openapiv2/options/annotations_pb.js +152 -0
  62. package/dist/cjs/out/protoc-gen-openapiv2/options/annotations_pb_service.d.ts +3 -0
  63. package/dist/cjs/out/protoc-gen-openapiv2/options/annotations_pb_service.js +3 -0
  64. package/dist/cjs/out/protoc-gen-openapiv2/options/openapiv2_grpc_pb.js +1 -0
  65. package/dist/cjs/out/protoc-gen-openapiv2/options/openapiv2_pb.d.ts +747 -0
  66. package/dist/cjs/out/protoc-gen-openapiv2/options/openapiv2_pb.js +5603 -0
  67. package/dist/cjs/out/protoc-gen-openapiv2/options/openapiv2_pb_service.d.ts +3 -0
  68. package/dist/cjs/out/protoc-gen-openapiv2/options/openapiv2_pb_service.js +3 -0
  69. package/dist/cjs/out/wechaty/deprecated/file-box_grpc_pb.js +1 -0
  70. package/dist/cjs/out/wechaty/deprecated/file-box_pb.d.ts +179 -0
  71. package/dist/cjs/out/wechaty/deprecated/file-box_pb.js +1368 -0
  72. package/dist/cjs/out/wechaty/deprecated/file-box_pb_service.d.ts +3 -0
  73. package/dist/cjs/out/wechaty/deprecated/file-box_pb_service.js +3 -0
  74. package/dist/cjs/out/wechaty/puppet/base_grpc_pb.js +1 -0
  75. package/dist/cjs/out/wechaty/puppet/base_pb.d.ts +224 -0
  76. package/dist/cjs/out/wechaty/puppet/base_pb.js +1624 -0
  77. package/dist/cjs/out/wechaty/puppet/base_pb_service.d.ts +3 -0
  78. package/dist/cjs/out/wechaty/puppet/base_pb_service.js +3 -0
  79. package/dist/cjs/out/wechaty/puppet/contact_grpc_pb.js +1 -0
  80. package/dist/cjs/out/wechaty/puppet/contact_pb.d.ts +535 -0
  81. package/dist/cjs/out/wechaty/puppet/contact_pb.js +4013 -0
  82. package/dist/cjs/out/wechaty/puppet/contact_pb_service.d.ts +3 -0
  83. package/dist/cjs/out/wechaty/puppet/contact_pb_service.js +3 -0
  84. package/dist/cjs/out/wechaty/puppet/download-upload_grpc_pb.js +1 -0
  85. package/dist/cjs/out/wechaty/puppet/download-upload_pb.d.ts +89 -0
  86. package/dist/cjs/out/wechaty/puppet/download-upload_pb.js +674 -0
  87. package/dist/cjs/out/wechaty/puppet/download-upload_pb_service.d.ts +3 -0
  88. package/dist/cjs/out/wechaty/puppet/download-upload_pb_service.js +3 -0
  89. package/dist/cjs/out/wechaty/puppet/event_grpc_pb.js +1 -0
  90. package/dist/cjs/out/wechaty/puppet/event_pb.d.ts +67 -0
  91. package/dist/cjs/out/wechaty/puppet/event_pb.js +347 -0
  92. package/dist/cjs/out/wechaty/puppet/event_pb_service.d.ts +3 -0
  93. package/dist/cjs/out/wechaty/puppet/event_pb_service.js +3 -0
  94. package/dist/cjs/out/wechaty/puppet/friendship_grpc_pb.js +1 -0
  95. package/dist/cjs/out/wechaty/puppet/friendship_pb.d.ts +293 -0
  96. package/dist/cjs/out/wechaty/puppet/friendship_pb.js +2060 -0
  97. package/dist/cjs/out/wechaty/puppet/friendship_pb_service.d.ts +3 -0
  98. package/dist/cjs/out/wechaty/puppet/friendship_pb_service.js +3 -0
  99. package/dist/cjs/out/wechaty/puppet/image_grpc_pb.js +1 -0
  100. package/dist/cjs/out/wechaty/puppet/image_pb.d.ts +14 -0
  101. package/dist/cjs/out/wechaty/puppet/image_pb.js +29 -0
  102. package/dist/cjs/out/wechaty/puppet/image_pb_service.d.ts +3 -0
  103. package/dist/cjs/out/wechaty/puppet/image_pb_service.js +3 -0
  104. package/dist/cjs/out/wechaty/puppet/location_grpc_pb.js +1 -0
  105. package/dist/cjs/out/wechaty/puppet/location_pb.d.ts +41 -0
  106. package/dist/cjs/out/wechaty/puppet/location_pb.js +290 -0
  107. package/dist/cjs/out/wechaty/puppet/location_pb_service.d.ts +3 -0
  108. package/dist/cjs/out/wechaty/puppet/location_pb_service.js +3 -0
  109. package/dist/cjs/out/wechaty/puppet/message_grpc_pb.js +1 -0
  110. package/dist/cjs/out/wechaty/puppet/message_pb.d.ts +773 -0
  111. package/dist/cjs/out/wechaty/puppet/message_pb.js +5777 -0
  112. package/dist/cjs/out/wechaty/puppet/message_pb_service.d.ts +3 -0
  113. package/dist/cjs/out/wechaty/puppet/message_pb_service.js +3 -0
  114. package/dist/cjs/out/wechaty/puppet/mini-program_grpc_pb.js +1 -0
  115. package/dist/cjs/out/wechaty/puppet/mini-program_pb.d.ts +57 -0
  116. package/dist/cjs/out/wechaty/puppet/mini-program_pb.js +410 -0
  117. package/dist/cjs/out/wechaty/puppet/mini-program_pb_service.d.ts +3 -0
  118. package/dist/cjs/out/wechaty/puppet/mini-program_pb_service.js +3 -0
  119. package/dist/cjs/out/wechaty/puppet/referrer_grpc_pb.js +1 -0
  120. package/dist/cjs/out/wechaty/puppet/referrer_pb.d.ts +29 -0
  121. package/dist/cjs/out/wechaty/puppet/referrer_pb.js +200 -0
  122. package/dist/cjs/out/wechaty/puppet/referrer_pb_service.d.ts +3 -0
  123. package/dist/cjs/out/wechaty/puppet/referrer_pb_service.js +3 -0
  124. package/dist/cjs/out/wechaty/puppet/room-invitation_grpc_pb.js +1 -0
  125. package/dist/cjs/out/wechaty/puppet/room-invitation_pb.d.ts +133 -0
  126. package/dist/cjs/out/wechaty/puppet/room-invitation_pb.js +999 -0
  127. package/dist/cjs/out/wechaty/puppet/room-invitation_pb_service.d.ts +3 -0
  128. package/dist/cjs/out/wechaty/puppet/room-invitation_pb_service.js +3 -0
  129. package/dist/cjs/out/wechaty/puppet/room-member_grpc_pb.js +1 -0
  130. package/dist/cjs/out/wechaty/puppet/room-member_pb.d.ts +107 -0
  131. package/dist/cjs/out/wechaty/puppet/room-member_pb.js +802 -0
  132. package/dist/cjs/out/wechaty/puppet/room-member_pb_service.d.ts +3 -0
  133. package/dist/cjs/out/wechaty/puppet/room-member_pb_service.js +3 -0
  134. package/dist/cjs/out/wechaty/puppet/room_grpc_pb.js +1 -0
  135. package/dist/cjs/out/wechaty/puppet/room_pb.d.ts +474 -0
  136. package/dist/cjs/out/wechaty/puppet/room_pb.js +3641 -0
  137. package/dist/cjs/out/wechaty/puppet/room_pb_service.d.ts +3 -0
  138. package/dist/cjs/out/wechaty/puppet/room_pb_service.js +3 -0
  139. package/dist/cjs/out/wechaty/puppet/tag_grpc_pb.js +1 -0
  140. package/dist/cjs/out/wechaty/puppet/tag_pb.d.ts +170 -0
  141. package/dist/cjs/out/wechaty/puppet/tag_pb.js +1286 -0
  142. package/dist/cjs/out/wechaty/puppet/tag_pb_service.d.ts +3 -0
  143. package/dist/cjs/out/wechaty/puppet/tag_pb_service.js +3 -0
  144. package/dist/cjs/out/wechaty/puppet/url-link_grpc_pb.js +1 -0
  145. package/dist/cjs/out/wechaty/puppet/url-link_pb.d.ts +37 -0
  146. package/dist/cjs/out/wechaty/puppet/url-link_pb.js +260 -0
  147. package/dist/cjs/out/wechaty/puppet/url-link_pb_service.d.ts +3 -0
  148. package/dist/cjs/out/wechaty/puppet/url-link_pb_service.js +3 -0
  149. package/dist/cjs/out/wechaty/puppet.openapi.yaml +2386 -0
  150. package/dist/cjs/out/wechaty/puppet.swagger.json +3419 -0
  151. package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +1069 -0
  152. package/dist/cjs/out/wechaty/puppet_grpc_pb.js +2079 -0
  153. package/dist/cjs/out/wechaty/puppet_pb.d.ts +18 -0
  154. package/dist/cjs/out/wechaty/puppet_pb.js +43 -0
  155. package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +1166 -0
  156. package/dist/cjs/out/wechaty/puppet_pb_service.js +2524 -0
  157. package/dist/cjs/package.json +3 -0
  158. package/dist/cjs/proto/wechaty/deprecated/file-box.proto +61 -0
  159. package/dist/cjs/proto/wechaty/puppet/base.proto +46 -0
  160. package/dist/cjs/proto/wechaty/puppet/contact.proto +122 -0
  161. package/dist/cjs/proto/wechaty/puppet/download-upload.proto +19 -0
  162. package/dist/cjs/proto/wechaty/puppet/event.proto +38 -0
  163. package/dist/cjs/proto/wechaty/puppet/friendship.proto +106 -0
  164. package/dist/cjs/proto/wechaty/puppet/image.proto +13 -0
  165. package/dist/cjs/proto/wechaty/puppet/location.proto +14 -0
  166. package/dist/cjs/proto/wechaty/puppet/message.proto +230 -0
  167. package/dist/cjs/proto/wechaty/puppet/mini-program.proto +18 -0
  168. package/dist/cjs/proto/wechaty/puppet/referrer.proto +16 -0
  169. package/dist/cjs/proto/wechaty/puppet/room-invitation.proto +51 -0
  170. package/dist/cjs/proto/wechaty/puppet/room-member.proto +25 -0
  171. package/dist/cjs/proto/wechaty/puppet/room.proto +87 -0
  172. package/dist/cjs/proto/wechaty/puppet/tag.proto +43 -0
  173. package/dist/cjs/proto/wechaty/puppet/url-link.proto +13 -0
  174. package/dist/cjs/proto/wechaty/puppet.proto +505 -0
  175. package/dist/cjs/src/chunk-transformer.d.ts +24 -0
  176. package/dist/cjs/src/chunk-transformer.d.ts.map +1 -0
  177. package/dist/cjs/src/chunk-transformer.js +36 -0
  178. package/dist/cjs/src/chunk-transformer.js.map +1 -0
  179. package/dist/cjs/src/chunk-transformer.spec.d.ts +3 -0
  180. package/dist/cjs/src/chunk-transformer.spec.d.ts.map +1 -0
  181. package/dist/cjs/src/chunk-transformer.spec.js +9 -0
  182. package/dist/cjs/src/chunk-transformer.spec.js.map +1 -0
  183. package/dist/cjs/src/cjs.d.ts +5 -0
  184. package/dist/cjs/src/cjs.d.ts.map +1 -0
  185. package/dist/cjs/src/cjs.js +13 -0
  186. package/dist/cjs/src/cjs.js.map +1 -0
  187. package/dist/cjs/src/cjs.spec.d.ts +3 -0
  188. package/dist/cjs/src/cjs.spec.d.ts.map +1 -0
  189. package/dist/cjs/src/cjs.spec.js +27 -0
  190. package/dist/cjs/src/cjs.spec.js.map +1 -0
  191. package/dist/cjs/src/config.d.ts +12 -0
  192. package/dist/cjs/src/config.d.ts.map +1 -0
  193. package/dist/cjs/src/config.js +12 -0
  194. package/dist/cjs/src/config.js.map +1 -0
  195. package/dist/cjs/src/google.d.ts +8 -0
  196. package/dist/cjs/src/google.d.ts.map +1 -0
  197. package/dist/cjs/src/google.js +15 -0
  198. package/dist/cjs/src/google.js.map +1 -0
  199. package/dist/cjs/src/google.spec.d.ts +3 -0
  200. package/dist/cjs/src/google.spec.d.ts.map +1 -0
  201. package/dist/cjs/src/google.spec.js +11 -0
  202. package/dist/cjs/src/google.spec.js.map +1 -0
  203. package/dist/cjs/src/mod.d.ts +9 -0
  204. package/dist/cjs/src/mod.d.ts.map +1 -0
  205. package/dist/cjs/src/mod.js +44 -0
  206. package/dist/cjs/src/mod.js.map +1 -0
  207. package/dist/cjs/src/mod.spec.d.ts +3 -0
  208. package/dist/cjs/src/mod.spec.d.ts.map +1 -0
  209. package/dist/cjs/src/mod.spec.js +22 -0
  210. package/dist/cjs/src/mod.spec.js.map +1 -0
  211. package/dist/cjs/src/openapi.d.ts +4 -0
  212. package/dist/cjs/src/openapi.d.ts.map +1 -0
  213. package/dist/cjs/src/openapi.js +21 -0
  214. package/dist/cjs/src/openapi.js.map +1 -0
  215. package/dist/cjs/src/openapi.spec.d.ts +3 -0
  216. package/dist/cjs/src/openapi.spec.d.ts.map +1 -0
  217. package/dist/cjs/src/openapi.spec.js +20 -0
  218. package/dist/cjs/src/openapi.spec.js.map +1 -0
  219. package/dist/cjs/src/package-json.d.ts +6 -0
  220. package/dist/cjs/src/package-json.d.ts.map +1 -0
  221. package/dist/cjs/src/package-json.js +97 -0
  222. package/dist/cjs/src/package-json.js.map +1 -0
  223. package/dist/cjs/src/package-json.spec.d.ts +3 -0
  224. package/dist/cjs/src/package-json.spec.d.ts.map +1 -0
  225. package/dist/cjs/src/package-json.spec.js +10 -0
  226. package/dist/cjs/src/package-json.spec.js.map +1 -0
  227. package/dist/cjs/src/proto.d.ts +4 -0
  228. package/dist/cjs/src/proto.d.ts.map +1 -0
  229. package/dist/cjs/src/proto.js +25 -0
  230. package/dist/cjs/src/proto.js.map +1 -0
  231. package/dist/cjs/src/proto.spec.d.ts +3 -0
  232. package/dist/cjs/src/proto.spec.d.ts.map +1 -0
  233. package/dist/cjs/src/proto.spec.js +13 -0
  234. package/dist/cjs/src/proto.spec.js.map +1 -0
  235. package/dist/cjs/tests/health-check.spec.d.ts +3 -0
  236. package/dist/cjs/tests/health-check.spec.d.ts.map +1 -0
  237. package/dist/cjs/tests/health-check.spec.js +70 -0
  238. package/dist/cjs/tests/health-check.spec.js.map +1 -0
  239. package/dist/cjs/tests/integration.spec.d.ts +3 -0
  240. package/dist/cjs/tests/integration.spec.d.ts.map +1 -0
  241. package/dist/cjs/tests/integration.spec.js +111 -0
  242. package/dist/cjs/tests/integration.spec.js.map +1 -0
  243. package/dist/cjs/tests/nullable.spec.d.ts +3 -0
  244. package/dist/cjs/tests/nullable.spec.d.ts.map +1 -0
  245. package/dist/cjs/tests/nullable.spec.js +90 -0
  246. package/dist/cjs/tests/nullable.spec.js.map +1 -0
  247. package/dist/cjs/tests/puppet-server-impl.d.ts +8 -0
  248. package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -0
  249. package/dist/cjs/tests/puppet-server-impl.js +310 -0
  250. package/dist/cjs/tests/puppet-server-impl.js.map +1 -0
  251. package/dist/cjs/tests/streaming.spec.d.ts +3 -0
  252. package/dist/cjs/tests/streaming.spec.d.ts.map +1 -0
  253. package/dist/cjs/tests/streaming.spec.js +8 -0
  254. package/dist/cjs/tests/streaming.spec.js.map +1 -0
  255. package/dist/esm/commonjs/README.md +15 -0
  256. package/dist/esm/commonjs/code-root.cjs +10 -0
  257. package/dist/esm/commonjs/code-root.cjs.d.ts +1 -0
  258. package/dist/esm/commonjs/code-root.spec.ts +9 -0
  259. package/dist/esm/commonjs/generated/google.cjs +9 -0
  260. package/dist/esm/commonjs/generated/google.cjs.d.ts +2 -0
  261. package/dist/esm/commonjs/generated/google.spec.ts +13 -0
  262. package/dist/esm/commonjs/generated/puppet.cjs +39 -0
  263. package/dist/esm/commonjs/generated/puppet.cjs.d.ts +42 -0
  264. package/dist/esm/commonjs/generated/puppet.spec.ts +19 -0
  265. package/dist/esm/commonjs/package.json +1 -0
  266. package/dist/esm/examples/auth/client.d.ts +3 -0
  267. package/dist/esm/examples/auth/client.d.ts.map +1 -0
  268. package/dist/esm/examples/auth/client.js +45 -0
  269. package/dist/esm/examples/auth/client.js.map +1 -0
  270. package/dist/esm/examples/auth/raw-https/client.d.ts +2 -0
  271. package/dist/esm/examples/auth/raw-https/client.d.ts.map +1 -0
  272. package/dist/esm/examples/auth/raw-https/client.js +16 -0
  273. package/dist/esm/examples/auth/raw-https/client.js.map +1 -0
  274. package/dist/esm/examples/auth/raw-https/server.d.ts +2 -0
  275. package/dist/esm/examples/auth/raw-https/server.d.ts.map +1 -0
  276. package/dist/esm/examples/auth/raw-https/server.js +13 -0
  277. package/dist/esm/examples/auth/raw-https/server.js.map +1 -0
  278. package/dist/esm/examples/auth/server.d.ts +2 -0
  279. package/dist/esm/examples/auth/server.d.ts.map +1 -0
  280. package/dist/esm/examples/auth/server.js +112 -0
  281. package/dist/esm/examples/auth/server.js.map +1 -0
  282. package/dist/esm/examples/client.d.ts +5 -0
  283. package/dist/esm/examples/client.d.ts.map +1 -0
  284. package/dist/esm/examples/client.js +77 -0
  285. package/dist/esm/examples/client.js.map +1 -0
  286. package/dist/esm/examples/promisify.d.ts +49 -0
  287. package/dist/esm/examples/promisify.d.ts.map +1 -0
  288. package/dist/esm/examples/promisify.js +3 -0
  289. package/dist/esm/examples/promisify.js.map +1 -0
  290. package/dist/esm/examples/server.d.ts +2 -0
  291. package/dist/esm/examples/server.d.ts.map +1 -0
  292. package/dist/esm/examples/server.js +78 -0
  293. package/dist/esm/examples/server.js.map +1 -0
  294. package/dist/esm/out/google/api/annotations_grpc_pb.js +1 -0
  295. package/dist/esm/out/google/api/annotations_pb.d.ts +9 -0
  296. package/dist/esm/out/google/api/annotations_pb.js +48 -0
  297. package/dist/esm/out/google/api/annotations_pb_service.d.ts +3 -0
  298. package/dist/esm/out/google/api/annotations_pb_service.js +3 -0
  299. package/dist/esm/out/google/api/health_check/v1/health_check_grpc_pb.d.ts +56 -0
  300. package/dist/esm/out/google/api/health_check/v1/health_check_grpc_pb.js +90 -0
  301. package/dist/esm/out/google/api/health_check/v1/health_check_pb.d.ts +54 -0
  302. package/dist/esm/out/google/api/health_check/v1/health_check_pb.js +333 -0
  303. package/dist/esm/out/google/api/health_check/v1/health_check_pb_service.d.ts +74 -0
  304. package/dist/esm/out/google/api/health_check/v1/health_check_pb_service.js +109 -0
  305. package/dist/esm/out/google/api/http_grpc_pb.js +1 -0
  306. package/dist/esm/out/google/api/http_pb.d.ts +136 -0
  307. package/dist/esm/out/google/api/http_pb.js +1006 -0
  308. package/dist/esm/out/google/api/http_pb_service.d.ts +3 -0
  309. package/dist/esm/out/google/api/http_pb_service.js +3 -0
  310. package/dist/esm/out/package.json +1 -0
  311. package/dist/esm/out/protoc-gen-openapiv2/options/annotations_grpc_pb.js +1 -0
  312. package/dist/esm/out/protoc-gen-openapiv2/options/annotations_pb.d.ts +17 -0
  313. package/dist/esm/out/protoc-gen-openapiv2/options/annotations_pb.js +152 -0
  314. package/dist/esm/out/protoc-gen-openapiv2/options/annotations_pb_service.d.ts +3 -0
  315. package/dist/esm/out/protoc-gen-openapiv2/options/annotations_pb_service.js +3 -0
  316. package/dist/esm/out/protoc-gen-openapiv2/options/openapiv2_grpc_pb.js +1 -0
  317. package/dist/esm/out/protoc-gen-openapiv2/options/openapiv2_pb.d.ts +747 -0
  318. package/dist/esm/out/protoc-gen-openapiv2/options/openapiv2_pb.js +5603 -0
  319. package/dist/esm/out/protoc-gen-openapiv2/options/openapiv2_pb_service.d.ts +3 -0
  320. package/dist/esm/out/protoc-gen-openapiv2/options/openapiv2_pb_service.js +3 -0
  321. package/dist/esm/out/wechaty/deprecated/file-box_grpc_pb.js +1 -0
  322. package/dist/esm/out/wechaty/deprecated/file-box_pb.d.ts +179 -0
  323. package/dist/esm/out/wechaty/deprecated/file-box_pb.js +1368 -0
  324. package/dist/esm/out/wechaty/deprecated/file-box_pb_service.d.ts +3 -0
  325. package/dist/esm/out/wechaty/deprecated/file-box_pb_service.js +3 -0
  326. package/dist/esm/out/wechaty/puppet/base_grpc_pb.js +1 -0
  327. package/dist/esm/out/wechaty/puppet/base_pb.d.ts +224 -0
  328. package/dist/esm/out/wechaty/puppet/base_pb.js +1624 -0
  329. package/dist/esm/out/wechaty/puppet/base_pb_service.d.ts +3 -0
  330. package/dist/esm/out/wechaty/puppet/base_pb_service.js +3 -0
  331. package/dist/esm/out/wechaty/puppet/contact_grpc_pb.js +1 -0
  332. package/dist/esm/out/wechaty/puppet/contact_pb.d.ts +535 -0
  333. package/dist/esm/out/wechaty/puppet/contact_pb.js +4013 -0
  334. package/dist/esm/out/wechaty/puppet/contact_pb_service.d.ts +3 -0
  335. package/dist/esm/out/wechaty/puppet/contact_pb_service.js +3 -0
  336. package/dist/esm/out/wechaty/puppet/download-upload_grpc_pb.js +1 -0
  337. package/dist/esm/out/wechaty/puppet/download-upload_pb.d.ts +89 -0
  338. package/dist/esm/out/wechaty/puppet/download-upload_pb.js +674 -0
  339. package/dist/esm/out/wechaty/puppet/download-upload_pb_service.d.ts +3 -0
  340. package/dist/esm/out/wechaty/puppet/download-upload_pb_service.js +3 -0
  341. package/dist/esm/out/wechaty/puppet/event_grpc_pb.js +1 -0
  342. package/dist/esm/out/wechaty/puppet/event_pb.d.ts +67 -0
  343. package/dist/esm/out/wechaty/puppet/event_pb.js +347 -0
  344. package/dist/esm/out/wechaty/puppet/event_pb_service.d.ts +3 -0
  345. package/dist/esm/out/wechaty/puppet/event_pb_service.js +3 -0
  346. package/dist/esm/out/wechaty/puppet/friendship_grpc_pb.js +1 -0
  347. package/dist/esm/out/wechaty/puppet/friendship_pb.d.ts +293 -0
  348. package/dist/esm/out/wechaty/puppet/friendship_pb.js +2060 -0
  349. package/dist/esm/out/wechaty/puppet/friendship_pb_service.d.ts +3 -0
  350. package/dist/esm/out/wechaty/puppet/friendship_pb_service.js +3 -0
  351. package/dist/esm/out/wechaty/puppet/image_grpc_pb.js +1 -0
  352. package/dist/esm/out/wechaty/puppet/image_pb.d.ts +14 -0
  353. package/dist/esm/out/wechaty/puppet/image_pb.js +29 -0
  354. package/dist/esm/out/wechaty/puppet/image_pb_service.d.ts +3 -0
  355. package/dist/esm/out/wechaty/puppet/image_pb_service.js +3 -0
  356. package/dist/esm/out/wechaty/puppet/location_grpc_pb.js +1 -0
  357. package/dist/esm/out/wechaty/puppet/location_pb.d.ts +41 -0
  358. package/dist/esm/out/wechaty/puppet/location_pb.js +290 -0
  359. package/dist/esm/out/wechaty/puppet/location_pb_service.d.ts +3 -0
  360. package/dist/esm/out/wechaty/puppet/location_pb_service.js +3 -0
  361. package/dist/esm/out/wechaty/puppet/message_grpc_pb.js +1 -0
  362. package/dist/esm/out/wechaty/puppet/message_pb.d.ts +773 -0
  363. package/dist/esm/out/wechaty/puppet/message_pb.js +5777 -0
  364. package/dist/esm/out/wechaty/puppet/message_pb_service.d.ts +3 -0
  365. package/dist/esm/out/wechaty/puppet/message_pb_service.js +3 -0
  366. package/dist/esm/out/wechaty/puppet/mini-program_grpc_pb.js +1 -0
  367. package/dist/esm/out/wechaty/puppet/mini-program_pb.d.ts +57 -0
  368. package/dist/esm/out/wechaty/puppet/mini-program_pb.js +410 -0
  369. package/dist/esm/out/wechaty/puppet/mini-program_pb_service.d.ts +3 -0
  370. package/dist/esm/out/wechaty/puppet/mini-program_pb_service.js +3 -0
  371. package/dist/esm/out/wechaty/puppet/referrer_grpc_pb.js +1 -0
  372. package/dist/esm/out/wechaty/puppet/referrer_pb.d.ts +29 -0
  373. package/dist/esm/out/wechaty/puppet/referrer_pb.js +200 -0
  374. package/dist/esm/out/wechaty/puppet/referrer_pb_service.d.ts +3 -0
  375. package/dist/esm/out/wechaty/puppet/referrer_pb_service.js +3 -0
  376. package/dist/esm/out/wechaty/puppet/room-invitation_grpc_pb.js +1 -0
  377. package/dist/esm/out/wechaty/puppet/room-invitation_pb.d.ts +133 -0
  378. package/dist/esm/out/wechaty/puppet/room-invitation_pb.js +999 -0
  379. package/dist/esm/out/wechaty/puppet/room-invitation_pb_service.d.ts +3 -0
  380. package/dist/esm/out/wechaty/puppet/room-invitation_pb_service.js +3 -0
  381. package/dist/esm/out/wechaty/puppet/room-member_grpc_pb.js +1 -0
  382. package/dist/esm/out/wechaty/puppet/room-member_pb.d.ts +107 -0
  383. package/dist/esm/out/wechaty/puppet/room-member_pb.js +802 -0
  384. package/dist/esm/out/wechaty/puppet/room-member_pb_service.d.ts +3 -0
  385. package/dist/esm/out/wechaty/puppet/room-member_pb_service.js +3 -0
  386. package/dist/esm/out/wechaty/puppet/room_grpc_pb.js +1 -0
  387. package/dist/esm/out/wechaty/puppet/room_pb.d.ts +474 -0
  388. package/dist/esm/out/wechaty/puppet/room_pb.js +3641 -0
  389. package/dist/esm/out/wechaty/puppet/room_pb_service.d.ts +3 -0
  390. package/dist/esm/out/wechaty/puppet/room_pb_service.js +3 -0
  391. package/dist/esm/out/wechaty/puppet/tag_grpc_pb.js +1 -0
  392. package/dist/esm/out/wechaty/puppet/tag_pb.d.ts +170 -0
  393. package/dist/esm/out/wechaty/puppet/tag_pb.js +1286 -0
  394. package/dist/esm/out/wechaty/puppet/tag_pb_service.d.ts +3 -0
  395. package/dist/esm/out/wechaty/puppet/tag_pb_service.js +3 -0
  396. package/dist/esm/out/wechaty/puppet/url-link_grpc_pb.js +1 -0
  397. package/dist/esm/out/wechaty/puppet/url-link_pb.d.ts +37 -0
  398. package/dist/esm/out/wechaty/puppet/url-link_pb.js +260 -0
  399. package/dist/esm/out/wechaty/puppet/url-link_pb_service.d.ts +3 -0
  400. package/dist/esm/out/wechaty/puppet/url-link_pb_service.js +3 -0
  401. package/dist/esm/out/wechaty/puppet.openapi.yaml +2386 -0
  402. package/dist/esm/out/wechaty/puppet.swagger.json +3419 -0
  403. package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +1069 -0
  404. package/dist/esm/out/wechaty/puppet_grpc_pb.js +2079 -0
  405. package/dist/esm/out/wechaty/puppet_pb.d.ts +18 -0
  406. package/dist/esm/out/wechaty/puppet_pb.js +43 -0
  407. package/dist/esm/out/wechaty/puppet_pb_service.d.ts +1166 -0
  408. package/dist/esm/out/wechaty/puppet_pb_service.js +2524 -0
  409. package/dist/esm/proto/wechaty/deprecated/file-box.proto +61 -0
  410. package/dist/esm/proto/wechaty/puppet/base.proto +46 -0
  411. package/dist/esm/proto/wechaty/puppet/contact.proto +122 -0
  412. package/dist/esm/proto/wechaty/puppet/download-upload.proto +19 -0
  413. package/dist/esm/proto/wechaty/puppet/event.proto +38 -0
  414. package/dist/esm/proto/wechaty/puppet/friendship.proto +106 -0
  415. package/dist/esm/proto/wechaty/puppet/image.proto +13 -0
  416. package/dist/esm/proto/wechaty/puppet/location.proto +14 -0
  417. package/dist/esm/proto/wechaty/puppet/message.proto +230 -0
  418. package/dist/esm/proto/wechaty/puppet/mini-program.proto +18 -0
  419. package/dist/esm/proto/wechaty/puppet/referrer.proto +16 -0
  420. package/dist/esm/proto/wechaty/puppet/room-invitation.proto +51 -0
  421. package/dist/esm/proto/wechaty/puppet/room-member.proto +25 -0
  422. package/dist/esm/proto/wechaty/puppet/room.proto +87 -0
  423. package/dist/esm/proto/wechaty/puppet/tag.proto +43 -0
  424. package/dist/esm/proto/wechaty/puppet/url-link.proto +13 -0
  425. package/dist/esm/proto/wechaty/puppet.proto +505 -0
  426. package/dist/esm/src/chunk-transformer.d.ts +24 -0
  427. package/dist/esm/src/chunk-transformer.d.ts.map +1 -0
  428. package/dist/esm/src/chunk-transformer.js +32 -0
  429. package/dist/esm/src/chunk-transformer.js.map +1 -0
  430. package/dist/esm/src/chunk-transformer.spec.d.ts +3 -0
  431. package/dist/esm/src/chunk-transformer.spec.d.ts.map +1 -0
  432. package/dist/esm/src/chunk-transformer.spec.js +7 -0
  433. package/dist/esm/src/chunk-transformer.spec.js.map +1 -0
  434. package/dist/esm/src/cjs.d.ts +5 -0
  435. package/dist/esm/src/cjs.d.ts.map +1 -0
  436. package/dist/esm/src/cjs.js +5 -0
  437. package/dist/esm/src/cjs.js.map +1 -0
  438. package/dist/esm/src/cjs.spec.d.ts +3 -0
  439. package/dist/esm/src/cjs.spec.d.ts.map +1 -0
  440. package/dist/esm/src/cjs.spec.js +25 -0
  441. package/dist/esm/src/cjs.spec.js.map +1 -0
  442. package/dist/esm/src/config.d.ts +12 -0
  443. package/dist/esm/src/config.d.ts.map +1 -0
  444. package/dist/esm/src/config.js +9 -0
  445. package/dist/esm/src/config.js.map +1 -0
  446. package/dist/esm/src/google.d.ts +8 -0
  447. package/dist/esm/src/google.d.ts.map +1 -0
  448. package/dist/esm/src/google.js +8 -0
  449. package/dist/esm/src/google.js.map +1 -0
  450. package/dist/esm/src/google.spec.d.ts +3 -0
  451. package/dist/esm/src/google.spec.d.ts.map +1 -0
  452. package/dist/esm/src/google.spec.js +9 -0
  453. package/dist/esm/src/google.spec.js.map +1 -0
  454. package/dist/esm/src/mod.d.ts +9 -0
  455. package/dist/esm/src/mod.d.ts.map +1 -0
  456. package/dist/esm/src/mod.js +9 -0
  457. package/dist/esm/src/mod.js.map +1 -0
  458. package/dist/esm/src/mod.spec.d.ts +3 -0
  459. package/dist/esm/src/mod.spec.d.ts.map +1 -0
  460. package/dist/esm/src/mod.spec.js +20 -0
  461. package/dist/esm/src/mod.spec.js.map +1 -0
  462. package/dist/esm/src/openapi.d.ts +4 -0
  463. package/dist/esm/src/openapi.d.ts.map +1 -0
  464. package/dist/esm/src/openapi.js +15 -0
  465. package/dist/esm/src/openapi.js.map +1 -0
  466. package/dist/esm/src/openapi.spec.d.ts +3 -0
  467. package/dist/esm/src/openapi.spec.d.ts.map +1 -0
  468. package/dist/esm/src/openapi.spec.js +18 -0
  469. package/dist/esm/src/openapi.spec.js.map +1 -0
  470. package/dist/esm/src/package-json.d.ts +6 -0
  471. package/dist/esm/src/package-json.d.ts.map +1 -0
  472. package/dist/esm/src/package-json.js +94 -0
  473. package/dist/esm/src/package-json.js.map +1 -0
  474. package/dist/esm/src/package-json.spec.d.ts +3 -0
  475. package/dist/esm/src/package-json.spec.d.ts.map +1 -0
  476. package/dist/esm/src/package-json.spec.js +8 -0
  477. package/dist/esm/src/package-json.spec.js.map +1 -0
  478. package/dist/esm/src/proto.d.ts +4 -0
  479. package/dist/esm/src/proto.d.ts.map +1 -0
  480. package/dist/esm/src/proto.js +19 -0
  481. package/dist/esm/src/proto.js.map +1 -0
  482. package/dist/esm/src/proto.spec.d.ts +3 -0
  483. package/dist/esm/src/proto.spec.d.ts.map +1 -0
  484. package/dist/esm/src/proto.spec.js +11 -0
  485. package/dist/esm/src/proto.spec.js.map +1 -0
  486. package/dist/esm/tests/health-check.spec.d.ts +3 -0
  487. package/dist/esm/tests/health-check.spec.d.ts.map +1 -0
  488. package/dist/esm/tests/health-check.spec.js +68 -0
  489. package/dist/esm/tests/health-check.spec.js.map +1 -0
  490. package/dist/esm/tests/integration.spec.d.ts +3 -0
  491. package/dist/esm/tests/integration.spec.d.ts.map +1 -0
  492. package/dist/esm/tests/integration.spec.js +106 -0
  493. package/dist/esm/tests/integration.spec.js.map +1 -0
  494. package/dist/esm/tests/nullable.spec.d.ts +3 -0
  495. package/dist/esm/tests/nullable.spec.d.ts.map +1 -0
  496. package/dist/esm/tests/nullable.spec.js +85 -0
  497. package/dist/esm/tests/nullable.spec.js.map +1 -0
  498. package/dist/esm/tests/puppet-server-impl.d.ts +8 -0
  499. package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -0
  500. package/dist/esm/tests/puppet-server-impl.js +307 -0
  501. package/dist/esm/tests/puppet-server-impl.js.map +1 -0
  502. package/dist/esm/tests/streaming.spec.d.ts +3 -0
  503. package/dist/esm/tests/streaming.spec.d.ts.map +1 -0
  504. package/dist/esm/tests/streaming.spec.js +6 -0
  505. package/dist/esm/tests/streaming.spec.js.map +1 -0
  506. package/out/google/api/annotations_grpc_pb.js +1 -0
  507. package/out/google/api/annotations_pb.d.ts +9 -0
  508. package/out/google/api/annotations_pb.js +48 -0
  509. package/out/google/api/annotations_pb_service.d.ts +3 -0
  510. package/out/google/api/annotations_pb_service.js +3 -0
  511. package/out/google/api/health_check/v1/health_check_grpc_pb.d.ts +56 -0
  512. package/out/google/api/health_check/v1/health_check_grpc_pb.js +90 -0
  513. package/out/google/api/health_check/v1/health_check_pb.d.ts +54 -0
  514. package/out/google/api/health_check/v1/health_check_pb.js +333 -0
  515. package/out/google/api/health_check/v1/health_check_pb_service.d.ts +74 -0
  516. package/out/google/api/health_check/v1/health_check_pb_service.js +109 -0
  517. package/out/google/api/http_grpc_pb.js +1 -0
  518. package/out/google/api/http_pb.d.ts +136 -0
  519. package/out/google/api/http_pb.js +1006 -0
  520. package/out/google/api/http_pb_service.d.ts +3 -0
  521. package/out/google/api/http_pb_service.js +3 -0
  522. package/out/package.json +1 -0
  523. package/out/protoc-gen-openapiv2/options/annotations_grpc_pb.js +1 -0
  524. package/out/protoc-gen-openapiv2/options/annotations_pb.d.ts +17 -0
  525. package/out/protoc-gen-openapiv2/options/annotations_pb.js +152 -0
  526. package/out/protoc-gen-openapiv2/options/annotations_pb_service.d.ts +3 -0
  527. package/out/protoc-gen-openapiv2/options/annotations_pb_service.js +3 -0
  528. package/out/protoc-gen-openapiv2/options/openapiv2_grpc_pb.js +1 -0
  529. package/out/protoc-gen-openapiv2/options/openapiv2_pb.d.ts +747 -0
  530. package/out/protoc-gen-openapiv2/options/openapiv2_pb.js +5603 -0
  531. package/out/protoc-gen-openapiv2/options/openapiv2_pb_service.d.ts +3 -0
  532. package/out/protoc-gen-openapiv2/options/openapiv2_pb_service.js +3 -0
  533. package/out/wechaty/deprecated/file-box_grpc_pb.js +1 -0
  534. package/out/wechaty/deprecated/file-box_pb.d.ts +179 -0
  535. package/out/wechaty/deprecated/file-box_pb.js +1368 -0
  536. package/out/wechaty/deprecated/file-box_pb_service.d.ts +3 -0
  537. package/out/wechaty/deprecated/file-box_pb_service.js +3 -0
  538. package/out/wechaty/puppet/base_grpc_pb.js +1 -0
  539. package/out/wechaty/puppet/base_pb.d.ts +224 -0
  540. package/out/wechaty/puppet/base_pb.js +1624 -0
  541. package/out/wechaty/puppet/base_pb_service.d.ts +3 -0
  542. package/out/wechaty/puppet/base_pb_service.js +3 -0
  543. package/out/wechaty/puppet/contact_grpc_pb.js +1 -0
  544. package/out/wechaty/puppet/contact_pb.d.ts +535 -0
  545. package/out/wechaty/puppet/contact_pb.js +4013 -0
  546. package/out/wechaty/puppet/contact_pb_service.d.ts +3 -0
  547. package/out/wechaty/puppet/contact_pb_service.js +3 -0
  548. package/out/wechaty/puppet/download-upload_grpc_pb.js +1 -0
  549. package/out/wechaty/puppet/download-upload_pb.d.ts +89 -0
  550. package/out/wechaty/puppet/download-upload_pb.js +674 -0
  551. package/out/wechaty/puppet/download-upload_pb_service.d.ts +3 -0
  552. package/out/wechaty/puppet/download-upload_pb_service.js +3 -0
  553. package/out/wechaty/puppet/event_grpc_pb.js +1 -0
  554. package/out/wechaty/puppet/event_pb.d.ts +67 -0
  555. package/out/wechaty/puppet/event_pb.js +347 -0
  556. package/out/wechaty/puppet/event_pb_service.d.ts +3 -0
  557. package/out/wechaty/puppet/event_pb_service.js +3 -0
  558. package/out/wechaty/puppet/friendship_grpc_pb.js +1 -0
  559. package/out/wechaty/puppet/friendship_pb.d.ts +293 -0
  560. package/out/wechaty/puppet/friendship_pb.js +2060 -0
  561. package/out/wechaty/puppet/friendship_pb_service.d.ts +3 -0
  562. package/out/wechaty/puppet/friendship_pb_service.js +3 -0
  563. package/out/wechaty/puppet/image_grpc_pb.js +1 -0
  564. package/out/wechaty/puppet/image_pb.d.ts +14 -0
  565. package/out/wechaty/puppet/image_pb.js +29 -0
  566. package/out/wechaty/puppet/image_pb_service.d.ts +3 -0
  567. package/out/wechaty/puppet/image_pb_service.js +3 -0
  568. package/out/wechaty/puppet/location_grpc_pb.js +1 -0
  569. package/out/wechaty/puppet/location_pb.d.ts +41 -0
  570. package/out/wechaty/puppet/location_pb.js +290 -0
  571. package/out/wechaty/puppet/location_pb_service.d.ts +3 -0
  572. package/out/wechaty/puppet/location_pb_service.js +3 -0
  573. package/out/wechaty/puppet/message_grpc_pb.js +1 -0
  574. package/out/wechaty/puppet/message_pb.d.ts +773 -0
  575. package/out/wechaty/puppet/message_pb.js +5777 -0
  576. package/out/wechaty/puppet/message_pb_service.d.ts +3 -0
  577. package/out/wechaty/puppet/message_pb_service.js +3 -0
  578. package/out/wechaty/puppet/mini-program_grpc_pb.js +1 -0
  579. package/out/wechaty/puppet/mini-program_pb.d.ts +57 -0
  580. package/out/wechaty/puppet/mini-program_pb.js +410 -0
  581. package/out/wechaty/puppet/mini-program_pb_service.d.ts +3 -0
  582. package/out/wechaty/puppet/mini-program_pb_service.js +3 -0
  583. package/out/wechaty/puppet/referrer_grpc_pb.js +1 -0
  584. package/out/wechaty/puppet/referrer_pb.d.ts +29 -0
  585. package/out/wechaty/puppet/referrer_pb.js +200 -0
  586. package/out/wechaty/puppet/referrer_pb_service.d.ts +3 -0
  587. package/out/wechaty/puppet/referrer_pb_service.js +3 -0
  588. package/out/wechaty/puppet/room-invitation_grpc_pb.js +1 -0
  589. package/out/wechaty/puppet/room-invitation_pb.d.ts +133 -0
  590. package/out/wechaty/puppet/room-invitation_pb.js +999 -0
  591. package/out/wechaty/puppet/room-invitation_pb_service.d.ts +3 -0
  592. package/out/wechaty/puppet/room-invitation_pb_service.js +3 -0
  593. package/out/wechaty/puppet/room-member_grpc_pb.js +1 -0
  594. package/out/wechaty/puppet/room-member_pb.d.ts +107 -0
  595. package/out/wechaty/puppet/room-member_pb.js +802 -0
  596. package/out/wechaty/puppet/room-member_pb_service.d.ts +3 -0
  597. package/out/wechaty/puppet/room-member_pb_service.js +3 -0
  598. package/out/wechaty/puppet/room_grpc_pb.js +1 -0
  599. package/out/wechaty/puppet/room_pb.d.ts +474 -0
  600. package/out/wechaty/puppet/room_pb.js +3641 -0
  601. package/out/wechaty/puppet/room_pb_service.d.ts +3 -0
  602. package/out/wechaty/puppet/room_pb_service.js +3 -0
  603. package/out/wechaty/puppet/tag_grpc_pb.js +1 -0
  604. package/out/wechaty/puppet/tag_pb.d.ts +170 -0
  605. package/out/wechaty/puppet/tag_pb.js +1286 -0
  606. package/out/wechaty/puppet/tag_pb_service.d.ts +3 -0
  607. package/out/wechaty/puppet/tag_pb_service.js +3 -0
  608. package/out/wechaty/puppet/url-link_grpc_pb.js +1 -0
  609. package/out/wechaty/puppet/url-link_pb.d.ts +37 -0
  610. package/out/wechaty/puppet/url-link_pb.js +260 -0
  611. package/out/wechaty/puppet/url-link_pb_service.d.ts +3 -0
  612. package/out/wechaty/puppet/url-link_pb_service.js +3 -0
  613. package/out/wechaty/puppet.openapi.yaml +2386 -0
  614. package/out/wechaty/puppet.swagger.json +3419 -0
  615. package/out/wechaty/puppet_grpc_pb.d.ts +1069 -0
  616. package/out/wechaty/puppet_grpc_pb.js +2079 -0
  617. package/out/wechaty/puppet_pb.d.ts +18 -0
  618. package/out/wechaty/puppet_pb.js +43 -0
  619. package/out/wechaty/puppet_pb_service.d.ts +1166 -0
  620. package/out/wechaty/puppet_pb_service.js +2524 -0
  621. package/package.json +93 -0
  622. package/src/chunk-transformer.spec.ts +18 -0
  623. package/src/chunk-transformer.ts +58 -0
  624. package/src/cjs.spec.ts +36 -0
  625. package/src/cjs.ts +10 -0
  626. package/src/config.ts +19 -0
  627. package/src/google.spec.ts +13 -0
  628. package/src/google.ts +10 -0
  629. package/src/mod.spec.ts +30 -0
  630. package/src/mod.ts +31 -0
  631. package/src/openapi.spec.ts +22 -0
  632. package/src/openapi.ts +30 -0
  633. package/src/package-json.spec.ts +10 -0
  634. package/src/package-json.ts +97 -0
  635. package/src/proto.spec.ts +16 -0
  636. package/src/proto.ts +34 -0
@@ -0,0 +1,4013 @@
1
+ // source: wechaty/puppet/contact.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
16
+ var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);
17
+
18
+ var google_protobuf_wrappers_pb = require('google-protobuf/google/protobuf/wrappers_pb.js');
19
+ goog.object.extend(proto, google_protobuf_wrappers_pb);
20
+ goog.exportSymbol('proto.wechaty.puppet.ContactAliasRequest', null, global);
21
+ goog.exportSymbol('proto.wechaty.puppet.ContactAliasResponse', null, global);
22
+ goog.exportSymbol('proto.wechaty.puppet.ContactAvatarRequest', null, global);
23
+ goog.exportSymbol('proto.wechaty.puppet.ContactAvatarResponse', null, global);
24
+ goog.exportSymbol('proto.wechaty.puppet.ContactCorporationRemarkRequest', null, global);
25
+ goog.exportSymbol('proto.wechaty.puppet.ContactCorporationRemarkResponse', null, global);
26
+ goog.exportSymbol('proto.wechaty.puppet.ContactDescriptionRequest', null, global);
27
+ goog.exportSymbol('proto.wechaty.puppet.ContactDescriptionResponse', null, global);
28
+ goog.exportSymbol('proto.wechaty.puppet.ContactGender', null, global);
29
+ goog.exportSymbol('proto.wechaty.puppet.ContactListRequest', null, global);
30
+ goog.exportSymbol('proto.wechaty.puppet.ContactListResponse', null, global);
31
+ goog.exportSymbol('proto.wechaty.puppet.ContactPayloadRequest', null, global);
32
+ goog.exportSymbol('proto.wechaty.puppet.ContactPayloadResponse', null, global);
33
+ goog.exportSymbol('proto.wechaty.puppet.ContactPhoneRequest', null, global);
34
+ goog.exportSymbol('proto.wechaty.puppet.ContactPhoneResponse', null, global);
35
+ goog.exportSymbol('proto.wechaty.puppet.ContactSelfNameRequest', null, global);
36
+ goog.exportSymbol('proto.wechaty.puppet.ContactSelfNameResponse', null, global);
37
+ goog.exportSymbol('proto.wechaty.puppet.ContactSelfQRCodeRequest', null, global);
38
+ goog.exportSymbol('proto.wechaty.puppet.ContactSelfQRCodeResponse', null, global);
39
+ goog.exportSymbol('proto.wechaty.puppet.ContactSelfSignatureRequest', null, global);
40
+ goog.exportSymbol('proto.wechaty.puppet.ContactSelfSignatureResponse', null, global);
41
+ goog.exportSymbol('proto.wechaty.puppet.ContactType', null, global);
42
+ /**
43
+ * Generated by JsPbCodeGenerator.
44
+ * @param {Array=} opt_data Optional initial data array, typically from a
45
+ * server response, or constructed directly in Javascript. The array is used
46
+ * in place and becomes part of the constructed object. It is not cloned.
47
+ * If no data is provided, the constructed object will be empty, but still
48
+ * valid.
49
+ * @extends {jspb.Message}
50
+ * @constructor
51
+ */
52
+ proto.wechaty.puppet.ContactListRequest = function(opt_data) {
53
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
54
+ };
55
+ goog.inherits(proto.wechaty.puppet.ContactListRequest, jspb.Message);
56
+ if (goog.DEBUG && !COMPILED) {
57
+ /**
58
+ * @public
59
+ * @override
60
+ */
61
+ proto.wechaty.puppet.ContactListRequest.displayName = 'proto.wechaty.puppet.ContactListRequest';
62
+ }
63
+ /**
64
+ * Generated by JsPbCodeGenerator.
65
+ * @param {Array=} opt_data Optional initial data array, typically from a
66
+ * server response, or constructed directly in Javascript. The array is used
67
+ * in place and becomes part of the constructed object. It is not cloned.
68
+ * If no data is provided, the constructed object will be empty, but still
69
+ * valid.
70
+ * @extends {jspb.Message}
71
+ * @constructor
72
+ */
73
+ proto.wechaty.puppet.ContactListResponse = function(opt_data) {
74
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.wechaty.puppet.ContactListResponse.repeatedFields_, null);
75
+ };
76
+ goog.inherits(proto.wechaty.puppet.ContactListResponse, jspb.Message);
77
+ if (goog.DEBUG && !COMPILED) {
78
+ /**
79
+ * @public
80
+ * @override
81
+ */
82
+ proto.wechaty.puppet.ContactListResponse.displayName = 'proto.wechaty.puppet.ContactListResponse';
83
+ }
84
+ /**
85
+ * Generated by JsPbCodeGenerator.
86
+ * @param {Array=} opt_data Optional initial data array, typically from a
87
+ * server response, or constructed directly in Javascript. The array is used
88
+ * in place and becomes part of the constructed object. It is not cloned.
89
+ * If no data is provided, the constructed object will be empty, but still
90
+ * valid.
91
+ * @extends {jspb.Message}
92
+ * @constructor
93
+ */
94
+ proto.wechaty.puppet.ContactPayloadRequest = function(opt_data) {
95
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
96
+ };
97
+ goog.inherits(proto.wechaty.puppet.ContactPayloadRequest, jspb.Message);
98
+ if (goog.DEBUG && !COMPILED) {
99
+ /**
100
+ * @public
101
+ * @override
102
+ */
103
+ proto.wechaty.puppet.ContactPayloadRequest.displayName = 'proto.wechaty.puppet.ContactPayloadRequest';
104
+ }
105
+ /**
106
+ * Generated by JsPbCodeGenerator.
107
+ * @param {Array=} opt_data Optional initial data array, typically from a
108
+ * server response, or constructed directly in Javascript. The array is used
109
+ * in place and becomes part of the constructed object. It is not cloned.
110
+ * If no data is provided, the constructed object will be empty, but still
111
+ * valid.
112
+ * @extends {jspb.Message}
113
+ * @constructor
114
+ */
115
+ proto.wechaty.puppet.ContactPayloadResponse = function(opt_data) {
116
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.wechaty.puppet.ContactPayloadResponse.repeatedFields_, null);
117
+ };
118
+ goog.inherits(proto.wechaty.puppet.ContactPayloadResponse, jspb.Message);
119
+ if (goog.DEBUG && !COMPILED) {
120
+ /**
121
+ * @public
122
+ * @override
123
+ */
124
+ proto.wechaty.puppet.ContactPayloadResponse.displayName = 'proto.wechaty.puppet.ContactPayloadResponse';
125
+ }
126
+ /**
127
+ * Generated by JsPbCodeGenerator.
128
+ * @param {Array=} opt_data Optional initial data array, typically from a
129
+ * server response, or constructed directly in Javascript. The array is used
130
+ * in place and becomes part of the constructed object. It is not cloned.
131
+ * If no data is provided, the constructed object will be empty, but still
132
+ * valid.
133
+ * @extends {jspb.Message}
134
+ * @constructor
135
+ */
136
+ proto.wechaty.puppet.ContactSelfQRCodeRequest = function(opt_data) {
137
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
138
+ };
139
+ goog.inherits(proto.wechaty.puppet.ContactSelfQRCodeRequest, jspb.Message);
140
+ if (goog.DEBUG && !COMPILED) {
141
+ /**
142
+ * @public
143
+ * @override
144
+ */
145
+ proto.wechaty.puppet.ContactSelfQRCodeRequest.displayName = 'proto.wechaty.puppet.ContactSelfQRCodeRequest';
146
+ }
147
+ /**
148
+ * Generated by JsPbCodeGenerator.
149
+ * @param {Array=} opt_data Optional initial data array, typically from a
150
+ * server response, or constructed directly in Javascript. The array is used
151
+ * in place and becomes part of the constructed object. It is not cloned.
152
+ * If no data is provided, the constructed object will be empty, but still
153
+ * valid.
154
+ * @extends {jspb.Message}
155
+ * @constructor
156
+ */
157
+ proto.wechaty.puppet.ContactSelfQRCodeResponse = function(opt_data) {
158
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
159
+ };
160
+ goog.inherits(proto.wechaty.puppet.ContactSelfQRCodeResponse, jspb.Message);
161
+ if (goog.DEBUG && !COMPILED) {
162
+ /**
163
+ * @public
164
+ * @override
165
+ */
166
+ proto.wechaty.puppet.ContactSelfQRCodeResponse.displayName = 'proto.wechaty.puppet.ContactSelfQRCodeResponse';
167
+ }
168
+ /**
169
+ * Generated by JsPbCodeGenerator.
170
+ * @param {Array=} opt_data Optional initial data array, typically from a
171
+ * server response, or constructed directly in Javascript. The array is used
172
+ * in place and becomes part of the constructed object. It is not cloned.
173
+ * If no data is provided, the constructed object will be empty, but still
174
+ * valid.
175
+ * @extends {jspb.Message}
176
+ * @constructor
177
+ */
178
+ proto.wechaty.puppet.ContactSelfNameRequest = function(opt_data) {
179
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
180
+ };
181
+ goog.inherits(proto.wechaty.puppet.ContactSelfNameRequest, jspb.Message);
182
+ if (goog.DEBUG && !COMPILED) {
183
+ /**
184
+ * @public
185
+ * @override
186
+ */
187
+ proto.wechaty.puppet.ContactSelfNameRequest.displayName = 'proto.wechaty.puppet.ContactSelfNameRequest';
188
+ }
189
+ /**
190
+ * Generated by JsPbCodeGenerator.
191
+ * @param {Array=} opt_data Optional initial data array, typically from a
192
+ * server response, or constructed directly in Javascript. The array is used
193
+ * in place and becomes part of the constructed object. It is not cloned.
194
+ * If no data is provided, the constructed object will be empty, but still
195
+ * valid.
196
+ * @extends {jspb.Message}
197
+ * @constructor
198
+ */
199
+ proto.wechaty.puppet.ContactSelfNameResponse = function(opt_data) {
200
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
201
+ };
202
+ goog.inherits(proto.wechaty.puppet.ContactSelfNameResponse, jspb.Message);
203
+ if (goog.DEBUG && !COMPILED) {
204
+ /**
205
+ * @public
206
+ * @override
207
+ */
208
+ proto.wechaty.puppet.ContactSelfNameResponse.displayName = 'proto.wechaty.puppet.ContactSelfNameResponse';
209
+ }
210
+ /**
211
+ * Generated by JsPbCodeGenerator.
212
+ * @param {Array=} opt_data Optional initial data array, typically from a
213
+ * server response, or constructed directly in Javascript. The array is used
214
+ * in place and becomes part of the constructed object. It is not cloned.
215
+ * If no data is provided, the constructed object will be empty, but still
216
+ * valid.
217
+ * @extends {jspb.Message}
218
+ * @constructor
219
+ */
220
+ proto.wechaty.puppet.ContactSelfSignatureRequest = function(opt_data) {
221
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
222
+ };
223
+ goog.inherits(proto.wechaty.puppet.ContactSelfSignatureRequest, jspb.Message);
224
+ if (goog.DEBUG && !COMPILED) {
225
+ /**
226
+ * @public
227
+ * @override
228
+ */
229
+ proto.wechaty.puppet.ContactSelfSignatureRequest.displayName = 'proto.wechaty.puppet.ContactSelfSignatureRequest';
230
+ }
231
+ /**
232
+ * Generated by JsPbCodeGenerator.
233
+ * @param {Array=} opt_data Optional initial data array, typically from a
234
+ * server response, or constructed directly in Javascript. The array is used
235
+ * in place and becomes part of the constructed object. It is not cloned.
236
+ * If no data is provided, the constructed object will be empty, but still
237
+ * valid.
238
+ * @extends {jspb.Message}
239
+ * @constructor
240
+ */
241
+ proto.wechaty.puppet.ContactSelfSignatureResponse = function(opt_data) {
242
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
243
+ };
244
+ goog.inherits(proto.wechaty.puppet.ContactSelfSignatureResponse, jspb.Message);
245
+ if (goog.DEBUG && !COMPILED) {
246
+ /**
247
+ * @public
248
+ * @override
249
+ */
250
+ proto.wechaty.puppet.ContactSelfSignatureResponse.displayName = 'proto.wechaty.puppet.ContactSelfSignatureResponse';
251
+ }
252
+ /**
253
+ * Generated by JsPbCodeGenerator.
254
+ * @param {Array=} opt_data Optional initial data array, typically from a
255
+ * server response, or constructed directly in Javascript. The array is used
256
+ * in place and becomes part of the constructed object. It is not cloned.
257
+ * If no data is provided, the constructed object will be empty, but still
258
+ * valid.
259
+ * @extends {jspb.Message}
260
+ * @constructor
261
+ */
262
+ proto.wechaty.puppet.ContactAliasRequest = function(opt_data) {
263
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
264
+ };
265
+ goog.inherits(proto.wechaty.puppet.ContactAliasRequest, jspb.Message);
266
+ if (goog.DEBUG && !COMPILED) {
267
+ /**
268
+ * @public
269
+ * @override
270
+ */
271
+ proto.wechaty.puppet.ContactAliasRequest.displayName = 'proto.wechaty.puppet.ContactAliasRequest';
272
+ }
273
+ /**
274
+ * Generated by JsPbCodeGenerator.
275
+ * @param {Array=} opt_data Optional initial data array, typically from a
276
+ * server response, or constructed directly in Javascript. The array is used
277
+ * in place and becomes part of the constructed object. It is not cloned.
278
+ * If no data is provided, the constructed object will be empty, but still
279
+ * valid.
280
+ * @extends {jspb.Message}
281
+ * @constructor
282
+ */
283
+ proto.wechaty.puppet.ContactAliasResponse = function(opt_data) {
284
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
285
+ };
286
+ goog.inherits(proto.wechaty.puppet.ContactAliasResponse, jspb.Message);
287
+ if (goog.DEBUG && !COMPILED) {
288
+ /**
289
+ * @public
290
+ * @override
291
+ */
292
+ proto.wechaty.puppet.ContactAliasResponse.displayName = 'proto.wechaty.puppet.ContactAliasResponse';
293
+ }
294
+ /**
295
+ * Generated by JsPbCodeGenerator.
296
+ * @param {Array=} opt_data Optional initial data array, typically from a
297
+ * server response, or constructed directly in Javascript. The array is used
298
+ * in place and becomes part of the constructed object. It is not cloned.
299
+ * If no data is provided, the constructed object will be empty, but still
300
+ * valid.
301
+ * @extends {jspb.Message}
302
+ * @constructor
303
+ */
304
+ proto.wechaty.puppet.ContactAvatarRequest = function(opt_data) {
305
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
306
+ };
307
+ goog.inherits(proto.wechaty.puppet.ContactAvatarRequest, jspb.Message);
308
+ if (goog.DEBUG && !COMPILED) {
309
+ /**
310
+ * @public
311
+ * @override
312
+ */
313
+ proto.wechaty.puppet.ContactAvatarRequest.displayName = 'proto.wechaty.puppet.ContactAvatarRequest';
314
+ }
315
+ /**
316
+ * Generated by JsPbCodeGenerator.
317
+ * @param {Array=} opt_data Optional initial data array, typically from a
318
+ * server response, or constructed directly in Javascript. The array is used
319
+ * in place and becomes part of the constructed object. It is not cloned.
320
+ * If no data is provided, the constructed object will be empty, but still
321
+ * valid.
322
+ * @extends {jspb.Message}
323
+ * @constructor
324
+ */
325
+ proto.wechaty.puppet.ContactAvatarResponse = function(opt_data) {
326
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
327
+ };
328
+ goog.inherits(proto.wechaty.puppet.ContactAvatarResponse, jspb.Message);
329
+ if (goog.DEBUG && !COMPILED) {
330
+ /**
331
+ * @public
332
+ * @override
333
+ */
334
+ proto.wechaty.puppet.ContactAvatarResponse.displayName = 'proto.wechaty.puppet.ContactAvatarResponse';
335
+ }
336
+ /**
337
+ * Generated by JsPbCodeGenerator.
338
+ * @param {Array=} opt_data Optional initial data array, typically from a
339
+ * server response, or constructed directly in Javascript. The array is used
340
+ * in place and becomes part of the constructed object. It is not cloned.
341
+ * If no data is provided, the constructed object will be empty, but still
342
+ * valid.
343
+ * @extends {jspb.Message}
344
+ * @constructor
345
+ */
346
+ proto.wechaty.puppet.ContactPhoneRequest = function(opt_data) {
347
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.wechaty.puppet.ContactPhoneRequest.repeatedFields_, null);
348
+ };
349
+ goog.inherits(proto.wechaty.puppet.ContactPhoneRequest, jspb.Message);
350
+ if (goog.DEBUG && !COMPILED) {
351
+ /**
352
+ * @public
353
+ * @override
354
+ */
355
+ proto.wechaty.puppet.ContactPhoneRequest.displayName = 'proto.wechaty.puppet.ContactPhoneRequest';
356
+ }
357
+ /**
358
+ * Generated by JsPbCodeGenerator.
359
+ * @param {Array=} opt_data Optional initial data array, typically from a
360
+ * server response, or constructed directly in Javascript. The array is used
361
+ * in place and becomes part of the constructed object. It is not cloned.
362
+ * If no data is provided, the constructed object will be empty, but still
363
+ * valid.
364
+ * @extends {jspb.Message}
365
+ * @constructor
366
+ */
367
+ proto.wechaty.puppet.ContactPhoneResponse = function(opt_data) {
368
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.wechaty.puppet.ContactPhoneResponse.repeatedFields_, null);
369
+ };
370
+ goog.inherits(proto.wechaty.puppet.ContactPhoneResponse, jspb.Message);
371
+ if (goog.DEBUG && !COMPILED) {
372
+ /**
373
+ * @public
374
+ * @override
375
+ */
376
+ proto.wechaty.puppet.ContactPhoneResponse.displayName = 'proto.wechaty.puppet.ContactPhoneResponse';
377
+ }
378
+ /**
379
+ * Generated by JsPbCodeGenerator.
380
+ * @param {Array=} opt_data Optional initial data array, typically from a
381
+ * server response, or constructed directly in Javascript. The array is used
382
+ * in place and becomes part of the constructed object. It is not cloned.
383
+ * If no data is provided, the constructed object will be empty, but still
384
+ * valid.
385
+ * @extends {jspb.Message}
386
+ * @constructor
387
+ */
388
+ proto.wechaty.puppet.ContactCorporationRemarkRequest = function(opt_data) {
389
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
390
+ };
391
+ goog.inherits(proto.wechaty.puppet.ContactCorporationRemarkRequest, jspb.Message);
392
+ if (goog.DEBUG && !COMPILED) {
393
+ /**
394
+ * @public
395
+ * @override
396
+ */
397
+ proto.wechaty.puppet.ContactCorporationRemarkRequest.displayName = 'proto.wechaty.puppet.ContactCorporationRemarkRequest';
398
+ }
399
+ /**
400
+ * Generated by JsPbCodeGenerator.
401
+ * @param {Array=} opt_data Optional initial data array, typically from a
402
+ * server response, or constructed directly in Javascript. The array is used
403
+ * in place and becomes part of the constructed object. It is not cloned.
404
+ * If no data is provided, the constructed object will be empty, but still
405
+ * valid.
406
+ * @extends {jspb.Message}
407
+ * @constructor
408
+ */
409
+ proto.wechaty.puppet.ContactCorporationRemarkResponse = function(opt_data) {
410
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
411
+ };
412
+ goog.inherits(proto.wechaty.puppet.ContactCorporationRemarkResponse, jspb.Message);
413
+ if (goog.DEBUG && !COMPILED) {
414
+ /**
415
+ * @public
416
+ * @override
417
+ */
418
+ proto.wechaty.puppet.ContactCorporationRemarkResponse.displayName = 'proto.wechaty.puppet.ContactCorporationRemarkResponse';
419
+ }
420
+ /**
421
+ * Generated by JsPbCodeGenerator.
422
+ * @param {Array=} opt_data Optional initial data array, typically from a
423
+ * server response, or constructed directly in Javascript. The array is used
424
+ * in place and becomes part of the constructed object. It is not cloned.
425
+ * If no data is provided, the constructed object will be empty, but still
426
+ * valid.
427
+ * @extends {jspb.Message}
428
+ * @constructor
429
+ */
430
+ proto.wechaty.puppet.ContactDescriptionRequest = function(opt_data) {
431
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
432
+ };
433
+ goog.inherits(proto.wechaty.puppet.ContactDescriptionRequest, jspb.Message);
434
+ if (goog.DEBUG && !COMPILED) {
435
+ /**
436
+ * @public
437
+ * @override
438
+ */
439
+ proto.wechaty.puppet.ContactDescriptionRequest.displayName = 'proto.wechaty.puppet.ContactDescriptionRequest';
440
+ }
441
+ /**
442
+ * Generated by JsPbCodeGenerator.
443
+ * @param {Array=} opt_data Optional initial data array, typically from a
444
+ * server response, or constructed directly in Javascript. The array is used
445
+ * in place and becomes part of the constructed object. It is not cloned.
446
+ * If no data is provided, the constructed object will be empty, but still
447
+ * valid.
448
+ * @extends {jspb.Message}
449
+ * @constructor
450
+ */
451
+ proto.wechaty.puppet.ContactDescriptionResponse = function(opt_data) {
452
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
453
+ };
454
+ goog.inherits(proto.wechaty.puppet.ContactDescriptionResponse, jspb.Message);
455
+ if (goog.DEBUG && !COMPILED) {
456
+ /**
457
+ * @public
458
+ * @override
459
+ */
460
+ proto.wechaty.puppet.ContactDescriptionResponse.displayName = 'proto.wechaty.puppet.ContactDescriptionResponse';
461
+ }
462
+
463
+
464
+
465
+ if (jspb.Message.GENERATE_TO_OBJECT) {
466
+ /**
467
+ * Creates an object representation of this proto.
468
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
469
+ * Optional fields that are not set will be set to undefined.
470
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
471
+ * For the list of reserved names please see:
472
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
473
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
474
+ * JSPB instance for transitional soy proto support:
475
+ * http://goto/soy-param-migration
476
+ * @return {!Object}
477
+ */
478
+ proto.wechaty.puppet.ContactListRequest.prototype.toObject = function(opt_includeInstance) {
479
+ return proto.wechaty.puppet.ContactListRequest.toObject(opt_includeInstance, this);
480
+ };
481
+
482
+
483
+ /**
484
+ * Static version of the {@see toObject} method.
485
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
486
+ * the JSPB instance for transitional soy proto support:
487
+ * http://goto/soy-param-migration
488
+ * @param {!proto.wechaty.puppet.ContactListRequest} msg The msg instance to transform.
489
+ * @return {!Object}
490
+ * @suppress {unusedLocalVariables} f is only used for nested messages
491
+ */
492
+ proto.wechaty.puppet.ContactListRequest.toObject = function(includeInstance, msg) {
493
+ var f, obj = {
494
+
495
+ };
496
+
497
+ if (includeInstance) {
498
+ obj.$jspbMessageInstance = msg;
499
+ }
500
+ return obj;
501
+ };
502
+ }
503
+
504
+
505
+ /**
506
+ * Deserializes binary data (in protobuf wire format).
507
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
508
+ * @return {!proto.wechaty.puppet.ContactListRequest}
509
+ */
510
+ proto.wechaty.puppet.ContactListRequest.deserializeBinary = function(bytes) {
511
+ var reader = new jspb.BinaryReader(bytes);
512
+ var msg = new proto.wechaty.puppet.ContactListRequest;
513
+ return proto.wechaty.puppet.ContactListRequest.deserializeBinaryFromReader(msg, reader);
514
+ };
515
+
516
+
517
+ /**
518
+ * Deserializes binary data (in protobuf wire format) from the
519
+ * given reader into the given message object.
520
+ * @param {!proto.wechaty.puppet.ContactListRequest} msg The message object to deserialize into.
521
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
522
+ * @return {!proto.wechaty.puppet.ContactListRequest}
523
+ */
524
+ proto.wechaty.puppet.ContactListRequest.deserializeBinaryFromReader = function(msg, reader) {
525
+ while (reader.nextField()) {
526
+ if (reader.isEndGroup()) {
527
+ break;
528
+ }
529
+ var field = reader.getFieldNumber();
530
+ switch (field) {
531
+ default:
532
+ reader.skipField();
533
+ break;
534
+ }
535
+ }
536
+ return msg;
537
+ };
538
+
539
+
540
+ /**
541
+ * Serializes the message to binary data (in protobuf wire format).
542
+ * @return {!Uint8Array}
543
+ */
544
+ proto.wechaty.puppet.ContactListRequest.prototype.serializeBinary = function() {
545
+ var writer = new jspb.BinaryWriter();
546
+ proto.wechaty.puppet.ContactListRequest.serializeBinaryToWriter(this, writer);
547
+ return writer.getResultBuffer();
548
+ };
549
+
550
+
551
+ /**
552
+ * Serializes the given message to binary data (in protobuf wire
553
+ * format), writing to the given BinaryWriter.
554
+ * @param {!proto.wechaty.puppet.ContactListRequest} message
555
+ * @param {!jspb.BinaryWriter} writer
556
+ * @suppress {unusedLocalVariables} f is only used for nested messages
557
+ */
558
+ proto.wechaty.puppet.ContactListRequest.serializeBinaryToWriter = function(message, writer) {
559
+ var f = undefined;
560
+ };
561
+
562
+
563
+
564
+ /**
565
+ * List of repeated fields within this message type.
566
+ * @private {!Array<number>}
567
+ * @const
568
+ */
569
+ proto.wechaty.puppet.ContactListResponse.repeatedFields_ = [1];
570
+
571
+
572
+
573
+ if (jspb.Message.GENERATE_TO_OBJECT) {
574
+ /**
575
+ * Creates an object representation of this proto.
576
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
577
+ * Optional fields that are not set will be set to undefined.
578
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
579
+ * For the list of reserved names please see:
580
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
581
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
582
+ * JSPB instance for transitional soy proto support:
583
+ * http://goto/soy-param-migration
584
+ * @return {!Object}
585
+ */
586
+ proto.wechaty.puppet.ContactListResponse.prototype.toObject = function(opt_includeInstance) {
587
+ return proto.wechaty.puppet.ContactListResponse.toObject(opt_includeInstance, this);
588
+ };
589
+
590
+
591
+ /**
592
+ * Static version of the {@see toObject} method.
593
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
594
+ * the JSPB instance for transitional soy proto support:
595
+ * http://goto/soy-param-migration
596
+ * @param {!proto.wechaty.puppet.ContactListResponse} msg The msg instance to transform.
597
+ * @return {!Object}
598
+ * @suppress {unusedLocalVariables} f is only used for nested messages
599
+ */
600
+ proto.wechaty.puppet.ContactListResponse.toObject = function(includeInstance, msg) {
601
+ var f, obj = {
602
+ idsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
603
+ };
604
+
605
+ if (includeInstance) {
606
+ obj.$jspbMessageInstance = msg;
607
+ }
608
+ return obj;
609
+ };
610
+ }
611
+
612
+
613
+ /**
614
+ * Deserializes binary data (in protobuf wire format).
615
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
616
+ * @return {!proto.wechaty.puppet.ContactListResponse}
617
+ */
618
+ proto.wechaty.puppet.ContactListResponse.deserializeBinary = function(bytes) {
619
+ var reader = new jspb.BinaryReader(bytes);
620
+ var msg = new proto.wechaty.puppet.ContactListResponse;
621
+ return proto.wechaty.puppet.ContactListResponse.deserializeBinaryFromReader(msg, reader);
622
+ };
623
+
624
+
625
+ /**
626
+ * Deserializes binary data (in protobuf wire format) from the
627
+ * given reader into the given message object.
628
+ * @param {!proto.wechaty.puppet.ContactListResponse} msg The message object to deserialize into.
629
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
630
+ * @return {!proto.wechaty.puppet.ContactListResponse}
631
+ */
632
+ proto.wechaty.puppet.ContactListResponse.deserializeBinaryFromReader = function(msg, reader) {
633
+ while (reader.nextField()) {
634
+ if (reader.isEndGroup()) {
635
+ break;
636
+ }
637
+ var field = reader.getFieldNumber();
638
+ switch (field) {
639
+ case 1:
640
+ var value = /** @type {string} */ (reader.readString());
641
+ msg.addIds(value);
642
+ break;
643
+ default:
644
+ reader.skipField();
645
+ break;
646
+ }
647
+ }
648
+ return msg;
649
+ };
650
+
651
+
652
+ /**
653
+ * Serializes the message to binary data (in protobuf wire format).
654
+ * @return {!Uint8Array}
655
+ */
656
+ proto.wechaty.puppet.ContactListResponse.prototype.serializeBinary = function() {
657
+ var writer = new jspb.BinaryWriter();
658
+ proto.wechaty.puppet.ContactListResponse.serializeBinaryToWriter(this, writer);
659
+ return writer.getResultBuffer();
660
+ };
661
+
662
+
663
+ /**
664
+ * Serializes the given message to binary data (in protobuf wire
665
+ * format), writing to the given BinaryWriter.
666
+ * @param {!proto.wechaty.puppet.ContactListResponse} message
667
+ * @param {!jspb.BinaryWriter} writer
668
+ * @suppress {unusedLocalVariables} f is only used for nested messages
669
+ */
670
+ proto.wechaty.puppet.ContactListResponse.serializeBinaryToWriter = function(message, writer) {
671
+ var f = undefined;
672
+ f = message.getIdsList();
673
+ if (f.length > 0) {
674
+ writer.writeRepeatedString(
675
+ 1,
676
+ f
677
+ );
678
+ }
679
+ };
680
+
681
+
682
+ /**
683
+ * repeated string ids = 1;
684
+ * @return {!Array<string>}
685
+ */
686
+ proto.wechaty.puppet.ContactListResponse.prototype.getIdsList = function() {
687
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
688
+ };
689
+
690
+
691
+ /**
692
+ * @param {!Array<string>} value
693
+ * @return {!proto.wechaty.puppet.ContactListResponse} returns this
694
+ */
695
+ proto.wechaty.puppet.ContactListResponse.prototype.setIdsList = function(value) {
696
+ return jspb.Message.setField(this, 1, value || []);
697
+ };
698
+
699
+
700
+ /**
701
+ * @param {string} value
702
+ * @param {number=} opt_index
703
+ * @return {!proto.wechaty.puppet.ContactListResponse} returns this
704
+ */
705
+ proto.wechaty.puppet.ContactListResponse.prototype.addIds = function(value, opt_index) {
706
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
707
+ };
708
+
709
+
710
+ /**
711
+ * Clears the list making it empty but non-null.
712
+ * @return {!proto.wechaty.puppet.ContactListResponse} returns this
713
+ */
714
+ proto.wechaty.puppet.ContactListResponse.prototype.clearIdsList = function() {
715
+ return this.setIdsList([]);
716
+ };
717
+
718
+
719
+
720
+
721
+
722
+ if (jspb.Message.GENERATE_TO_OBJECT) {
723
+ /**
724
+ * Creates an object representation of this proto.
725
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
726
+ * Optional fields that are not set will be set to undefined.
727
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
728
+ * For the list of reserved names please see:
729
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
730
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
731
+ * JSPB instance for transitional soy proto support:
732
+ * http://goto/soy-param-migration
733
+ * @return {!Object}
734
+ */
735
+ proto.wechaty.puppet.ContactPayloadRequest.prototype.toObject = function(opt_includeInstance) {
736
+ return proto.wechaty.puppet.ContactPayloadRequest.toObject(opt_includeInstance, this);
737
+ };
738
+
739
+
740
+ /**
741
+ * Static version of the {@see toObject} method.
742
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
743
+ * the JSPB instance for transitional soy proto support:
744
+ * http://goto/soy-param-migration
745
+ * @param {!proto.wechaty.puppet.ContactPayloadRequest} msg The msg instance to transform.
746
+ * @return {!Object}
747
+ * @suppress {unusedLocalVariables} f is only used for nested messages
748
+ */
749
+ proto.wechaty.puppet.ContactPayloadRequest.toObject = function(includeInstance, msg) {
750
+ var f, obj = {
751
+ id: jspb.Message.getFieldWithDefault(msg, 1, "")
752
+ };
753
+
754
+ if (includeInstance) {
755
+ obj.$jspbMessageInstance = msg;
756
+ }
757
+ return obj;
758
+ };
759
+ }
760
+
761
+
762
+ /**
763
+ * Deserializes binary data (in protobuf wire format).
764
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
765
+ * @return {!proto.wechaty.puppet.ContactPayloadRequest}
766
+ */
767
+ proto.wechaty.puppet.ContactPayloadRequest.deserializeBinary = function(bytes) {
768
+ var reader = new jspb.BinaryReader(bytes);
769
+ var msg = new proto.wechaty.puppet.ContactPayloadRequest;
770
+ return proto.wechaty.puppet.ContactPayloadRequest.deserializeBinaryFromReader(msg, reader);
771
+ };
772
+
773
+
774
+ /**
775
+ * Deserializes binary data (in protobuf wire format) from the
776
+ * given reader into the given message object.
777
+ * @param {!proto.wechaty.puppet.ContactPayloadRequest} msg The message object to deserialize into.
778
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
779
+ * @return {!proto.wechaty.puppet.ContactPayloadRequest}
780
+ */
781
+ proto.wechaty.puppet.ContactPayloadRequest.deserializeBinaryFromReader = function(msg, reader) {
782
+ while (reader.nextField()) {
783
+ if (reader.isEndGroup()) {
784
+ break;
785
+ }
786
+ var field = reader.getFieldNumber();
787
+ switch (field) {
788
+ case 1:
789
+ var value = /** @type {string} */ (reader.readString());
790
+ msg.setId(value);
791
+ break;
792
+ default:
793
+ reader.skipField();
794
+ break;
795
+ }
796
+ }
797
+ return msg;
798
+ };
799
+
800
+
801
+ /**
802
+ * Serializes the message to binary data (in protobuf wire format).
803
+ * @return {!Uint8Array}
804
+ */
805
+ proto.wechaty.puppet.ContactPayloadRequest.prototype.serializeBinary = function() {
806
+ var writer = new jspb.BinaryWriter();
807
+ proto.wechaty.puppet.ContactPayloadRequest.serializeBinaryToWriter(this, writer);
808
+ return writer.getResultBuffer();
809
+ };
810
+
811
+
812
+ /**
813
+ * Serializes the given message to binary data (in protobuf wire
814
+ * format), writing to the given BinaryWriter.
815
+ * @param {!proto.wechaty.puppet.ContactPayloadRequest} message
816
+ * @param {!jspb.BinaryWriter} writer
817
+ * @suppress {unusedLocalVariables} f is only used for nested messages
818
+ */
819
+ proto.wechaty.puppet.ContactPayloadRequest.serializeBinaryToWriter = function(message, writer) {
820
+ var f = undefined;
821
+ f = message.getId();
822
+ if (f.length > 0) {
823
+ writer.writeString(
824
+ 1,
825
+ f
826
+ );
827
+ }
828
+ };
829
+
830
+
831
+ /**
832
+ * optional string id = 1;
833
+ * @return {string}
834
+ */
835
+ proto.wechaty.puppet.ContactPayloadRequest.prototype.getId = function() {
836
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
837
+ };
838
+
839
+
840
+ /**
841
+ * @param {string} value
842
+ * @return {!proto.wechaty.puppet.ContactPayloadRequest} returns this
843
+ */
844
+ proto.wechaty.puppet.ContactPayloadRequest.prototype.setId = function(value) {
845
+ return jspb.Message.setProto3StringField(this, 1, value);
846
+ };
847
+
848
+
849
+
850
+ /**
851
+ * List of repeated fields within this message type.
852
+ * @private {!Array<number>}
853
+ * @const
854
+ */
855
+ proto.wechaty.puppet.ContactPayloadResponse.repeatedFields_ = [18];
856
+
857
+
858
+
859
+ if (jspb.Message.GENERATE_TO_OBJECT) {
860
+ /**
861
+ * Creates an object representation of this proto.
862
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
863
+ * Optional fields that are not set will be set to undefined.
864
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
865
+ * For the list of reserved names please see:
866
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
867
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
868
+ * JSPB instance for transitional soy proto support:
869
+ * http://goto/soy-param-migration
870
+ * @return {!Object}
871
+ */
872
+ proto.wechaty.puppet.ContactPayloadResponse.prototype.toObject = function(opt_includeInstance) {
873
+ return proto.wechaty.puppet.ContactPayloadResponse.toObject(opt_includeInstance, this);
874
+ };
875
+
876
+
877
+ /**
878
+ * Static version of the {@see toObject} method.
879
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
880
+ * the JSPB instance for transitional soy proto support:
881
+ * http://goto/soy-param-migration
882
+ * @param {!proto.wechaty.puppet.ContactPayloadResponse} msg The msg instance to transform.
883
+ * @return {!Object}
884
+ * @suppress {unusedLocalVariables} f is only used for nested messages
885
+ */
886
+ proto.wechaty.puppet.ContactPayloadResponse.toObject = function(includeInstance, msg) {
887
+ var f, obj = {
888
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
889
+ gender: jspb.Message.getFieldWithDefault(msg, 2, 0),
890
+ type: jspb.Message.getFieldWithDefault(msg, 3, 0),
891
+ name: jspb.Message.getFieldWithDefault(msg, 4, ""),
892
+ avatar: jspb.Message.getFieldWithDefault(msg, 5, ""),
893
+ address: jspb.Message.getFieldWithDefault(msg, 6, ""),
894
+ alias: jspb.Message.getFieldWithDefault(msg, 7, ""),
895
+ city: jspb.Message.getFieldWithDefault(msg, 8, ""),
896
+ friend: jspb.Message.getBooleanFieldWithDefault(msg, 9, false),
897
+ province: jspb.Message.getFieldWithDefault(msg, 10, ""),
898
+ signature: jspb.Message.getFieldWithDefault(msg, 11, ""),
899
+ star: jspb.Message.getBooleanFieldWithDefault(msg, 12, false),
900
+ weixin: jspb.Message.getFieldWithDefault(msg, 13, ""),
901
+ corporation: jspb.Message.getFieldWithDefault(msg, 14, ""),
902
+ title: jspb.Message.getFieldWithDefault(msg, 15, ""),
903
+ description: jspb.Message.getFieldWithDefault(msg, 16, ""),
904
+ coworker: jspb.Message.getBooleanFieldWithDefault(msg, 17, false),
905
+ phonesList: (f = jspb.Message.getRepeatedField(msg, 18)) == null ? undefined : f
906
+ };
907
+
908
+ if (includeInstance) {
909
+ obj.$jspbMessageInstance = msg;
910
+ }
911
+ return obj;
912
+ };
913
+ }
914
+
915
+
916
+ /**
917
+ * Deserializes binary data (in protobuf wire format).
918
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
919
+ * @return {!proto.wechaty.puppet.ContactPayloadResponse}
920
+ */
921
+ proto.wechaty.puppet.ContactPayloadResponse.deserializeBinary = function(bytes) {
922
+ var reader = new jspb.BinaryReader(bytes);
923
+ var msg = new proto.wechaty.puppet.ContactPayloadResponse;
924
+ return proto.wechaty.puppet.ContactPayloadResponse.deserializeBinaryFromReader(msg, reader);
925
+ };
926
+
927
+
928
+ /**
929
+ * Deserializes binary data (in protobuf wire format) from the
930
+ * given reader into the given message object.
931
+ * @param {!proto.wechaty.puppet.ContactPayloadResponse} msg The message object to deserialize into.
932
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
933
+ * @return {!proto.wechaty.puppet.ContactPayloadResponse}
934
+ */
935
+ proto.wechaty.puppet.ContactPayloadResponse.deserializeBinaryFromReader = function(msg, reader) {
936
+ while (reader.nextField()) {
937
+ if (reader.isEndGroup()) {
938
+ break;
939
+ }
940
+ var field = reader.getFieldNumber();
941
+ switch (field) {
942
+ case 1:
943
+ var value = /** @type {string} */ (reader.readString());
944
+ msg.setId(value);
945
+ break;
946
+ case 2:
947
+ var value = /** @type {!proto.wechaty.puppet.ContactGender} */ (reader.readEnum());
948
+ msg.setGender(value);
949
+ break;
950
+ case 3:
951
+ var value = /** @type {!proto.wechaty.puppet.ContactType} */ (reader.readEnum());
952
+ msg.setType(value);
953
+ break;
954
+ case 4:
955
+ var value = /** @type {string} */ (reader.readString());
956
+ msg.setName(value);
957
+ break;
958
+ case 5:
959
+ var value = /** @type {string} */ (reader.readString());
960
+ msg.setAvatar(value);
961
+ break;
962
+ case 6:
963
+ var value = /** @type {string} */ (reader.readString());
964
+ msg.setAddress(value);
965
+ break;
966
+ case 7:
967
+ var value = /** @type {string} */ (reader.readString());
968
+ msg.setAlias(value);
969
+ break;
970
+ case 8:
971
+ var value = /** @type {string} */ (reader.readString());
972
+ msg.setCity(value);
973
+ break;
974
+ case 9:
975
+ var value = /** @type {boolean} */ (reader.readBool());
976
+ msg.setFriend(value);
977
+ break;
978
+ case 10:
979
+ var value = /** @type {string} */ (reader.readString());
980
+ msg.setProvince(value);
981
+ break;
982
+ case 11:
983
+ var value = /** @type {string} */ (reader.readString());
984
+ msg.setSignature(value);
985
+ break;
986
+ case 12:
987
+ var value = /** @type {boolean} */ (reader.readBool());
988
+ msg.setStar(value);
989
+ break;
990
+ case 13:
991
+ var value = /** @type {string} */ (reader.readString());
992
+ msg.setWeixin(value);
993
+ break;
994
+ case 14:
995
+ var value = /** @type {string} */ (reader.readString());
996
+ msg.setCorporation(value);
997
+ break;
998
+ case 15:
999
+ var value = /** @type {string} */ (reader.readString());
1000
+ msg.setTitle(value);
1001
+ break;
1002
+ case 16:
1003
+ var value = /** @type {string} */ (reader.readString());
1004
+ msg.setDescription(value);
1005
+ break;
1006
+ case 17:
1007
+ var value = /** @type {boolean} */ (reader.readBool());
1008
+ msg.setCoworker(value);
1009
+ break;
1010
+ case 18:
1011
+ var value = /** @type {string} */ (reader.readString());
1012
+ msg.addPhones(value);
1013
+ break;
1014
+ default:
1015
+ reader.skipField();
1016
+ break;
1017
+ }
1018
+ }
1019
+ return msg;
1020
+ };
1021
+
1022
+
1023
+ /**
1024
+ * Serializes the message to binary data (in protobuf wire format).
1025
+ * @return {!Uint8Array}
1026
+ */
1027
+ proto.wechaty.puppet.ContactPayloadResponse.prototype.serializeBinary = function() {
1028
+ var writer = new jspb.BinaryWriter();
1029
+ proto.wechaty.puppet.ContactPayloadResponse.serializeBinaryToWriter(this, writer);
1030
+ return writer.getResultBuffer();
1031
+ };
1032
+
1033
+
1034
+ /**
1035
+ * Serializes the given message to binary data (in protobuf wire
1036
+ * format), writing to the given BinaryWriter.
1037
+ * @param {!proto.wechaty.puppet.ContactPayloadResponse} message
1038
+ * @param {!jspb.BinaryWriter} writer
1039
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1040
+ */
1041
+ proto.wechaty.puppet.ContactPayloadResponse.serializeBinaryToWriter = function(message, writer) {
1042
+ var f = undefined;
1043
+ f = message.getId();
1044
+ if (f.length > 0) {
1045
+ writer.writeString(
1046
+ 1,
1047
+ f
1048
+ );
1049
+ }
1050
+ f = message.getGender();
1051
+ if (f !== 0.0) {
1052
+ writer.writeEnum(
1053
+ 2,
1054
+ f
1055
+ );
1056
+ }
1057
+ f = message.getType();
1058
+ if (f !== 0.0) {
1059
+ writer.writeEnum(
1060
+ 3,
1061
+ f
1062
+ );
1063
+ }
1064
+ f = message.getName();
1065
+ if (f.length > 0) {
1066
+ writer.writeString(
1067
+ 4,
1068
+ f
1069
+ );
1070
+ }
1071
+ f = message.getAvatar();
1072
+ if (f.length > 0) {
1073
+ writer.writeString(
1074
+ 5,
1075
+ f
1076
+ );
1077
+ }
1078
+ f = message.getAddress();
1079
+ if (f.length > 0) {
1080
+ writer.writeString(
1081
+ 6,
1082
+ f
1083
+ );
1084
+ }
1085
+ f = message.getAlias();
1086
+ if (f.length > 0) {
1087
+ writer.writeString(
1088
+ 7,
1089
+ f
1090
+ );
1091
+ }
1092
+ f = message.getCity();
1093
+ if (f.length > 0) {
1094
+ writer.writeString(
1095
+ 8,
1096
+ f
1097
+ );
1098
+ }
1099
+ f = message.getFriend();
1100
+ if (f) {
1101
+ writer.writeBool(
1102
+ 9,
1103
+ f
1104
+ );
1105
+ }
1106
+ f = message.getProvince();
1107
+ if (f.length > 0) {
1108
+ writer.writeString(
1109
+ 10,
1110
+ f
1111
+ );
1112
+ }
1113
+ f = message.getSignature();
1114
+ if (f.length > 0) {
1115
+ writer.writeString(
1116
+ 11,
1117
+ f
1118
+ );
1119
+ }
1120
+ f = message.getStar();
1121
+ if (f) {
1122
+ writer.writeBool(
1123
+ 12,
1124
+ f
1125
+ );
1126
+ }
1127
+ f = message.getWeixin();
1128
+ if (f.length > 0) {
1129
+ writer.writeString(
1130
+ 13,
1131
+ f
1132
+ );
1133
+ }
1134
+ f = message.getCorporation();
1135
+ if (f.length > 0) {
1136
+ writer.writeString(
1137
+ 14,
1138
+ f
1139
+ );
1140
+ }
1141
+ f = message.getTitle();
1142
+ if (f.length > 0) {
1143
+ writer.writeString(
1144
+ 15,
1145
+ f
1146
+ );
1147
+ }
1148
+ f = message.getDescription();
1149
+ if (f.length > 0) {
1150
+ writer.writeString(
1151
+ 16,
1152
+ f
1153
+ );
1154
+ }
1155
+ f = message.getCoworker();
1156
+ if (f) {
1157
+ writer.writeBool(
1158
+ 17,
1159
+ f
1160
+ );
1161
+ }
1162
+ f = message.getPhonesList();
1163
+ if (f.length > 0) {
1164
+ writer.writeRepeatedString(
1165
+ 18,
1166
+ f
1167
+ );
1168
+ }
1169
+ };
1170
+
1171
+
1172
+ /**
1173
+ * optional string id = 1;
1174
+ * @return {string}
1175
+ */
1176
+ proto.wechaty.puppet.ContactPayloadResponse.prototype.getId = function() {
1177
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1178
+ };
1179
+
1180
+
1181
+ /**
1182
+ * @param {string} value
1183
+ * @return {!proto.wechaty.puppet.ContactPayloadResponse} returns this
1184
+ */
1185
+ proto.wechaty.puppet.ContactPayloadResponse.prototype.setId = function(value) {
1186
+ return jspb.Message.setProto3StringField(this, 1, value);
1187
+ };
1188
+
1189
+
1190
+ /**
1191
+ * optional ContactGender gender = 2;
1192
+ * @return {!proto.wechaty.puppet.ContactGender}
1193
+ */
1194
+ proto.wechaty.puppet.ContactPayloadResponse.prototype.getGender = function() {
1195
+ return /** @type {!proto.wechaty.puppet.ContactGender} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1196
+ };
1197
+
1198
+
1199
+ /**
1200
+ * @param {!proto.wechaty.puppet.ContactGender} value
1201
+ * @return {!proto.wechaty.puppet.ContactPayloadResponse} returns this
1202
+ */
1203
+ proto.wechaty.puppet.ContactPayloadResponse.prototype.setGender = function(value) {
1204
+ return jspb.Message.setProto3EnumField(this, 2, value);
1205
+ };
1206
+
1207
+
1208
+ /**
1209
+ * optional ContactType type = 3;
1210
+ * @return {!proto.wechaty.puppet.ContactType}
1211
+ */
1212
+ proto.wechaty.puppet.ContactPayloadResponse.prototype.getType = function() {
1213
+ return /** @type {!proto.wechaty.puppet.ContactType} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
1214
+ };
1215
+
1216
+
1217
+ /**
1218
+ * @param {!proto.wechaty.puppet.ContactType} value
1219
+ * @return {!proto.wechaty.puppet.ContactPayloadResponse} returns this
1220
+ */
1221
+ proto.wechaty.puppet.ContactPayloadResponse.prototype.setType = function(value) {
1222
+ return jspb.Message.setProto3EnumField(this, 3, value);
1223
+ };
1224
+
1225
+
1226
+ /**
1227
+ * optional string name = 4;
1228
+ * @return {string}
1229
+ */
1230
+ proto.wechaty.puppet.ContactPayloadResponse.prototype.getName = function() {
1231
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1232
+ };
1233
+
1234
+
1235
+ /**
1236
+ * @param {string} value
1237
+ * @return {!proto.wechaty.puppet.ContactPayloadResponse} returns this
1238
+ */
1239
+ proto.wechaty.puppet.ContactPayloadResponse.prototype.setName = function(value) {
1240
+ return jspb.Message.setProto3StringField(this, 4, value);
1241
+ };
1242
+
1243
+
1244
+ /**
1245
+ * optional string avatar = 5;
1246
+ * @return {string}
1247
+ */
1248
+ proto.wechaty.puppet.ContactPayloadResponse.prototype.getAvatar = function() {
1249
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1250
+ };
1251
+
1252
+
1253
+ /**
1254
+ * @param {string} value
1255
+ * @return {!proto.wechaty.puppet.ContactPayloadResponse} returns this
1256
+ */
1257
+ proto.wechaty.puppet.ContactPayloadResponse.prototype.setAvatar = function(value) {
1258
+ return jspb.Message.setProto3StringField(this, 5, value);
1259
+ };
1260
+
1261
+
1262
+ /**
1263
+ * optional string address = 6;
1264
+ * @return {string}
1265
+ */
1266
+ proto.wechaty.puppet.ContactPayloadResponse.prototype.getAddress = function() {
1267
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
1268
+ };
1269
+
1270
+
1271
+ /**
1272
+ * @param {string} value
1273
+ * @return {!proto.wechaty.puppet.ContactPayloadResponse} returns this
1274
+ */
1275
+ proto.wechaty.puppet.ContactPayloadResponse.prototype.setAddress = function(value) {
1276
+ return jspb.Message.setProto3StringField(this, 6, value);
1277
+ };
1278
+
1279
+
1280
+ /**
1281
+ * optional string alias = 7;
1282
+ * @return {string}
1283
+ */
1284
+ proto.wechaty.puppet.ContactPayloadResponse.prototype.getAlias = function() {
1285
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
1286
+ };
1287
+
1288
+
1289
+ /**
1290
+ * @param {string} value
1291
+ * @return {!proto.wechaty.puppet.ContactPayloadResponse} returns this
1292
+ */
1293
+ proto.wechaty.puppet.ContactPayloadResponse.prototype.setAlias = function(value) {
1294
+ return jspb.Message.setProto3StringField(this, 7, value);
1295
+ };
1296
+
1297
+
1298
+ /**
1299
+ * optional string city = 8;
1300
+ * @return {string}
1301
+ */
1302
+ proto.wechaty.puppet.ContactPayloadResponse.prototype.getCity = function() {
1303
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
1304
+ };
1305
+
1306
+
1307
+ /**
1308
+ * @param {string} value
1309
+ * @return {!proto.wechaty.puppet.ContactPayloadResponse} returns this
1310
+ */
1311
+ proto.wechaty.puppet.ContactPayloadResponse.prototype.setCity = function(value) {
1312
+ return jspb.Message.setProto3StringField(this, 8, value);
1313
+ };
1314
+
1315
+
1316
+ /**
1317
+ * optional bool friend = 9;
1318
+ * @return {boolean}
1319
+ */
1320
+ proto.wechaty.puppet.ContactPayloadResponse.prototype.getFriend = function() {
1321
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false));
1322
+ };
1323
+
1324
+
1325
+ /**
1326
+ * @param {boolean} value
1327
+ * @return {!proto.wechaty.puppet.ContactPayloadResponse} returns this
1328
+ */
1329
+ proto.wechaty.puppet.ContactPayloadResponse.prototype.setFriend = function(value) {
1330
+ return jspb.Message.setProto3BooleanField(this, 9, value);
1331
+ };
1332
+
1333
+
1334
+ /**
1335
+ * optional string province = 10;
1336
+ * @return {string}
1337
+ */
1338
+ proto.wechaty.puppet.ContactPayloadResponse.prototype.getProvince = function() {
1339
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
1340
+ };
1341
+
1342
+
1343
+ /**
1344
+ * @param {string} value
1345
+ * @return {!proto.wechaty.puppet.ContactPayloadResponse} returns this
1346
+ */
1347
+ proto.wechaty.puppet.ContactPayloadResponse.prototype.setProvince = function(value) {
1348
+ return jspb.Message.setProto3StringField(this, 10, value);
1349
+ };
1350
+
1351
+
1352
+ /**
1353
+ * optional string signature = 11;
1354
+ * @return {string}
1355
+ */
1356
+ proto.wechaty.puppet.ContactPayloadResponse.prototype.getSignature = function() {
1357
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
1358
+ };
1359
+
1360
+
1361
+ /**
1362
+ * @param {string} value
1363
+ * @return {!proto.wechaty.puppet.ContactPayloadResponse} returns this
1364
+ */
1365
+ proto.wechaty.puppet.ContactPayloadResponse.prototype.setSignature = function(value) {
1366
+ return jspb.Message.setProto3StringField(this, 11, value);
1367
+ };
1368
+
1369
+
1370
+ /**
1371
+ * optional bool star = 12;
1372
+ * @return {boolean}
1373
+ */
1374
+ proto.wechaty.puppet.ContactPayloadResponse.prototype.getStar = function() {
1375
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 12, false));
1376
+ };
1377
+
1378
+
1379
+ /**
1380
+ * @param {boolean} value
1381
+ * @return {!proto.wechaty.puppet.ContactPayloadResponse} returns this
1382
+ */
1383
+ proto.wechaty.puppet.ContactPayloadResponse.prototype.setStar = function(value) {
1384
+ return jspb.Message.setProto3BooleanField(this, 12, value);
1385
+ };
1386
+
1387
+
1388
+ /**
1389
+ * optional string weixin = 13;
1390
+ * @return {string}
1391
+ */
1392
+ proto.wechaty.puppet.ContactPayloadResponse.prototype.getWeixin = function() {
1393
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
1394
+ };
1395
+
1396
+
1397
+ /**
1398
+ * @param {string} value
1399
+ * @return {!proto.wechaty.puppet.ContactPayloadResponse} returns this
1400
+ */
1401
+ proto.wechaty.puppet.ContactPayloadResponse.prototype.setWeixin = function(value) {
1402
+ return jspb.Message.setProto3StringField(this, 13, value);
1403
+ };
1404
+
1405
+
1406
+ /**
1407
+ * optional string corporation = 14;
1408
+ * @return {string}
1409
+ */
1410
+ proto.wechaty.puppet.ContactPayloadResponse.prototype.getCorporation = function() {
1411
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
1412
+ };
1413
+
1414
+
1415
+ /**
1416
+ * @param {string} value
1417
+ * @return {!proto.wechaty.puppet.ContactPayloadResponse} returns this
1418
+ */
1419
+ proto.wechaty.puppet.ContactPayloadResponse.prototype.setCorporation = function(value) {
1420
+ return jspb.Message.setProto3StringField(this, 14, value);
1421
+ };
1422
+
1423
+
1424
+ /**
1425
+ * optional string title = 15;
1426
+ * @return {string}
1427
+ */
1428
+ proto.wechaty.puppet.ContactPayloadResponse.prototype.getTitle = function() {
1429
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
1430
+ };
1431
+
1432
+
1433
+ /**
1434
+ * @param {string} value
1435
+ * @return {!proto.wechaty.puppet.ContactPayloadResponse} returns this
1436
+ */
1437
+ proto.wechaty.puppet.ContactPayloadResponse.prototype.setTitle = function(value) {
1438
+ return jspb.Message.setProto3StringField(this, 15, value);
1439
+ };
1440
+
1441
+
1442
+ /**
1443
+ * optional string description = 16;
1444
+ * @return {string}
1445
+ */
1446
+ proto.wechaty.puppet.ContactPayloadResponse.prototype.getDescription = function() {
1447
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
1448
+ };
1449
+
1450
+
1451
+ /**
1452
+ * @param {string} value
1453
+ * @return {!proto.wechaty.puppet.ContactPayloadResponse} returns this
1454
+ */
1455
+ proto.wechaty.puppet.ContactPayloadResponse.prototype.setDescription = function(value) {
1456
+ return jspb.Message.setProto3StringField(this, 16, value);
1457
+ };
1458
+
1459
+
1460
+ /**
1461
+ * optional bool coworker = 17;
1462
+ * @return {boolean}
1463
+ */
1464
+ proto.wechaty.puppet.ContactPayloadResponse.prototype.getCoworker = function() {
1465
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 17, false));
1466
+ };
1467
+
1468
+
1469
+ /**
1470
+ * @param {boolean} value
1471
+ * @return {!proto.wechaty.puppet.ContactPayloadResponse} returns this
1472
+ */
1473
+ proto.wechaty.puppet.ContactPayloadResponse.prototype.setCoworker = function(value) {
1474
+ return jspb.Message.setProto3BooleanField(this, 17, value);
1475
+ };
1476
+
1477
+
1478
+ /**
1479
+ * repeated string phones = 18;
1480
+ * @return {!Array<string>}
1481
+ */
1482
+ proto.wechaty.puppet.ContactPayloadResponse.prototype.getPhonesList = function() {
1483
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 18));
1484
+ };
1485
+
1486
+
1487
+ /**
1488
+ * @param {!Array<string>} value
1489
+ * @return {!proto.wechaty.puppet.ContactPayloadResponse} returns this
1490
+ */
1491
+ proto.wechaty.puppet.ContactPayloadResponse.prototype.setPhonesList = function(value) {
1492
+ return jspb.Message.setField(this, 18, value || []);
1493
+ };
1494
+
1495
+
1496
+ /**
1497
+ * @param {string} value
1498
+ * @param {number=} opt_index
1499
+ * @return {!proto.wechaty.puppet.ContactPayloadResponse} returns this
1500
+ */
1501
+ proto.wechaty.puppet.ContactPayloadResponse.prototype.addPhones = function(value, opt_index) {
1502
+ return jspb.Message.addToRepeatedField(this, 18, value, opt_index);
1503
+ };
1504
+
1505
+
1506
+ /**
1507
+ * Clears the list making it empty but non-null.
1508
+ * @return {!proto.wechaty.puppet.ContactPayloadResponse} returns this
1509
+ */
1510
+ proto.wechaty.puppet.ContactPayloadResponse.prototype.clearPhonesList = function() {
1511
+ return this.setPhonesList([]);
1512
+ };
1513
+
1514
+
1515
+
1516
+
1517
+
1518
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1519
+ /**
1520
+ * Creates an object representation of this proto.
1521
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1522
+ * Optional fields that are not set will be set to undefined.
1523
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1524
+ * For the list of reserved names please see:
1525
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1526
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1527
+ * JSPB instance for transitional soy proto support:
1528
+ * http://goto/soy-param-migration
1529
+ * @return {!Object}
1530
+ */
1531
+ proto.wechaty.puppet.ContactSelfQRCodeRequest.prototype.toObject = function(opt_includeInstance) {
1532
+ return proto.wechaty.puppet.ContactSelfQRCodeRequest.toObject(opt_includeInstance, this);
1533
+ };
1534
+
1535
+
1536
+ /**
1537
+ * Static version of the {@see toObject} method.
1538
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1539
+ * the JSPB instance for transitional soy proto support:
1540
+ * http://goto/soy-param-migration
1541
+ * @param {!proto.wechaty.puppet.ContactSelfQRCodeRequest} msg The msg instance to transform.
1542
+ * @return {!Object}
1543
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1544
+ */
1545
+ proto.wechaty.puppet.ContactSelfQRCodeRequest.toObject = function(includeInstance, msg) {
1546
+ var f, obj = {
1547
+
1548
+ };
1549
+
1550
+ if (includeInstance) {
1551
+ obj.$jspbMessageInstance = msg;
1552
+ }
1553
+ return obj;
1554
+ };
1555
+ }
1556
+
1557
+
1558
+ /**
1559
+ * Deserializes binary data (in protobuf wire format).
1560
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1561
+ * @return {!proto.wechaty.puppet.ContactSelfQRCodeRequest}
1562
+ */
1563
+ proto.wechaty.puppet.ContactSelfQRCodeRequest.deserializeBinary = function(bytes) {
1564
+ var reader = new jspb.BinaryReader(bytes);
1565
+ var msg = new proto.wechaty.puppet.ContactSelfQRCodeRequest;
1566
+ return proto.wechaty.puppet.ContactSelfQRCodeRequest.deserializeBinaryFromReader(msg, reader);
1567
+ };
1568
+
1569
+
1570
+ /**
1571
+ * Deserializes binary data (in protobuf wire format) from the
1572
+ * given reader into the given message object.
1573
+ * @param {!proto.wechaty.puppet.ContactSelfQRCodeRequest} msg The message object to deserialize into.
1574
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1575
+ * @return {!proto.wechaty.puppet.ContactSelfQRCodeRequest}
1576
+ */
1577
+ proto.wechaty.puppet.ContactSelfQRCodeRequest.deserializeBinaryFromReader = function(msg, reader) {
1578
+ while (reader.nextField()) {
1579
+ if (reader.isEndGroup()) {
1580
+ break;
1581
+ }
1582
+ var field = reader.getFieldNumber();
1583
+ switch (field) {
1584
+ default:
1585
+ reader.skipField();
1586
+ break;
1587
+ }
1588
+ }
1589
+ return msg;
1590
+ };
1591
+
1592
+
1593
+ /**
1594
+ * Serializes the message to binary data (in protobuf wire format).
1595
+ * @return {!Uint8Array}
1596
+ */
1597
+ proto.wechaty.puppet.ContactSelfQRCodeRequest.prototype.serializeBinary = function() {
1598
+ var writer = new jspb.BinaryWriter();
1599
+ proto.wechaty.puppet.ContactSelfQRCodeRequest.serializeBinaryToWriter(this, writer);
1600
+ return writer.getResultBuffer();
1601
+ };
1602
+
1603
+
1604
+ /**
1605
+ * Serializes the given message to binary data (in protobuf wire
1606
+ * format), writing to the given BinaryWriter.
1607
+ * @param {!proto.wechaty.puppet.ContactSelfQRCodeRequest} message
1608
+ * @param {!jspb.BinaryWriter} writer
1609
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1610
+ */
1611
+ proto.wechaty.puppet.ContactSelfQRCodeRequest.serializeBinaryToWriter = function(message, writer) {
1612
+ var f = undefined;
1613
+ };
1614
+
1615
+
1616
+
1617
+
1618
+
1619
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1620
+ /**
1621
+ * Creates an object representation of this proto.
1622
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1623
+ * Optional fields that are not set will be set to undefined.
1624
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1625
+ * For the list of reserved names please see:
1626
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1627
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1628
+ * JSPB instance for transitional soy proto support:
1629
+ * http://goto/soy-param-migration
1630
+ * @return {!Object}
1631
+ */
1632
+ proto.wechaty.puppet.ContactSelfQRCodeResponse.prototype.toObject = function(opt_includeInstance) {
1633
+ return proto.wechaty.puppet.ContactSelfQRCodeResponse.toObject(opt_includeInstance, this);
1634
+ };
1635
+
1636
+
1637
+ /**
1638
+ * Static version of the {@see toObject} method.
1639
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1640
+ * the JSPB instance for transitional soy proto support:
1641
+ * http://goto/soy-param-migration
1642
+ * @param {!proto.wechaty.puppet.ContactSelfQRCodeResponse} msg The msg instance to transform.
1643
+ * @return {!Object}
1644
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1645
+ */
1646
+ proto.wechaty.puppet.ContactSelfQRCodeResponse.toObject = function(includeInstance, msg) {
1647
+ var f, obj = {
1648
+ qrcode: jspb.Message.getFieldWithDefault(msg, 1, "")
1649
+ };
1650
+
1651
+ if (includeInstance) {
1652
+ obj.$jspbMessageInstance = msg;
1653
+ }
1654
+ return obj;
1655
+ };
1656
+ }
1657
+
1658
+
1659
+ /**
1660
+ * Deserializes binary data (in protobuf wire format).
1661
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1662
+ * @return {!proto.wechaty.puppet.ContactSelfQRCodeResponse}
1663
+ */
1664
+ proto.wechaty.puppet.ContactSelfQRCodeResponse.deserializeBinary = function(bytes) {
1665
+ var reader = new jspb.BinaryReader(bytes);
1666
+ var msg = new proto.wechaty.puppet.ContactSelfQRCodeResponse;
1667
+ return proto.wechaty.puppet.ContactSelfQRCodeResponse.deserializeBinaryFromReader(msg, reader);
1668
+ };
1669
+
1670
+
1671
+ /**
1672
+ * Deserializes binary data (in protobuf wire format) from the
1673
+ * given reader into the given message object.
1674
+ * @param {!proto.wechaty.puppet.ContactSelfQRCodeResponse} msg The message object to deserialize into.
1675
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1676
+ * @return {!proto.wechaty.puppet.ContactSelfQRCodeResponse}
1677
+ */
1678
+ proto.wechaty.puppet.ContactSelfQRCodeResponse.deserializeBinaryFromReader = function(msg, reader) {
1679
+ while (reader.nextField()) {
1680
+ if (reader.isEndGroup()) {
1681
+ break;
1682
+ }
1683
+ var field = reader.getFieldNumber();
1684
+ switch (field) {
1685
+ case 1:
1686
+ var value = /** @type {string} */ (reader.readString());
1687
+ msg.setQrcode(value);
1688
+ break;
1689
+ default:
1690
+ reader.skipField();
1691
+ break;
1692
+ }
1693
+ }
1694
+ return msg;
1695
+ };
1696
+
1697
+
1698
+ /**
1699
+ * Serializes the message to binary data (in protobuf wire format).
1700
+ * @return {!Uint8Array}
1701
+ */
1702
+ proto.wechaty.puppet.ContactSelfQRCodeResponse.prototype.serializeBinary = function() {
1703
+ var writer = new jspb.BinaryWriter();
1704
+ proto.wechaty.puppet.ContactSelfQRCodeResponse.serializeBinaryToWriter(this, writer);
1705
+ return writer.getResultBuffer();
1706
+ };
1707
+
1708
+
1709
+ /**
1710
+ * Serializes the given message to binary data (in protobuf wire
1711
+ * format), writing to the given BinaryWriter.
1712
+ * @param {!proto.wechaty.puppet.ContactSelfQRCodeResponse} message
1713
+ * @param {!jspb.BinaryWriter} writer
1714
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1715
+ */
1716
+ proto.wechaty.puppet.ContactSelfQRCodeResponse.serializeBinaryToWriter = function(message, writer) {
1717
+ var f = undefined;
1718
+ f = message.getQrcode();
1719
+ if (f.length > 0) {
1720
+ writer.writeString(
1721
+ 1,
1722
+ f
1723
+ );
1724
+ }
1725
+ };
1726
+
1727
+
1728
+ /**
1729
+ * optional string qrcode = 1;
1730
+ * @return {string}
1731
+ */
1732
+ proto.wechaty.puppet.ContactSelfQRCodeResponse.prototype.getQrcode = function() {
1733
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1734
+ };
1735
+
1736
+
1737
+ /**
1738
+ * @param {string} value
1739
+ * @return {!proto.wechaty.puppet.ContactSelfQRCodeResponse} returns this
1740
+ */
1741
+ proto.wechaty.puppet.ContactSelfQRCodeResponse.prototype.setQrcode = function(value) {
1742
+ return jspb.Message.setProto3StringField(this, 1, value);
1743
+ };
1744
+
1745
+
1746
+
1747
+
1748
+
1749
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1750
+ /**
1751
+ * Creates an object representation of this proto.
1752
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1753
+ * Optional fields that are not set will be set to undefined.
1754
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1755
+ * For the list of reserved names please see:
1756
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1757
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1758
+ * JSPB instance for transitional soy proto support:
1759
+ * http://goto/soy-param-migration
1760
+ * @return {!Object}
1761
+ */
1762
+ proto.wechaty.puppet.ContactSelfNameRequest.prototype.toObject = function(opt_includeInstance) {
1763
+ return proto.wechaty.puppet.ContactSelfNameRequest.toObject(opt_includeInstance, this);
1764
+ };
1765
+
1766
+
1767
+ /**
1768
+ * Static version of the {@see toObject} method.
1769
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1770
+ * the JSPB instance for transitional soy proto support:
1771
+ * http://goto/soy-param-migration
1772
+ * @param {!proto.wechaty.puppet.ContactSelfNameRequest} msg The msg instance to transform.
1773
+ * @return {!Object}
1774
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1775
+ */
1776
+ proto.wechaty.puppet.ContactSelfNameRequest.toObject = function(includeInstance, msg) {
1777
+ var f, obj = {
1778
+ name: jspb.Message.getFieldWithDefault(msg, 1, "")
1779
+ };
1780
+
1781
+ if (includeInstance) {
1782
+ obj.$jspbMessageInstance = msg;
1783
+ }
1784
+ return obj;
1785
+ };
1786
+ }
1787
+
1788
+
1789
+ /**
1790
+ * Deserializes binary data (in protobuf wire format).
1791
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1792
+ * @return {!proto.wechaty.puppet.ContactSelfNameRequest}
1793
+ */
1794
+ proto.wechaty.puppet.ContactSelfNameRequest.deserializeBinary = function(bytes) {
1795
+ var reader = new jspb.BinaryReader(bytes);
1796
+ var msg = new proto.wechaty.puppet.ContactSelfNameRequest;
1797
+ return proto.wechaty.puppet.ContactSelfNameRequest.deserializeBinaryFromReader(msg, reader);
1798
+ };
1799
+
1800
+
1801
+ /**
1802
+ * Deserializes binary data (in protobuf wire format) from the
1803
+ * given reader into the given message object.
1804
+ * @param {!proto.wechaty.puppet.ContactSelfNameRequest} msg The message object to deserialize into.
1805
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1806
+ * @return {!proto.wechaty.puppet.ContactSelfNameRequest}
1807
+ */
1808
+ proto.wechaty.puppet.ContactSelfNameRequest.deserializeBinaryFromReader = function(msg, reader) {
1809
+ while (reader.nextField()) {
1810
+ if (reader.isEndGroup()) {
1811
+ break;
1812
+ }
1813
+ var field = reader.getFieldNumber();
1814
+ switch (field) {
1815
+ case 1:
1816
+ var value = /** @type {string} */ (reader.readString());
1817
+ msg.setName(value);
1818
+ break;
1819
+ default:
1820
+ reader.skipField();
1821
+ break;
1822
+ }
1823
+ }
1824
+ return msg;
1825
+ };
1826
+
1827
+
1828
+ /**
1829
+ * Serializes the message to binary data (in protobuf wire format).
1830
+ * @return {!Uint8Array}
1831
+ */
1832
+ proto.wechaty.puppet.ContactSelfNameRequest.prototype.serializeBinary = function() {
1833
+ var writer = new jspb.BinaryWriter();
1834
+ proto.wechaty.puppet.ContactSelfNameRequest.serializeBinaryToWriter(this, writer);
1835
+ return writer.getResultBuffer();
1836
+ };
1837
+
1838
+
1839
+ /**
1840
+ * Serializes the given message to binary data (in protobuf wire
1841
+ * format), writing to the given BinaryWriter.
1842
+ * @param {!proto.wechaty.puppet.ContactSelfNameRequest} message
1843
+ * @param {!jspb.BinaryWriter} writer
1844
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1845
+ */
1846
+ proto.wechaty.puppet.ContactSelfNameRequest.serializeBinaryToWriter = function(message, writer) {
1847
+ var f = undefined;
1848
+ f = message.getName();
1849
+ if (f.length > 0) {
1850
+ writer.writeString(
1851
+ 1,
1852
+ f
1853
+ );
1854
+ }
1855
+ };
1856
+
1857
+
1858
+ /**
1859
+ * optional string name = 1;
1860
+ * @return {string}
1861
+ */
1862
+ proto.wechaty.puppet.ContactSelfNameRequest.prototype.getName = function() {
1863
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1864
+ };
1865
+
1866
+
1867
+ /**
1868
+ * @param {string} value
1869
+ * @return {!proto.wechaty.puppet.ContactSelfNameRequest} returns this
1870
+ */
1871
+ proto.wechaty.puppet.ContactSelfNameRequest.prototype.setName = function(value) {
1872
+ return jspb.Message.setProto3StringField(this, 1, value);
1873
+ };
1874
+
1875
+
1876
+
1877
+
1878
+
1879
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1880
+ /**
1881
+ * Creates an object representation of this proto.
1882
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1883
+ * Optional fields that are not set will be set to undefined.
1884
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1885
+ * For the list of reserved names please see:
1886
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1887
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1888
+ * JSPB instance for transitional soy proto support:
1889
+ * http://goto/soy-param-migration
1890
+ * @return {!Object}
1891
+ */
1892
+ proto.wechaty.puppet.ContactSelfNameResponse.prototype.toObject = function(opt_includeInstance) {
1893
+ return proto.wechaty.puppet.ContactSelfNameResponse.toObject(opt_includeInstance, this);
1894
+ };
1895
+
1896
+
1897
+ /**
1898
+ * Static version of the {@see toObject} method.
1899
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1900
+ * the JSPB instance for transitional soy proto support:
1901
+ * http://goto/soy-param-migration
1902
+ * @param {!proto.wechaty.puppet.ContactSelfNameResponse} msg The msg instance to transform.
1903
+ * @return {!Object}
1904
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1905
+ */
1906
+ proto.wechaty.puppet.ContactSelfNameResponse.toObject = function(includeInstance, msg) {
1907
+ var f, obj = {
1908
+
1909
+ };
1910
+
1911
+ if (includeInstance) {
1912
+ obj.$jspbMessageInstance = msg;
1913
+ }
1914
+ return obj;
1915
+ };
1916
+ }
1917
+
1918
+
1919
+ /**
1920
+ * Deserializes binary data (in protobuf wire format).
1921
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1922
+ * @return {!proto.wechaty.puppet.ContactSelfNameResponse}
1923
+ */
1924
+ proto.wechaty.puppet.ContactSelfNameResponse.deserializeBinary = function(bytes) {
1925
+ var reader = new jspb.BinaryReader(bytes);
1926
+ var msg = new proto.wechaty.puppet.ContactSelfNameResponse;
1927
+ return proto.wechaty.puppet.ContactSelfNameResponse.deserializeBinaryFromReader(msg, reader);
1928
+ };
1929
+
1930
+
1931
+ /**
1932
+ * Deserializes binary data (in protobuf wire format) from the
1933
+ * given reader into the given message object.
1934
+ * @param {!proto.wechaty.puppet.ContactSelfNameResponse} msg The message object to deserialize into.
1935
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1936
+ * @return {!proto.wechaty.puppet.ContactSelfNameResponse}
1937
+ */
1938
+ proto.wechaty.puppet.ContactSelfNameResponse.deserializeBinaryFromReader = function(msg, reader) {
1939
+ while (reader.nextField()) {
1940
+ if (reader.isEndGroup()) {
1941
+ break;
1942
+ }
1943
+ var field = reader.getFieldNumber();
1944
+ switch (field) {
1945
+ default:
1946
+ reader.skipField();
1947
+ break;
1948
+ }
1949
+ }
1950
+ return msg;
1951
+ };
1952
+
1953
+
1954
+ /**
1955
+ * Serializes the message to binary data (in protobuf wire format).
1956
+ * @return {!Uint8Array}
1957
+ */
1958
+ proto.wechaty.puppet.ContactSelfNameResponse.prototype.serializeBinary = function() {
1959
+ var writer = new jspb.BinaryWriter();
1960
+ proto.wechaty.puppet.ContactSelfNameResponse.serializeBinaryToWriter(this, writer);
1961
+ return writer.getResultBuffer();
1962
+ };
1963
+
1964
+
1965
+ /**
1966
+ * Serializes the given message to binary data (in protobuf wire
1967
+ * format), writing to the given BinaryWriter.
1968
+ * @param {!proto.wechaty.puppet.ContactSelfNameResponse} message
1969
+ * @param {!jspb.BinaryWriter} writer
1970
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1971
+ */
1972
+ proto.wechaty.puppet.ContactSelfNameResponse.serializeBinaryToWriter = function(message, writer) {
1973
+ var f = undefined;
1974
+ };
1975
+
1976
+
1977
+
1978
+
1979
+
1980
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1981
+ /**
1982
+ * Creates an object representation of this proto.
1983
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1984
+ * Optional fields that are not set will be set to undefined.
1985
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1986
+ * For the list of reserved names please see:
1987
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1988
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1989
+ * JSPB instance for transitional soy proto support:
1990
+ * http://goto/soy-param-migration
1991
+ * @return {!Object}
1992
+ */
1993
+ proto.wechaty.puppet.ContactSelfSignatureRequest.prototype.toObject = function(opt_includeInstance) {
1994
+ return proto.wechaty.puppet.ContactSelfSignatureRequest.toObject(opt_includeInstance, this);
1995
+ };
1996
+
1997
+
1998
+ /**
1999
+ * Static version of the {@see toObject} method.
2000
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2001
+ * the JSPB instance for transitional soy proto support:
2002
+ * http://goto/soy-param-migration
2003
+ * @param {!proto.wechaty.puppet.ContactSelfSignatureRequest} msg The msg instance to transform.
2004
+ * @return {!Object}
2005
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2006
+ */
2007
+ proto.wechaty.puppet.ContactSelfSignatureRequest.toObject = function(includeInstance, msg) {
2008
+ var f, obj = {
2009
+ signature: jspb.Message.getFieldWithDefault(msg, 1, "")
2010
+ };
2011
+
2012
+ if (includeInstance) {
2013
+ obj.$jspbMessageInstance = msg;
2014
+ }
2015
+ return obj;
2016
+ };
2017
+ }
2018
+
2019
+
2020
+ /**
2021
+ * Deserializes binary data (in protobuf wire format).
2022
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2023
+ * @return {!proto.wechaty.puppet.ContactSelfSignatureRequest}
2024
+ */
2025
+ proto.wechaty.puppet.ContactSelfSignatureRequest.deserializeBinary = function(bytes) {
2026
+ var reader = new jspb.BinaryReader(bytes);
2027
+ var msg = new proto.wechaty.puppet.ContactSelfSignatureRequest;
2028
+ return proto.wechaty.puppet.ContactSelfSignatureRequest.deserializeBinaryFromReader(msg, reader);
2029
+ };
2030
+
2031
+
2032
+ /**
2033
+ * Deserializes binary data (in protobuf wire format) from the
2034
+ * given reader into the given message object.
2035
+ * @param {!proto.wechaty.puppet.ContactSelfSignatureRequest} msg The message object to deserialize into.
2036
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2037
+ * @return {!proto.wechaty.puppet.ContactSelfSignatureRequest}
2038
+ */
2039
+ proto.wechaty.puppet.ContactSelfSignatureRequest.deserializeBinaryFromReader = function(msg, reader) {
2040
+ while (reader.nextField()) {
2041
+ if (reader.isEndGroup()) {
2042
+ break;
2043
+ }
2044
+ var field = reader.getFieldNumber();
2045
+ switch (field) {
2046
+ case 1:
2047
+ var value = /** @type {string} */ (reader.readString());
2048
+ msg.setSignature(value);
2049
+ break;
2050
+ default:
2051
+ reader.skipField();
2052
+ break;
2053
+ }
2054
+ }
2055
+ return msg;
2056
+ };
2057
+
2058
+
2059
+ /**
2060
+ * Serializes the message to binary data (in protobuf wire format).
2061
+ * @return {!Uint8Array}
2062
+ */
2063
+ proto.wechaty.puppet.ContactSelfSignatureRequest.prototype.serializeBinary = function() {
2064
+ var writer = new jspb.BinaryWriter();
2065
+ proto.wechaty.puppet.ContactSelfSignatureRequest.serializeBinaryToWriter(this, writer);
2066
+ return writer.getResultBuffer();
2067
+ };
2068
+
2069
+
2070
+ /**
2071
+ * Serializes the given message to binary data (in protobuf wire
2072
+ * format), writing to the given BinaryWriter.
2073
+ * @param {!proto.wechaty.puppet.ContactSelfSignatureRequest} message
2074
+ * @param {!jspb.BinaryWriter} writer
2075
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2076
+ */
2077
+ proto.wechaty.puppet.ContactSelfSignatureRequest.serializeBinaryToWriter = function(message, writer) {
2078
+ var f = undefined;
2079
+ f = message.getSignature();
2080
+ if (f.length > 0) {
2081
+ writer.writeString(
2082
+ 1,
2083
+ f
2084
+ );
2085
+ }
2086
+ };
2087
+
2088
+
2089
+ /**
2090
+ * optional string signature = 1;
2091
+ * @return {string}
2092
+ */
2093
+ proto.wechaty.puppet.ContactSelfSignatureRequest.prototype.getSignature = function() {
2094
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2095
+ };
2096
+
2097
+
2098
+ /**
2099
+ * @param {string} value
2100
+ * @return {!proto.wechaty.puppet.ContactSelfSignatureRequest} returns this
2101
+ */
2102
+ proto.wechaty.puppet.ContactSelfSignatureRequest.prototype.setSignature = function(value) {
2103
+ return jspb.Message.setProto3StringField(this, 1, value);
2104
+ };
2105
+
2106
+
2107
+
2108
+
2109
+
2110
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2111
+ /**
2112
+ * Creates an object representation of this proto.
2113
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2114
+ * Optional fields that are not set will be set to undefined.
2115
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2116
+ * For the list of reserved names please see:
2117
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2118
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2119
+ * JSPB instance for transitional soy proto support:
2120
+ * http://goto/soy-param-migration
2121
+ * @return {!Object}
2122
+ */
2123
+ proto.wechaty.puppet.ContactSelfSignatureResponse.prototype.toObject = function(opt_includeInstance) {
2124
+ return proto.wechaty.puppet.ContactSelfSignatureResponse.toObject(opt_includeInstance, this);
2125
+ };
2126
+
2127
+
2128
+ /**
2129
+ * Static version of the {@see toObject} method.
2130
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2131
+ * the JSPB instance for transitional soy proto support:
2132
+ * http://goto/soy-param-migration
2133
+ * @param {!proto.wechaty.puppet.ContactSelfSignatureResponse} msg The msg instance to transform.
2134
+ * @return {!Object}
2135
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2136
+ */
2137
+ proto.wechaty.puppet.ContactSelfSignatureResponse.toObject = function(includeInstance, msg) {
2138
+ var f, obj = {
2139
+
2140
+ };
2141
+
2142
+ if (includeInstance) {
2143
+ obj.$jspbMessageInstance = msg;
2144
+ }
2145
+ return obj;
2146
+ };
2147
+ }
2148
+
2149
+
2150
+ /**
2151
+ * Deserializes binary data (in protobuf wire format).
2152
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2153
+ * @return {!proto.wechaty.puppet.ContactSelfSignatureResponse}
2154
+ */
2155
+ proto.wechaty.puppet.ContactSelfSignatureResponse.deserializeBinary = function(bytes) {
2156
+ var reader = new jspb.BinaryReader(bytes);
2157
+ var msg = new proto.wechaty.puppet.ContactSelfSignatureResponse;
2158
+ return proto.wechaty.puppet.ContactSelfSignatureResponse.deserializeBinaryFromReader(msg, reader);
2159
+ };
2160
+
2161
+
2162
+ /**
2163
+ * Deserializes binary data (in protobuf wire format) from the
2164
+ * given reader into the given message object.
2165
+ * @param {!proto.wechaty.puppet.ContactSelfSignatureResponse} msg The message object to deserialize into.
2166
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2167
+ * @return {!proto.wechaty.puppet.ContactSelfSignatureResponse}
2168
+ */
2169
+ proto.wechaty.puppet.ContactSelfSignatureResponse.deserializeBinaryFromReader = function(msg, reader) {
2170
+ while (reader.nextField()) {
2171
+ if (reader.isEndGroup()) {
2172
+ break;
2173
+ }
2174
+ var field = reader.getFieldNumber();
2175
+ switch (field) {
2176
+ default:
2177
+ reader.skipField();
2178
+ break;
2179
+ }
2180
+ }
2181
+ return msg;
2182
+ };
2183
+
2184
+
2185
+ /**
2186
+ * Serializes the message to binary data (in protobuf wire format).
2187
+ * @return {!Uint8Array}
2188
+ */
2189
+ proto.wechaty.puppet.ContactSelfSignatureResponse.prototype.serializeBinary = function() {
2190
+ var writer = new jspb.BinaryWriter();
2191
+ proto.wechaty.puppet.ContactSelfSignatureResponse.serializeBinaryToWriter(this, writer);
2192
+ return writer.getResultBuffer();
2193
+ };
2194
+
2195
+
2196
+ /**
2197
+ * Serializes the given message to binary data (in protobuf wire
2198
+ * format), writing to the given BinaryWriter.
2199
+ * @param {!proto.wechaty.puppet.ContactSelfSignatureResponse} message
2200
+ * @param {!jspb.BinaryWriter} writer
2201
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2202
+ */
2203
+ proto.wechaty.puppet.ContactSelfSignatureResponse.serializeBinaryToWriter = function(message, writer) {
2204
+ var f = undefined;
2205
+ };
2206
+
2207
+
2208
+
2209
+
2210
+
2211
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2212
+ /**
2213
+ * Creates an object representation of this proto.
2214
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2215
+ * Optional fields that are not set will be set to undefined.
2216
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2217
+ * For the list of reserved names please see:
2218
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2219
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2220
+ * JSPB instance for transitional soy proto support:
2221
+ * http://goto/soy-param-migration
2222
+ * @return {!Object}
2223
+ */
2224
+ proto.wechaty.puppet.ContactAliasRequest.prototype.toObject = function(opt_includeInstance) {
2225
+ return proto.wechaty.puppet.ContactAliasRequest.toObject(opt_includeInstance, this);
2226
+ };
2227
+
2228
+
2229
+ /**
2230
+ * Static version of the {@see toObject} method.
2231
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2232
+ * the JSPB instance for transitional soy proto support:
2233
+ * http://goto/soy-param-migration
2234
+ * @param {!proto.wechaty.puppet.ContactAliasRequest} msg The msg instance to transform.
2235
+ * @return {!Object}
2236
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2237
+ */
2238
+ proto.wechaty.puppet.ContactAliasRequest.toObject = function(includeInstance, msg) {
2239
+ var f, obj = {
2240
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
2241
+ aliasStringValueDeprecated: (f = msg.getAliasStringValueDeprecated()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
2242
+ alias: jspb.Message.getFieldWithDefault(msg, 3, "")
2243
+ };
2244
+
2245
+ if (includeInstance) {
2246
+ obj.$jspbMessageInstance = msg;
2247
+ }
2248
+ return obj;
2249
+ };
2250
+ }
2251
+
2252
+
2253
+ /**
2254
+ * Deserializes binary data (in protobuf wire format).
2255
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2256
+ * @return {!proto.wechaty.puppet.ContactAliasRequest}
2257
+ */
2258
+ proto.wechaty.puppet.ContactAliasRequest.deserializeBinary = function(bytes) {
2259
+ var reader = new jspb.BinaryReader(bytes);
2260
+ var msg = new proto.wechaty.puppet.ContactAliasRequest;
2261
+ return proto.wechaty.puppet.ContactAliasRequest.deserializeBinaryFromReader(msg, reader);
2262
+ };
2263
+
2264
+
2265
+ /**
2266
+ * Deserializes binary data (in protobuf wire format) from the
2267
+ * given reader into the given message object.
2268
+ * @param {!proto.wechaty.puppet.ContactAliasRequest} msg The message object to deserialize into.
2269
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2270
+ * @return {!proto.wechaty.puppet.ContactAliasRequest}
2271
+ */
2272
+ proto.wechaty.puppet.ContactAliasRequest.deserializeBinaryFromReader = function(msg, reader) {
2273
+ while (reader.nextField()) {
2274
+ if (reader.isEndGroup()) {
2275
+ break;
2276
+ }
2277
+ var field = reader.getFieldNumber();
2278
+ switch (field) {
2279
+ case 1:
2280
+ var value = /** @type {string} */ (reader.readString());
2281
+ msg.setId(value);
2282
+ break;
2283
+ case 2:
2284
+ var value = new google_protobuf_wrappers_pb.StringValue;
2285
+ reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
2286
+ msg.setAliasStringValueDeprecated(value);
2287
+ break;
2288
+ case 3:
2289
+ var value = /** @type {string} */ (reader.readString());
2290
+ msg.setAlias(value);
2291
+ break;
2292
+ default:
2293
+ reader.skipField();
2294
+ break;
2295
+ }
2296
+ }
2297
+ return msg;
2298
+ };
2299
+
2300
+
2301
+ /**
2302
+ * Serializes the message to binary data (in protobuf wire format).
2303
+ * @return {!Uint8Array}
2304
+ */
2305
+ proto.wechaty.puppet.ContactAliasRequest.prototype.serializeBinary = function() {
2306
+ var writer = new jspb.BinaryWriter();
2307
+ proto.wechaty.puppet.ContactAliasRequest.serializeBinaryToWriter(this, writer);
2308
+ return writer.getResultBuffer();
2309
+ };
2310
+
2311
+
2312
+ /**
2313
+ * Serializes the given message to binary data (in protobuf wire
2314
+ * format), writing to the given BinaryWriter.
2315
+ * @param {!proto.wechaty.puppet.ContactAliasRequest} message
2316
+ * @param {!jspb.BinaryWriter} writer
2317
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2318
+ */
2319
+ proto.wechaty.puppet.ContactAliasRequest.serializeBinaryToWriter = function(message, writer) {
2320
+ var f = undefined;
2321
+ f = message.getId();
2322
+ if (f.length > 0) {
2323
+ writer.writeString(
2324
+ 1,
2325
+ f
2326
+ );
2327
+ }
2328
+ f = message.getAliasStringValueDeprecated();
2329
+ if (f != null) {
2330
+ writer.writeMessage(
2331
+ 2,
2332
+ f,
2333
+ google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
2334
+ );
2335
+ }
2336
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
2337
+ if (f != null) {
2338
+ writer.writeString(
2339
+ 3,
2340
+ f
2341
+ );
2342
+ }
2343
+ };
2344
+
2345
+
2346
+ /**
2347
+ * optional string id = 1;
2348
+ * @return {string}
2349
+ */
2350
+ proto.wechaty.puppet.ContactAliasRequest.prototype.getId = function() {
2351
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2352
+ };
2353
+
2354
+
2355
+ /**
2356
+ * @param {string} value
2357
+ * @return {!proto.wechaty.puppet.ContactAliasRequest} returns this
2358
+ */
2359
+ proto.wechaty.puppet.ContactAliasRequest.prototype.setId = function(value) {
2360
+ return jspb.Message.setProto3StringField(this, 1, value);
2361
+ };
2362
+
2363
+
2364
+ /**
2365
+ * optional google.protobuf.StringValue alias_string_value_deprecated = 2;
2366
+ * @return {?proto.google.protobuf.StringValue}
2367
+ */
2368
+ proto.wechaty.puppet.ContactAliasRequest.prototype.getAliasStringValueDeprecated = function() {
2369
+ return /** @type{?proto.google.protobuf.StringValue} */ (
2370
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 2));
2371
+ };
2372
+
2373
+
2374
+ /**
2375
+ * @param {?proto.google.protobuf.StringValue|undefined} value
2376
+ * @return {!proto.wechaty.puppet.ContactAliasRequest} returns this
2377
+ */
2378
+ proto.wechaty.puppet.ContactAliasRequest.prototype.setAliasStringValueDeprecated = function(value) {
2379
+ return jspb.Message.setWrapperField(this, 2, value);
2380
+ };
2381
+
2382
+
2383
+ /**
2384
+ * Clears the message field making it undefined.
2385
+ * @return {!proto.wechaty.puppet.ContactAliasRequest} returns this
2386
+ */
2387
+ proto.wechaty.puppet.ContactAliasRequest.prototype.clearAliasStringValueDeprecated = function() {
2388
+ return this.setAliasStringValueDeprecated(undefined);
2389
+ };
2390
+
2391
+
2392
+ /**
2393
+ * Returns whether this field is set.
2394
+ * @return {boolean}
2395
+ */
2396
+ proto.wechaty.puppet.ContactAliasRequest.prototype.hasAliasStringValueDeprecated = function() {
2397
+ return jspb.Message.getField(this, 2) != null;
2398
+ };
2399
+
2400
+
2401
+ /**
2402
+ * optional string alias = 3;
2403
+ * @return {string}
2404
+ */
2405
+ proto.wechaty.puppet.ContactAliasRequest.prototype.getAlias = function() {
2406
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2407
+ };
2408
+
2409
+
2410
+ /**
2411
+ * @param {string} value
2412
+ * @return {!proto.wechaty.puppet.ContactAliasRequest} returns this
2413
+ */
2414
+ proto.wechaty.puppet.ContactAliasRequest.prototype.setAlias = function(value) {
2415
+ return jspb.Message.setField(this, 3, value);
2416
+ };
2417
+
2418
+
2419
+ /**
2420
+ * Clears the field making it undefined.
2421
+ * @return {!proto.wechaty.puppet.ContactAliasRequest} returns this
2422
+ */
2423
+ proto.wechaty.puppet.ContactAliasRequest.prototype.clearAlias = function() {
2424
+ return jspb.Message.setField(this, 3, undefined);
2425
+ };
2426
+
2427
+
2428
+ /**
2429
+ * Returns whether this field is set.
2430
+ * @return {boolean}
2431
+ */
2432
+ proto.wechaty.puppet.ContactAliasRequest.prototype.hasAlias = function() {
2433
+ return jspb.Message.getField(this, 3) != null;
2434
+ };
2435
+
2436
+
2437
+
2438
+
2439
+
2440
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2441
+ /**
2442
+ * Creates an object representation of this proto.
2443
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2444
+ * Optional fields that are not set will be set to undefined.
2445
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2446
+ * For the list of reserved names please see:
2447
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2448
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2449
+ * JSPB instance for transitional soy proto support:
2450
+ * http://goto/soy-param-migration
2451
+ * @return {!Object}
2452
+ */
2453
+ proto.wechaty.puppet.ContactAliasResponse.prototype.toObject = function(opt_includeInstance) {
2454
+ return proto.wechaty.puppet.ContactAliasResponse.toObject(opt_includeInstance, this);
2455
+ };
2456
+
2457
+
2458
+ /**
2459
+ * Static version of the {@see toObject} method.
2460
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2461
+ * the JSPB instance for transitional soy proto support:
2462
+ * http://goto/soy-param-migration
2463
+ * @param {!proto.wechaty.puppet.ContactAliasResponse} msg The msg instance to transform.
2464
+ * @return {!Object}
2465
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2466
+ */
2467
+ proto.wechaty.puppet.ContactAliasResponse.toObject = function(includeInstance, msg) {
2468
+ var f, obj = {
2469
+ aliasStringValueDeprecated: (f = msg.getAliasStringValueDeprecated()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
2470
+ alias: jspb.Message.getFieldWithDefault(msg, 2, "")
2471
+ };
2472
+
2473
+ if (includeInstance) {
2474
+ obj.$jspbMessageInstance = msg;
2475
+ }
2476
+ return obj;
2477
+ };
2478
+ }
2479
+
2480
+
2481
+ /**
2482
+ * Deserializes binary data (in protobuf wire format).
2483
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2484
+ * @return {!proto.wechaty.puppet.ContactAliasResponse}
2485
+ */
2486
+ proto.wechaty.puppet.ContactAliasResponse.deserializeBinary = function(bytes) {
2487
+ var reader = new jspb.BinaryReader(bytes);
2488
+ var msg = new proto.wechaty.puppet.ContactAliasResponse;
2489
+ return proto.wechaty.puppet.ContactAliasResponse.deserializeBinaryFromReader(msg, reader);
2490
+ };
2491
+
2492
+
2493
+ /**
2494
+ * Deserializes binary data (in protobuf wire format) from the
2495
+ * given reader into the given message object.
2496
+ * @param {!proto.wechaty.puppet.ContactAliasResponse} msg The message object to deserialize into.
2497
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2498
+ * @return {!proto.wechaty.puppet.ContactAliasResponse}
2499
+ */
2500
+ proto.wechaty.puppet.ContactAliasResponse.deserializeBinaryFromReader = function(msg, reader) {
2501
+ while (reader.nextField()) {
2502
+ if (reader.isEndGroup()) {
2503
+ break;
2504
+ }
2505
+ var field = reader.getFieldNumber();
2506
+ switch (field) {
2507
+ case 1:
2508
+ var value = new google_protobuf_wrappers_pb.StringValue;
2509
+ reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
2510
+ msg.setAliasStringValueDeprecated(value);
2511
+ break;
2512
+ case 2:
2513
+ var value = /** @type {string} */ (reader.readString());
2514
+ msg.setAlias(value);
2515
+ break;
2516
+ default:
2517
+ reader.skipField();
2518
+ break;
2519
+ }
2520
+ }
2521
+ return msg;
2522
+ };
2523
+
2524
+
2525
+ /**
2526
+ * Serializes the message to binary data (in protobuf wire format).
2527
+ * @return {!Uint8Array}
2528
+ */
2529
+ proto.wechaty.puppet.ContactAliasResponse.prototype.serializeBinary = function() {
2530
+ var writer = new jspb.BinaryWriter();
2531
+ proto.wechaty.puppet.ContactAliasResponse.serializeBinaryToWriter(this, writer);
2532
+ return writer.getResultBuffer();
2533
+ };
2534
+
2535
+
2536
+ /**
2537
+ * Serializes the given message to binary data (in protobuf wire
2538
+ * format), writing to the given BinaryWriter.
2539
+ * @param {!proto.wechaty.puppet.ContactAliasResponse} message
2540
+ * @param {!jspb.BinaryWriter} writer
2541
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2542
+ */
2543
+ proto.wechaty.puppet.ContactAliasResponse.serializeBinaryToWriter = function(message, writer) {
2544
+ var f = undefined;
2545
+ f = message.getAliasStringValueDeprecated();
2546
+ if (f != null) {
2547
+ writer.writeMessage(
2548
+ 1,
2549
+ f,
2550
+ google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
2551
+ );
2552
+ }
2553
+ f = message.getAlias();
2554
+ if (f.length > 0) {
2555
+ writer.writeString(
2556
+ 2,
2557
+ f
2558
+ );
2559
+ }
2560
+ };
2561
+
2562
+
2563
+ /**
2564
+ * optional google.protobuf.StringValue alias_string_value_deprecated = 1;
2565
+ * @return {?proto.google.protobuf.StringValue}
2566
+ */
2567
+ proto.wechaty.puppet.ContactAliasResponse.prototype.getAliasStringValueDeprecated = function() {
2568
+ return /** @type{?proto.google.protobuf.StringValue} */ (
2569
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 1));
2570
+ };
2571
+
2572
+
2573
+ /**
2574
+ * @param {?proto.google.protobuf.StringValue|undefined} value
2575
+ * @return {!proto.wechaty.puppet.ContactAliasResponse} returns this
2576
+ */
2577
+ proto.wechaty.puppet.ContactAliasResponse.prototype.setAliasStringValueDeprecated = function(value) {
2578
+ return jspb.Message.setWrapperField(this, 1, value);
2579
+ };
2580
+
2581
+
2582
+ /**
2583
+ * Clears the message field making it undefined.
2584
+ * @return {!proto.wechaty.puppet.ContactAliasResponse} returns this
2585
+ */
2586
+ proto.wechaty.puppet.ContactAliasResponse.prototype.clearAliasStringValueDeprecated = function() {
2587
+ return this.setAliasStringValueDeprecated(undefined);
2588
+ };
2589
+
2590
+
2591
+ /**
2592
+ * Returns whether this field is set.
2593
+ * @return {boolean}
2594
+ */
2595
+ proto.wechaty.puppet.ContactAliasResponse.prototype.hasAliasStringValueDeprecated = function() {
2596
+ return jspb.Message.getField(this, 1) != null;
2597
+ };
2598
+
2599
+
2600
+ /**
2601
+ * optional string alias = 2;
2602
+ * @return {string}
2603
+ */
2604
+ proto.wechaty.puppet.ContactAliasResponse.prototype.getAlias = function() {
2605
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2606
+ };
2607
+
2608
+
2609
+ /**
2610
+ * @param {string} value
2611
+ * @return {!proto.wechaty.puppet.ContactAliasResponse} returns this
2612
+ */
2613
+ proto.wechaty.puppet.ContactAliasResponse.prototype.setAlias = function(value) {
2614
+ return jspb.Message.setProto3StringField(this, 2, value);
2615
+ };
2616
+
2617
+
2618
+
2619
+
2620
+
2621
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2622
+ /**
2623
+ * Creates an object representation of this proto.
2624
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2625
+ * Optional fields that are not set will be set to undefined.
2626
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2627
+ * For the list of reserved names please see:
2628
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2629
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2630
+ * JSPB instance for transitional soy proto support:
2631
+ * http://goto/soy-param-migration
2632
+ * @return {!Object}
2633
+ */
2634
+ proto.wechaty.puppet.ContactAvatarRequest.prototype.toObject = function(opt_includeInstance) {
2635
+ return proto.wechaty.puppet.ContactAvatarRequest.toObject(opt_includeInstance, this);
2636
+ };
2637
+
2638
+
2639
+ /**
2640
+ * Static version of the {@see toObject} method.
2641
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2642
+ * the JSPB instance for transitional soy proto support:
2643
+ * http://goto/soy-param-migration
2644
+ * @param {!proto.wechaty.puppet.ContactAvatarRequest} msg The msg instance to transform.
2645
+ * @return {!Object}
2646
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2647
+ */
2648
+ proto.wechaty.puppet.ContactAvatarRequest.toObject = function(includeInstance, msg) {
2649
+ var f, obj = {
2650
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
2651
+ fileboxStringValueDeprecated: (f = msg.getFileboxStringValueDeprecated()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
2652
+ fileBox: jspb.Message.getFieldWithDefault(msg, 3, "")
2653
+ };
2654
+
2655
+ if (includeInstance) {
2656
+ obj.$jspbMessageInstance = msg;
2657
+ }
2658
+ return obj;
2659
+ };
2660
+ }
2661
+
2662
+
2663
+ /**
2664
+ * Deserializes binary data (in protobuf wire format).
2665
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2666
+ * @return {!proto.wechaty.puppet.ContactAvatarRequest}
2667
+ */
2668
+ proto.wechaty.puppet.ContactAvatarRequest.deserializeBinary = function(bytes) {
2669
+ var reader = new jspb.BinaryReader(bytes);
2670
+ var msg = new proto.wechaty.puppet.ContactAvatarRequest;
2671
+ return proto.wechaty.puppet.ContactAvatarRequest.deserializeBinaryFromReader(msg, reader);
2672
+ };
2673
+
2674
+
2675
+ /**
2676
+ * Deserializes binary data (in protobuf wire format) from the
2677
+ * given reader into the given message object.
2678
+ * @param {!proto.wechaty.puppet.ContactAvatarRequest} msg The message object to deserialize into.
2679
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2680
+ * @return {!proto.wechaty.puppet.ContactAvatarRequest}
2681
+ */
2682
+ proto.wechaty.puppet.ContactAvatarRequest.deserializeBinaryFromReader = function(msg, reader) {
2683
+ while (reader.nextField()) {
2684
+ if (reader.isEndGroup()) {
2685
+ break;
2686
+ }
2687
+ var field = reader.getFieldNumber();
2688
+ switch (field) {
2689
+ case 1:
2690
+ var value = /** @type {string} */ (reader.readString());
2691
+ msg.setId(value);
2692
+ break;
2693
+ case 2:
2694
+ var value = new google_protobuf_wrappers_pb.StringValue;
2695
+ reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
2696
+ msg.setFileboxStringValueDeprecated(value);
2697
+ break;
2698
+ case 3:
2699
+ var value = /** @type {string} */ (reader.readString());
2700
+ msg.setFileBox(value);
2701
+ break;
2702
+ default:
2703
+ reader.skipField();
2704
+ break;
2705
+ }
2706
+ }
2707
+ return msg;
2708
+ };
2709
+
2710
+
2711
+ /**
2712
+ * Serializes the message to binary data (in protobuf wire format).
2713
+ * @return {!Uint8Array}
2714
+ */
2715
+ proto.wechaty.puppet.ContactAvatarRequest.prototype.serializeBinary = function() {
2716
+ var writer = new jspb.BinaryWriter();
2717
+ proto.wechaty.puppet.ContactAvatarRequest.serializeBinaryToWriter(this, writer);
2718
+ return writer.getResultBuffer();
2719
+ };
2720
+
2721
+
2722
+ /**
2723
+ * Serializes the given message to binary data (in protobuf wire
2724
+ * format), writing to the given BinaryWriter.
2725
+ * @param {!proto.wechaty.puppet.ContactAvatarRequest} message
2726
+ * @param {!jspb.BinaryWriter} writer
2727
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2728
+ */
2729
+ proto.wechaty.puppet.ContactAvatarRequest.serializeBinaryToWriter = function(message, writer) {
2730
+ var f = undefined;
2731
+ f = message.getId();
2732
+ if (f.length > 0) {
2733
+ writer.writeString(
2734
+ 1,
2735
+ f
2736
+ );
2737
+ }
2738
+ f = message.getFileboxStringValueDeprecated();
2739
+ if (f != null) {
2740
+ writer.writeMessage(
2741
+ 2,
2742
+ f,
2743
+ google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
2744
+ );
2745
+ }
2746
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
2747
+ if (f != null) {
2748
+ writer.writeString(
2749
+ 3,
2750
+ f
2751
+ );
2752
+ }
2753
+ };
2754
+
2755
+
2756
+ /**
2757
+ * optional string id = 1;
2758
+ * @return {string}
2759
+ */
2760
+ proto.wechaty.puppet.ContactAvatarRequest.prototype.getId = function() {
2761
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2762
+ };
2763
+
2764
+
2765
+ /**
2766
+ * @param {string} value
2767
+ * @return {!proto.wechaty.puppet.ContactAvatarRequest} returns this
2768
+ */
2769
+ proto.wechaty.puppet.ContactAvatarRequest.prototype.setId = function(value) {
2770
+ return jspb.Message.setProto3StringField(this, 1, value);
2771
+ };
2772
+
2773
+
2774
+ /**
2775
+ * optional google.protobuf.StringValue filebox_string_value_deprecated = 2;
2776
+ * @return {?proto.google.protobuf.StringValue}
2777
+ */
2778
+ proto.wechaty.puppet.ContactAvatarRequest.prototype.getFileboxStringValueDeprecated = function() {
2779
+ return /** @type{?proto.google.protobuf.StringValue} */ (
2780
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 2));
2781
+ };
2782
+
2783
+
2784
+ /**
2785
+ * @param {?proto.google.protobuf.StringValue|undefined} value
2786
+ * @return {!proto.wechaty.puppet.ContactAvatarRequest} returns this
2787
+ */
2788
+ proto.wechaty.puppet.ContactAvatarRequest.prototype.setFileboxStringValueDeprecated = function(value) {
2789
+ return jspb.Message.setWrapperField(this, 2, value);
2790
+ };
2791
+
2792
+
2793
+ /**
2794
+ * Clears the message field making it undefined.
2795
+ * @return {!proto.wechaty.puppet.ContactAvatarRequest} returns this
2796
+ */
2797
+ proto.wechaty.puppet.ContactAvatarRequest.prototype.clearFileboxStringValueDeprecated = function() {
2798
+ return this.setFileboxStringValueDeprecated(undefined);
2799
+ };
2800
+
2801
+
2802
+ /**
2803
+ * Returns whether this field is set.
2804
+ * @return {boolean}
2805
+ */
2806
+ proto.wechaty.puppet.ContactAvatarRequest.prototype.hasFileboxStringValueDeprecated = function() {
2807
+ return jspb.Message.getField(this, 2) != null;
2808
+ };
2809
+
2810
+
2811
+ /**
2812
+ * optional string file_box = 3;
2813
+ * @return {string}
2814
+ */
2815
+ proto.wechaty.puppet.ContactAvatarRequest.prototype.getFileBox = function() {
2816
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2817
+ };
2818
+
2819
+
2820
+ /**
2821
+ * @param {string} value
2822
+ * @return {!proto.wechaty.puppet.ContactAvatarRequest} returns this
2823
+ */
2824
+ proto.wechaty.puppet.ContactAvatarRequest.prototype.setFileBox = function(value) {
2825
+ return jspb.Message.setField(this, 3, value);
2826
+ };
2827
+
2828
+
2829
+ /**
2830
+ * Clears the field making it undefined.
2831
+ * @return {!proto.wechaty.puppet.ContactAvatarRequest} returns this
2832
+ */
2833
+ proto.wechaty.puppet.ContactAvatarRequest.prototype.clearFileBox = function() {
2834
+ return jspb.Message.setField(this, 3, undefined);
2835
+ };
2836
+
2837
+
2838
+ /**
2839
+ * Returns whether this field is set.
2840
+ * @return {boolean}
2841
+ */
2842
+ proto.wechaty.puppet.ContactAvatarRequest.prototype.hasFileBox = function() {
2843
+ return jspb.Message.getField(this, 3) != null;
2844
+ };
2845
+
2846
+
2847
+
2848
+
2849
+
2850
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2851
+ /**
2852
+ * Creates an object representation of this proto.
2853
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2854
+ * Optional fields that are not set will be set to undefined.
2855
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2856
+ * For the list of reserved names please see:
2857
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2858
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2859
+ * JSPB instance for transitional soy proto support:
2860
+ * http://goto/soy-param-migration
2861
+ * @return {!Object}
2862
+ */
2863
+ proto.wechaty.puppet.ContactAvatarResponse.prototype.toObject = function(opt_includeInstance) {
2864
+ return proto.wechaty.puppet.ContactAvatarResponse.toObject(opt_includeInstance, this);
2865
+ };
2866
+
2867
+
2868
+ /**
2869
+ * Static version of the {@see toObject} method.
2870
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2871
+ * the JSPB instance for transitional soy proto support:
2872
+ * http://goto/soy-param-migration
2873
+ * @param {!proto.wechaty.puppet.ContactAvatarResponse} msg The msg instance to transform.
2874
+ * @return {!Object}
2875
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2876
+ */
2877
+ proto.wechaty.puppet.ContactAvatarResponse.toObject = function(includeInstance, msg) {
2878
+ var f, obj = {
2879
+ fileboxStringValueDeprecated: (f = msg.getFileboxStringValueDeprecated()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
2880
+ fileBox: jspb.Message.getFieldWithDefault(msg, 2, "")
2881
+ };
2882
+
2883
+ if (includeInstance) {
2884
+ obj.$jspbMessageInstance = msg;
2885
+ }
2886
+ return obj;
2887
+ };
2888
+ }
2889
+
2890
+
2891
+ /**
2892
+ * Deserializes binary data (in protobuf wire format).
2893
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2894
+ * @return {!proto.wechaty.puppet.ContactAvatarResponse}
2895
+ */
2896
+ proto.wechaty.puppet.ContactAvatarResponse.deserializeBinary = function(bytes) {
2897
+ var reader = new jspb.BinaryReader(bytes);
2898
+ var msg = new proto.wechaty.puppet.ContactAvatarResponse;
2899
+ return proto.wechaty.puppet.ContactAvatarResponse.deserializeBinaryFromReader(msg, reader);
2900
+ };
2901
+
2902
+
2903
+ /**
2904
+ * Deserializes binary data (in protobuf wire format) from the
2905
+ * given reader into the given message object.
2906
+ * @param {!proto.wechaty.puppet.ContactAvatarResponse} msg The message object to deserialize into.
2907
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2908
+ * @return {!proto.wechaty.puppet.ContactAvatarResponse}
2909
+ */
2910
+ proto.wechaty.puppet.ContactAvatarResponse.deserializeBinaryFromReader = function(msg, reader) {
2911
+ while (reader.nextField()) {
2912
+ if (reader.isEndGroup()) {
2913
+ break;
2914
+ }
2915
+ var field = reader.getFieldNumber();
2916
+ switch (field) {
2917
+ case 1:
2918
+ var value = new google_protobuf_wrappers_pb.StringValue;
2919
+ reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
2920
+ msg.setFileboxStringValueDeprecated(value);
2921
+ break;
2922
+ case 2:
2923
+ var value = /** @type {string} */ (reader.readString());
2924
+ msg.setFileBox(value);
2925
+ break;
2926
+ default:
2927
+ reader.skipField();
2928
+ break;
2929
+ }
2930
+ }
2931
+ return msg;
2932
+ };
2933
+
2934
+
2935
+ /**
2936
+ * Serializes the message to binary data (in protobuf wire format).
2937
+ * @return {!Uint8Array}
2938
+ */
2939
+ proto.wechaty.puppet.ContactAvatarResponse.prototype.serializeBinary = function() {
2940
+ var writer = new jspb.BinaryWriter();
2941
+ proto.wechaty.puppet.ContactAvatarResponse.serializeBinaryToWriter(this, writer);
2942
+ return writer.getResultBuffer();
2943
+ };
2944
+
2945
+
2946
+ /**
2947
+ * Serializes the given message to binary data (in protobuf wire
2948
+ * format), writing to the given BinaryWriter.
2949
+ * @param {!proto.wechaty.puppet.ContactAvatarResponse} message
2950
+ * @param {!jspb.BinaryWriter} writer
2951
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2952
+ */
2953
+ proto.wechaty.puppet.ContactAvatarResponse.serializeBinaryToWriter = function(message, writer) {
2954
+ var f = undefined;
2955
+ f = message.getFileboxStringValueDeprecated();
2956
+ if (f != null) {
2957
+ writer.writeMessage(
2958
+ 1,
2959
+ f,
2960
+ google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
2961
+ );
2962
+ }
2963
+ f = message.getFileBox();
2964
+ if (f.length > 0) {
2965
+ writer.writeString(
2966
+ 2,
2967
+ f
2968
+ );
2969
+ }
2970
+ };
2971
+
2972
+
2973
+ /**
2974
+ * optional google.protobuf.StringValue filebox_string_value_deprecated = 1;
2975
+ * @return {?proto.google.protobuf.StringValue}
2976
+ */
2977
+ proto.wechaty.puppet.ContactAvatarResponse.prototype.getFileboxStringValueDeprecated = function() {
2978
+ return /** @type{?proto.google.protobuf.StringValue} */ (
2979
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 1));
2980
+ };
2981
+
2982
+
2983
+ /**
2984
+ * @param {?proto.google.protobuf.StringValue|undefined} value
2985
+ * @return {!proto.wechaty.puppet.ContactAvatarResponse} returns this
2986
+ */
2987
+ proto.wechaty.puppet.ContactAvatarResponse.prototype.setFileboxStringValueDeprecated = function(value) {
2988
+ return jspb.Message.setWrapperField(this, 1, value);
2989
+ };
2990
+
2991
+
2992
+ /**
2993
+ * Clears the message field making it undefined.
2994
+ * @return {!proto.wechaty.puppet.ContactAvatarResponse} returns this
2995
+ */
2996
+ proto.wechaty.puppet.ContactAvatarResponse.prototype.clearFileboxStringValueDeprecated = function() {
2997
+ return this.setFileboxStringValueDeprecated(undefined);
2998
+ };
2999
+
3000
+
3001
+ /**
3002
+ * Returns whether this field is set.
3003
+ * @return {boolean}
3004
+ */
3005
+ proto.wechaty.puppet.ContactAvatarResponse.prototype.hasFileboxStringValueDeprecated = function() {
3006
+ return jspb.Message.getField(this, 1) != null;
3007
+ };
3008
+
3009
+
3010
+ /**
3011
+ * optional string file_box = 2;
3012
+ * @return {string}
3013
+ */
3014
+ proto.wechaty.puppet.ContactAvatarResponse.prototype.getFileBox = function() {
3015
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3016
+ };
3017
+
3018
+
3019
+ /**
3020
+ * @param {string} value
3021
+ * @return {!proto.wechaty.puppet.ContactAvatarResponse} returns this
3022
+ */
3023
+ proto.wechaty.puppet.ContactAvatarResponse.prototype.setFileBox = function(value) {
3024
+ return jspb.Message.setProto3StringField(this, 2, value);
3025
+ };
3026
+
3027
+
3028
+
3029
+ /**
3030
+ * List of repeated fields within this message type.
3031
+ * @private {!Array<number>}
3032
+ * @const
3033
+ */
3034
+ proto.wechaty.puppet.ContactPhoneRequest.repeatedFields_ = [2];
3035
+
3036
+
3037
+
3038
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3039
+ /**
3040
+ * Creates an object representation of this proto.
3041
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3042
+ * Optional fields that are not set will be set to undefined.
3043
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3044
+ * For the list of reserved names please see:
3045
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3046
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3047
+ * JSPB instance for transitional soy proto support:
3048
+ * http://goto/soy-param-migration
3049
+ * @return {!Object}
3050
+ */
3051
+ proto.wechaty.puppet.ContactPhoneRequest.prototype.toObject = function(opt_includeInstance) {
3052
+ return proto.wechaty.puppet.ContactPhoneRequest.toObject(opt_includeInstance, this);
3053
+ };
3054
+
3055
+
3056
+ /**
3057
+ * Static version of the {@see toObject} method.
3058
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3059
+ * the JSPB instance for transitional soy proto support:
3060
+ * http://goto/soy-param-migration
3061
+ * @param {!proto.wechaty.puppet.ContactPhoneRequest} msg The msg instance to transform.
3062
+ * @return {!Object}
3063
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3064
+ */
3065
+ proto.wechaty.puppet.ContactPhoneRequest.toObject = function(includeInstance, msg) {
3066
+ var f, obj = {
3067
+ contactId: jspb.Message.getFieldWithDefault(msg, 1, ""),
3068
+ phonesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
3069
+ };
3070
+
3071
+ if (includeInstance) {
3072
+ obj.$jspbMessageInstance = msg;
3073
+ }
3074
+ return obj;
3075
+ };
3076
+ }
3077
+
3078
+
3079
+ /**
3080
+ * Deserializes binary data (in protobuf wire format).
3081
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3082
+ * @return {!proto.wechaty.puppet.ContactPhoneRequest}
3083
+ */
3084
+ proto.wechaty.puppet.ContactPhoneRequest.deserializeBinary = function(bytes) {
3085
+ var reader = new jspb.BinaryReader(bytes);
3086
+ var msg = new proto.wechaty.puppet.ContactPhoneRequest;
3087
+ return proto.wechaty.puppet.ContactPhoneRequest.deserializeBinaryFromReader(msg, reader);
3088
+ };
3089
+
3090
+
3091
+ /**
3092
+ * Deserializes binary data (in protobuf wire format) from the
3093
+ * given reader into the given message object.
3094
+ * @param {!proto.wechaty.puppet.ContactPhoneRequest} msg The message object to deserialize into.
3095
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3096
+ * @return {!proto.wechaty.puppet.ContactPhoneRequest}
3097
+ */
3098
+ proto.wechaty.puppet.ContactPhoneRequest.deserializeBinaryFromReader = function(msg, reader) {
3099
+ while (reader.nextField()) {
3100
+ if (reader.isEndGroup()) {
3101
+ break;
3102
+ }
3103
+ var field = reader.getFieldNumber();
3104
+ switch (field) {
3105
+ case 1:
3106
+ var value = /** @type {string} */ (reader.readString());
3107
+ msg.setContactId(value);
3108
+ break;
3109
+ case 2:
3110
+ var value = /** @type {string} */ (reader.readString());
3111
+ msg.addPhones(value);
3112
+ break;
3113
+ default:
3114
+ reader.skipField();
3115
+ break;
3116
+ }
3117
+ }
3118
+ return msg;
3119
+ };
3120
+
3121
+
3122
+ /**
3123
+ * Serializes the message to binary data (in protobuf wire format).
3124
+ * @return {!Uint8Array}
3125
+ */
3126
+ proto.wechaty.puppet.ContactPhoneRequest.prototype.serializeBinary = function() {
3127
+ var writer = new jspb.BinaryWriter();
3128
+ proto.wechaty.puppet.ContactPhoneRequest.serializeBinaryToWriter(this, writer);
3129
+ return writer.getResultBuffer();
3130
+ };
3131
+
3132
+
3133
+ /**
3134
+ * Serializes the given message to binary data (in protobuf wire
3135
+ * format), writing to the given BinaryWriter.
3136
+ * @param {!proto.wechaty.puppet.ContactPhoneRequest} message
3137
+ * @param {!jspb.BinaryWriter} writer
3138
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3139
+ */
3140
+ proto.wechaty.puppet.ContactPhoneRequest.serializeBinaryToWriter = function(message, writer) {
3141
+ var f = undefined;
3142
+ f = message.getContactId();
3143
+ if (f.length > 0) {
3144
+ writer.writeString(
3145
+ 1,
3146
+ f
3147
+ );
3148
+ }
3149
+ f = message.getPhonesList();
3150
+ if (f.length > 0) {
3151
+ writer.writeRepeatedString(
3152
+ 2,
3153
+ f
3154
+ );
3155
+ }
3156
+ };
3157
+
3158
+
3159
+ /**
3160
+ * optional string contact_id = 1;
3161
+ * @return {string}
3162
+ */
3163
+ proto.wechaty.puppet.ContactPhoneRequest.prototype.getContactId = function() {
3164
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3165
+ };
3166
+
3167
+
3168
+ /**
3169
+ * @param {string} value
3170
+ * @return {!proto.wechaty.puppet.ContactPhoneRequest} returns this
3171
+ */
3172
+ proto.wechaty.puppet.ContactPhoneRequest.prototype.setContactId = function(value) {
3173
+ return jspb.Message.setProto3StringField(this, 1, value);
3174
+ };
3175
+
3176
+
3177
+ /**
3178
+ * repeated string phones = 2;
3179
+ * @return {!Array<string>}
3180
+ */
3181
+ proto.wechaty.puppet.ContactPhoneRequest.prototype.getPhonesList = function() {
3182
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
3183
+ };
3184
+
3185
+
3186
+ /**
3187
+ * @param {!Array<string>} value
3188
+ * @return {!proto.wechaty.puppet.ContactPhoneRequest} returns this
3189
+ */
3190
+ proto.wechaty.puppet.ContactPhoneRequest.prototype.setPhonesList = function(value) {
3191
+ return jspb.Message.setField(this, 2, value || []);
3192
+ };
3193
+
3194
+
3195
+ /**
3196
+ * @param {string} value
3197
+ * @param {number=} opt_index
3198
+ * @return {!proto.wechaty.puppet.ContactPhoneRequest} returns this
3199
+ */
3200
+ proto.wechaty.puppet.ContactPhoneRequest.prototype.addPhones = function(value, opt_index) {
3201
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
3202
+ };
3203
+
3204
+
3205
+ /**
3206
+ * Clears the list making it empty but non-null.
3207
+ * @return {!proto.wechaty.puppet.ContactPhoneRequest} returns this
3208
+ */
3209
+ proto.wechaty.puppet.ContactPhoneRequest.prototype.clearPhonesList = function() {
3210
+ return this.setPhonesList([]);
3211
+ };
3212
+
3213
+
3214
+
3215
+ /**
3216
+ * List of repeated fields within this message type.
3217
+ * @private {!Array<number>}
3218
+ * @const
3219
+ */
3220
+ proto.wechaty.puppet.ContactPhoneResponse.repeatedFields_ = [2];
3221
+
3222
+
3223
+
3224
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3225
+ /**
3226
+ * Creates an object representation of this proto.
3227
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3228
+ * Optional fields that are not set will be set to undefined.
3229
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3230
+ * For the list of reserved names please see:
3231
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3232
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3233
+ * JSPB instance for transitional soy proto support:
3234
+ * http://goto/soy-param-migration
3235
+ * @return {!Object}
3236
+ */
3237
+ proto.wechaty.puppet.ContactPhoneResponse.prototype.toObject = function(opt_includeInstance) {
3238
+ return proto.wechaty.puppet.ContactPhoneResponse.toObject(opt_includeInstance, this);
3239
+ };
3240
+
3241
+
3242
+ /**
3243
+ * Static version of the {@see toObject} method.
3244
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3245
+ * the JSPB instance for transitional soy proto support:
3246
+ * http://goto/soy-param-migration
3247
+ * @param {!proto.wechaty.puppet.ContactPhoneResponse} msg The msg instance to transform.
3248
+ * @return {!Object}
3249
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3250
+ */
3251
+ proto.wechaty.puppet.ContactPhoneResponse.toObject = function(includeInstance, msg) {
3252
+ var f, obj = {
3253
+ phonesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
3254
+ };
3255
+
3256
+ if (includeInstance) {
3257
+ obj.$jspbMessageInstance = msg;
3258
+ }
3259
+ return obj;
3260
+ };
3261
+ }
3262
+
3263
+
3264
+ /**
3265
+ * Deserializes binary data (in protobuf wire format).
3266
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3267
+ * @return {!proto.wechaty.puppet.ContactPhoneResponse}
3268
+ */
3269
+ proto.wechaty.puppet.ContactPhoneResponse.deserializeBinary = function(bytes) {
3270
+ var reader = new jspb.BinaryReader(bytes);
3271
+ var msg = new proto.wechaty.puppet.ContactPhoneResponse;
3272
+ return proto.wechaty.puppet.ContactPhoneResponse.deserializeBinaryFromReader(msg, reader);
3273
+ };
3274
+
3275
+
3276
+ /**
3277
+ * Deserializes binary data (in protobuf wire format) from the
3278
+ * given reader into the given message object.
3279
+ * @param {!proto.wechaty.puppet.ContactPhoneResponse} msg The message object to deserialize into.
3280
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3281
+ * @return {!proto.wechaty.puppet.ContactPhoneResponse}
3282
+ */
3283
+ proto.wechaty.puppet.ContactPhoneResponse.deserializeBinaryFromReader = function(msg, reader) {
3284
+ while (reader.nextField()) {
3285
+ if (reader.isEndGroup()) {
3286
+ break;
3287
+ }
3288
+ var field = reader.getFieldNumber();
3289
+ switch (field) {
3290
+ case 2:
3291
+ var value = /** @type {string} */ (reader.readString());
3292
+ msg.addPhones(value);
3293
+ break;
3294
+ default:
3295
+ reader.skipField();
3296
+ break;
3297
+ }
3298
+ }
3299
+ return msg;
3300
+ };
3301
+
3302
+
3303
+ /**
3304
+ * Serializes the message to binary data (in protobuf wire format).
3305
+ * @return {!Uint8Array}
3306
+ */
3307
+ proto.wechaty.puppet.ContactPhoneResponse.prototype.serializeBinary = function() {
3308
+ var writer = new jspb.BinaryWriter();
3309
+ proto.wechaty.puppet.ContactPhoneResponse.serializeBinaryToWriter(this, writer);
3310
+ return writer.getResultBuffer();
3311
+ };
3312
+
3313
+
3314
+ /**
3315
+ * Serializes the given message to binary data (in protobuf wire
3316
+ * format), writing to the given BinaryWriter.
3317
+ * @param {!proto.wechaty.puppet.ContactPhoneResponse} message
3318
+ * @param {!jspb.BinaryWriter} writer
3319
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3320
+ */
3321
+ proto.wechaty.puppet.ContactPhoneResponse.serializeBinaryToWriter = function(message, writer) {
3322
+ var f = undefined;
3323
+ f = message.getPhonesList();
3324
+ if (f.length > 0) {
3325
+ writer.writeRepeatedString(
3326
+ 2,
3327
+ f
3328
+ );
3329
+ }
3330
+ };
3331
+
3332
+
3333
+ /**
3334
+ * repeated string phones = 2;
3335
+ * @return {!Array<string>}
3336
+ */
3337
+ proto.wechaty.puppet.ContactPhoneResponse.prototype.getPhonesList = function() {
3338
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
3339
+ };
3340
+
3341
+
3342
+ /**
3343
+ * @param {!Array<string>} value
3344
+ * @return {!proto.wechaty.puppet.ContactPhoneResponse} returns this
3345
+ */
3346
+ proto.wechaty.puppet.ContactPhoneResponse.prototype.setPhonesList = function(value) {
3347
+ return jspb.Message.setField(this, 2, value || []);
3348
+ };
3349
+
3350
+
3351
+ /**
3352
+ * @param {string} value
3353
+ * @param {number=} opt_index
3354
+ * @return {!proto.wechaty.puppet.ContactPhoneResponse} returns this
3355
+ */
3356
+ proto.wechaty.puppet.ContactPhoneResponse.prototype.addPhones = function(value, opt_index) {
3357
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
3358
+ };
3359
+
3360
+
3361
+ /**
3362
+ * Clears the list making it empty but non-null.
3363
+ * @return {!proto.wechaty.puppet.ContactPhoneResponse} returns this
3364
+ */
3365
+ proto.wechaty.puppet.ContactPhoneResponse.prototype.clearPhonesList = function() {
3366
+ return this.setPhonesList([]);
3367
+ };
3368
+
3369
+
3370
+
3371
+
3372
+
3373
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3374
+ /**
3375
+ * Creates an object representation of this proto.
3376
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3377
+ * Optional fields that are not set will be set to undefined.
3378
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3379
+ * For the list of reserved names please see:
3380
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3381
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3382
+ * JSPB instance for transitional soy proto support:
3383
+ * http://goto/soy-param-migration
3384
+ * @return {!Object}
3385
+ */
3386
+ proto.wechaty.puppet.ContactCorporationRemarkRequest.prototype.toObject = function(opt_includeInstance) {
3387
+ return proto.wechaty.puppet.ContactCorporationRemarkRequest.toObject(opt_includeInstance, this);
3388
+ };
3389
+
3390
+
3391
+ /**
3392
+ * Static version of the {@see toObject} method.
3393
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3394
+ * the JSPB instance for transitional soy proto support:
3395
+ * http://goto/soy-param-migration
3396
+ * @param {!proto.wechaty.puppet.ContactCorporationRemarkRequest} msg The msg instance to transform.
3397
+ * @return {!Object}
3398
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3399
+ */
3400
+ proto.wechaty.puppet.ContactCorporationRemarkRequest.toObject = function(includeInstance, msg) {
3401
+ var f, obj = {
3402
+ contactId: jspb.Message.getFieldWithDefault(msg, 1, ""),
3403
+ corporationRemarkStringValueDeprecated: (f = msg.getCorporationRemarkStringValueDeprecated()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
3404
+ corporationRemark: jspb.Message.getFieldWithDefault(msg, 3, "")
3405
+ };
3406
+
3407
+ if (includeInstance) {
3408
+ obj.$jspbMessageInstance = msg;
3409
+ }
3410
+ return obj;
3411
+ };
3412
+ }
3413
+
3414
+
3415
+ /**
3416
+ * Deserializes binary data (in protobuf wire format).
3417
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3418
+ * @return {!proto.wechaty.puppet.ContactCorporationRemarkRequest}
3419
+ */
3420
+ proto.wechaty.puppet.ContactCorporationRemarkRequest.deserializeBinary = function(bytes) {
3421
+ var reader = new jspb.BinaryReader(bytes);
3422
+ var msg = new proto.wechaty.puppet.ContactCorporationRemarkRequest;
3423
+ return proto.wechaty.puppet.ContactCorporationRemarkRequest.deserializeBinaryFromReader(msg, reader);
3424
+ };
3425
+
3426
+
3427
+ /**
3428
+ * Deserializes binary data (in protobuf wire format) from the
3429
+ * given reader into the given message object.
3430
+ * @param {!proto.wechaty.puppet.ContactCorporationRemarkRequest} msg The message object to deserialize into.
3431
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3432
+ * @return {!proto.wechaty.puppet.ContactCorporationRemarkRequest}
3433
+ */
3434
+ proto.wechaty.puppet.ContactCorporationRemarkRequest.deserializeBinaryFromReader = function(msg, reader) {
3435
+ while (reader.nextField()) {
3436
+ if (reader.isEndGroup()) {
3437
+ break;
3438
+ }
3439
+ var field = reader.getFieldNumber();
3440
+ switch (field) {
3441
+ case 1:
3442
+ var value = /** @type {string} */ (reader.readString());
3443
+ msg.setContactId(value);
3444
+ break;
3445
+ case 2:
3446
+ var value = new google_protobuf_wrappers_pb.StringValue;
3447
+ reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
3448
+ msg.setCorporationRemarkStringValueDeprecated(value);
3449
+ break;
3450
+ case 3:
3451
+ var value = /** @type {string} */ (reader.readString());
3452
+ msg.setCorporationRemark(value);
3453
+ break;
3454
+ default:
3455
+ reader.skipField();
3456
+ break;
3457
+ }
3458
+ }
3459
+ return msg;
3460
+ };
3461
+
3462
+
3463
+ /**
3464
+ * Serializes the message to binary data (in protobuf wire format).
3465
+ * @return {!Uint8Array}
3466
+ */
3467
+ proto.wechaty.puppet.ContactCorporationRemarkRequest.prototype.serializeBinary = function() {
3468
+ var writer = new jspb.BinaryWriter();
3469
+ proto.wechaty.puppet.ContactCorporationRemarkRequest.serializeBinaryToWriter(this, writer);
3470
+ return writer.getResultBuffer();
3471
+ };
3472
+
3473
+
3474
+ /**
3475
+ * Serializes the given message to binary data (in protobuf wire
3476
+ * format), writing to the given BinaryWriter.
3477
+ * @param {!proto.wechaty.puppet.ContactCorporationRemarkRequest} message
3478
+ * @param {!jspb.BinaryWriter} writer
3479
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3480
+ */
3481
+ proto.wechaty.puppet.ContactCorporationRemarkRequest.serializeBinaryToWriter = function(message, writer) {
3482
+ var f = undefined;
3483
+ f = message.getContactId();
3484
+ if (f.length > 0) {
3485
+ writer.writeString(
3486
+ 1,
3487
+ f
3488
+ );
3489
+ }
3490
+ f = message.getCorporationRemarkStringValueDeprecated();
3491
+ if (f != null) {
3492
+ writer.writeMessage(
3493
+ 2,
3494
+ f,
3495
+ google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
3496
+ );
3497
+ }
3498
+ f = message.getCorporationRemark();
3499
+ if (f.length > 0) {
3500
+ writer.writeString(
3501
+ 3,
3502
+ f
3503
+ );
3504
+ }
3505
+ };
3506
+
3507
+
3508
+ /**
3509
+ * optional string contact_id = 1;
3510
+ * @return {string}
3511
+ */
3512
+ proto.wechaty.puppet.ContactCorporationRemarkRequest.prototype.getContactId = function() {
3513
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3514
+ };
3515
+
3516
+
3517
+ /**
3518
+ * @param {string} value
3519
+ * @return {!proto.wechaty.puppet.ContactCorporationRemarkRequest} returns this
3520
+ */
3521
+ proto.wechaty.puppet.ContactCorporationRemarkRequest.prototype.setContactId = function(value) {
3522
+ return jspb.Message.setProto3StringField(this, 1, value);
3523
+ };
3524
+
3525
+
3526
+ /**
3527
+ * optional google.protobuf.StringValue corporation_remark_string_value_deprecated = 2;
3528
+ * @return {?proto.google.protobuf.StringValue}
3529
+ */
3530
+ proto.wechaty.puppet.ContactCorporationRemarkRequest.prototype.getCorporationRemarkStringValueDeprecated = function() {
3531
+ return /** @type{?proto.google.protobuf.StringValue} */ (
3532
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 2));
3533
+ };
3534
+
3535
+
3536
+ /**
3537
+ * @param {?proto.google.protobuf.StringValue|undefined} value
3538
+ * @return {!proto.wechaty.puppet.ContactCorporationRemarkRequest} returns this
3539
+ */
3540
+ proto.wechaty.puppet.ContactCorporationRemarkRequest.prototype.setCorporationRemarkStringValueDeprecated = function(value) {
3541
+ return jspb.Message.setWrapperField(this, 2, value);
3542
+ };
3543
+
3544
+
3545
+ /**
3546
+ * Clears the message field making it undefined.
3547
+ * @return {!proto.wechaty.puppet.ContactCorporationRemarkRequest} returns this
3548
+ */
3549
+ proto.wechaty.puppet.ContactCorporationRemarkRequest.prototype.clearCorporationRemarkStringValueDeprecated = function() {
3550
+ return this.setCorporationRemarkStringValueDeprecated(undefined);
3551
+ };
3552
+
3553
+
3554
+ /**
3555
+ * Returns whether this field is set.
3556
+ * @return {boolean}
3557
+ */
3558
+ proto.wechaty.puppet.ContactCorporationRemarkRequest.prototype.hasCorporationRemarkStringValueDeprecated = function() {
3559
+ return jspb.Message.getField(this, 2) != null;
3560
+ };
3561
+
3562
+
3563
+ /**
3564
+ * optional string corporation_remark = 3;
3565
+ * @return {string}
3566
+ */
3567
+ proto.wechaty.puppet.ContactCorporationRemarkRequest.prototype.getCorporationRemark = function() {
3568
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
3569
+ };
3570
+
3571
+
3572
+ /**
3573
+ * @param {string} value
3574
+ * @return {!proto.wechaty.puppet.ContactCorporationRemarkRequest} returns this
3575
+ */
3576
+ proto.wechaty.puppet.ContactCorporationRemarkRequest.prototype.setCorporationRemark = function(value) {
3577
+ return jspb.Message.setProto3StringField(this, 3, value);
3578
+ };
3579
+
3580
+
3581
+
3582
+
3583
+
3584
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3585
+ /**
3586
+ * Creates an object representation of this proto.
3587
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3588
+ * Optional fields that are not set will be set to undefined.
3589
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3590
+ * For the list of reserved names please see:
3591
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3592
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3593
+ * JSPB instance for transitional soy proto support:
3594
+ * http://goto/soy-param-migration
3595
+ * @return {!Object}
3596
+ */
3597
+ proto.wechaty.puppet.ContactCorporationRemarkResponse.prototype.toObject = function(opt_includeInstance) {
3598
+ return proto.wechaty.puppet.ContactCorporationRemarkResponse.toObject(opt_includeInstance, this);
3599
+ };
3600
+
3601
+
3602
+ /**
3603
+ * Static version of the {@see toObject} method.
3604
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3605
+ * the JSPB instance for transitional soy proto support:
3606
+ * http://goto/soy-param-migration
3607
+ * @param {!proto.wechaty.puppet.ContactCorporationRemarkResponse} msg The msg instance to transform.
3608
+ * @return {!Object}
3609
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3610
+ */
3611
+ proto.wechaty.puppet.ContactCorporationRemarkResponse.toObject = function(includeInstance, msg) {
3612
+ var f, obj = {
3613
+
3614
+ };
3615
+
3616
+ if (includeInstance) {
3617
+ obj.$jspbMessageInstance = msg;
3618
+ }
3619
+ return obj;
3620
+ };
3621
+ }
3622
+
3623
+
3624
+ /**
3625
+ * Deserializes binary data (in protobuf wire format).
3626
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3627
+ * @return {!proto.wechaty.puppet.ContactCorporationRemarkResponse}
3628
+ */
3629
+ proto.wechaty.puppet.ContactCorporationRemarkResponse.deserializeBinary = function(bytes) {
3630
+ var reader = new jspb.BinaryReader(bytes);
3631
+ var msg = new proto.wechaty.puppet.ContactCorporationRemarkResponse;
3632
+ return proto.wechaty.puppet.ContactCorporationRemarkResponse.deserializeBinaryFromReader(msg, reader);
3633
+ };
3634
+
3635
+
3636
+ /**
3637
+ * Deserializes binary data (in protobuf wire format) from the
3638
+ * given reader into the given message object.
3639
+ * @param {!proto.wechaty.puppet.ContactCorporationRemarkResponse} msg The message object to deserialize into.
3640
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3641
+ * @return {!proto.wechaty.puppet.ContactCorporationRemarkResponse}
3642
+ */
3643
+ proto.wechaty.puppet.ContactCorporationRemarkResponse.deserializeBinaryFromReader = function(msg, reader) {
3644
+ while (reader.nextField()) {
3645
+ if (reader.isEndGroup()) {
3646
+ break;
3647
+ }
3648
+ var field = reader.getFieldNumber();
3649
+ switch (field) {
3650
+ default:
3651
+ reader.skipField();
3652
+ break;
3653
+ }
3654
+ }
3655
+ return msg;
3656
+ };
3657
+
3658
+
3659
+ /**
3660
+ * Serializes the message to binary data (in protobuf wire format).
3661
+ * @return {!Uint8Array}
3662
+ */
3663
+ proto.wechaty.puppet.ContactCorporationRemarkResponse.prototype.serializeBinary = function() {
3664
+ var writer = new jspb.BinaryWriter();
3665
+ proto.wechaty.puppet.ContactCorporationRemarkResponse.serializeBinaryToWriter(this, writer);
3666
+ return writer.getResultBuffer();
3667
+ };
3668
+
3669
+
3670
+ /**
3671
+ * Serializes the given message to binary data (in protobuf wire
3672
+ * format), writing to the given BinaryWriter.
3673
+ * @param {!proto.wechaty.puppet.ContactCorporationRemarkResponse} message
3674
+ * @param {!jspb.BinaryWriter} writer
3675
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3676
+ */
3677
+ proto.wechaty.puppet.ContactCorporationRemarkResponse.serializeBinaryToWriter = function(message, writer) {
3678
+ var f = undefined;
3679
+ };
3680
+
3681
+
3682
+
3683
+
3684
+
3685
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3686
+ /**
3687
+ * Creates an object representation of this proto.
3688
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3689
+ * Optional fields that are not set will be set to undefined.
3690
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3691
+ * For the list of reserved names please see:
3692
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3693
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3694
+ * JSPB instance for transitional soy proto support:
3695
+ * http://goto/soy-param-migration
3696
+ * @return {!Object}
3697
+ */
3698
+ proto.wechaty.puppet.ContactDescriptionRequest.prototype.toObject = function(opt_includeInstance) {
3699
+ return proto.wechaty.puppet.ContactDescriptionRequest.toObject(opt_includeInstance, this);
3700
+ };
3701
+
3702
+
3703
+ /**
3704
+ * Static version of the {@see toObject} method.
3705
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3706
+ * the JSPB instance for transitional soy proto support:
3707
+ * http://goto/soy-param-migration
3708
+ * @param {!proto.wechaty.puppet.ContactDescriptionRequest} msg The msg instance to transform.
3709
+ * @return {!Object}
3710
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3711
+ */
3712
+ proto.wechaty.puppet.ContactDescriptionRequest.toObject = function(includeInstance, msg) {
3713
+ var f, obj = {
3714
+ contactId: jspb.Message.getFieldWithDefault(msg, 1, ""),
3715
+ descriptionStringValueDeprecated: (f = msg.getDescriptionStringValueDeprecated()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
3716
+ description: jspb.Message.getFieldWithDefault(msg, 3, "")
3717
+ };
3718
+
3719
+ if (includeInstance) {
3720
+ obj.$jspbMessageInstance = msg;
3721
+ }
3722
+ return obj;
3723
+ };
3724
+ }
3725
+
3726
+
3727
+ /**
3728
+ * Deserializes binary data (in protobuf wire format).
3729
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3730
+ * @return {!proto.wechaty.puppet.ContactDescriptionRequest}
3731
+ */
3732
+ proto.wechaty.puppet.ContactDescriptionRequest.deserializeBinary = function(bytes) {
3733
+ var reader = new jspb.BinaryReader(bytes);
3734
+ var msg = new proto.wechaty.puppet.ContactDescriptionRequest;
3735
+ return proto.wechaty.puppet.ContactDescriptionRequest.deserializeBinaryFromReader(msg, reader);
3736
+ };
3737
+
3738
+
3739
+ /**
3740
+ * Deserializes binary data (in protobuf wire format) from the
3741
+ * given reader into the given message object.
3742
+ * @param {!proto.wechaty.puppet.ContactDescriptionRequest} msg The message object to deserialize into.
3743
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3744
+ * @return {!proto.wechaty.puppet.ContactDescriptionRequest}
3745
+ */
3746
+ proto.wechaty.puppet.ContactDescriptionRequest.deserializeBinaryFromReader = function(msg, reader) {
3747
+ while (reader.nextField()) {
3748
+ if (reader.isEndGroup()) {
3749
+ break;
3750
+ }
3751
+ var field = reader.getFieldNumber();
3752
+ switch (field) {
3753
+ case 1:
3754
+ var value = /** @type {string} */ (reader.readString());
3755
+ msg.setContactId(value);
3756
+ break;
3757
+ case 2:
3758
+ var value = new google_protobuf_wrappers_pb.StringValue;
3759
+ reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
3760
+ msg.setDescriptionStringValueDeprecated(value);
3761
+ break;
3762
+ case 3:
3763
+ var value = /** @type {string} */ (reader.readString());
3764
+ msg.setDescription(value);
3765
+ break;
3766
+ default:
3767
+ reader.skipField();
3768
+ break;
3769
+ }
3770
+ }
3771
+ return msg;
3772
+ };
3773
+
3774
+
3775
+ /**
3776
+ * Serializes the message to binary data (in protobuf wire format).
3777
+ * @return {!Uint8Array}
3778
+ */
3779
+ proto.wechaty.puppet.ContactDescriptionRequest.prototype.serializeBinary = function() {
3780
+ var writer = new jspb.BinaryWriter();
3781
+ proto.wechaty.puppet.ContactDescriptionRequest.serializeBinaryToWriter(this, writer);
3782
+ return writer.getResultBuffer();
3783
+ };
3784
+
3785
+
3786
+ /**
3787
+ * Serializes the given message to binary data (in protobuf wire
3788
+ * format), writing to the given BinaryWriter.
3789
+ * @param {!proto.wechaty.puppet.ContactDescriptionRequest} message
3790
+ * @param {!jspb.BinaryWriter} writer
3791
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3792
+ */
3793
+ proto.wechaty.puppet.ContactDescriptionRequest.serializeBinaryToWriter = function(message, writer) {
3794
+ var f = undefined;
3795
+ f = message.getContactId();
3796
+ if (f.length > 0) {
3797
+ writer.writeString(
3798
+ 1,
3799
+ f
3800
+ );
3801
+ }
3802
+ f = message.getDescriptionStringValueDeprecated();
3803
+ if (f != null) {
3804
+ writer.writeMessage(
3805
+ 2,
3806
+ f,
3807
+ google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
3808
+ );
3809
+ }
3810
+ f = message.getDescription();
3811
+ if (f.length > 0) {
3812
+ writer.writeString(
3813
+ 3,
3814
+ f
3815
+ );
3816
+ }
3817
+ };
3818
+
3819
+
3820
+ /**
3821
+ * optional string contact_id = 1;
3822
+ * @return {string}
3823
+ */
3824
+ proto.wechaty.puppet.ContactDescriptionRequest.prototype.getContactId = function() {
3825
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3826
+ };
3827
+
3828
+
3829
+ /**
3830
+ * @param {string} value
3831
+ * @return {!proto.wechaty.puppet.ContactDescriptionRequest} returns this
3832
+ */
3833
+ proto.wechaty.puppet.ContactDescriptionRequest.prototype.setContactId = function(value) {
3834
+ return jspb.Message.setProto3StringField(this, 1, value);
3835
+ };
3836
+
3837
+
3838
+ /**
3839
+ * optional google.protobuf.StringValue description_string_value_deprecated = 2;
3840
+ * @return {?proto.google.protobuf.StringValue}
3841
+ */
3842
+ proto.wechaty.puppet.ContactDescriptionRequest.prototype.getDescriptionStringValueDeprecated = function() {
3843
+ return /** @type{?proto.google.protobuf.StringValue} */ (
3844
+ jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 2));
3845
+ };
3846
+
3847
+
3848
+ /**
3849
+ * @param {?proto.google.protobuf.StringValue|undefined} value
3850
+ * @return {!proto.wechaty.puppet.ContactDescriptionRequest} returns this
3851
+ */
3852
+ proto.wechaty.puppet.ContactDescriptionRequest.prototype.setDescriptionStringValueDeprecated = function(value) {
3853
+ return jspb.Message.setWrapperField(this, 2, value);
3854
+ };
3855
+
3856
+
3857
+ /**
3858
+ * Clears the message field making it undefined.
3859
+ * @return {!proto.wechaty.puppet.ContactDescriptionRequest} returns this
3860
+ */
3861
+ proto.wechaty.puppet.ContactDescriptionRequest.prototype.clearDescriptionStringValueDeprecated = function() {
3862
+ return this.setDescriptionStringValueDeprecated(undefined);
3863
+ };
3864
+
3865
+
3866
+ /**
3867
+ * Returns whether this field is set.
3868
+ * @return {boolean}
3869
+ */
3870
+ proto.wechaty.puppet.ContactDescriptionRequest.prototype.hasDescriptionStringValueDeprecated = function() {
3871
+ return jspb.Message.getField(this, 2) != null;
3872
+ };
3873
+
3874
+
3875
+ /**
3876
+ * optional string description = 3;
3877
+ * @return {string}
3878
+ */
3879
+ proto.wechaty.puppet.ContactDescriptionRequest.prototype.getDescription = function() {
3880
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
3881
+ };
3882
+
3883
+
3884
+ /**
3885
+ * @param {string} value
3886
+ * @return {!proto.wechaty.puppet.ContactDescriptionRequest} returns this
3887
+ */
3888
+ proto.wechaty.puppet.ContactDescriptionRequest.prototype.setDescription = function(value) {
3889
+ return jspb.Message.setProto3StringField(this, 3, value);
3890
+ };
3891
+
3892
+
3893
+
3894
+
3895
+
3896
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3897
+ /**
3898
+ * Creates an object representation of this proto.
3899
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3900
+ * Optional fields that are not set will be set to undefined.
3901
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3902
+ * For the list of reserved names please see:
3903
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3904
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3905
+ * JSPB instance for transitional soy proto support:
3906
+ * http://goto/soy-param-migration
3907
+ * @return {!Object}
3908
+ */
3909
+ proto.wechaty.puppet.ContactDescriptionResponse.prototype.toObject = function(opt_includeInstance) {
3910
+ return proto.wechaty.puppet.ContactDescriptionResponse.toObject(opt_includeInstance, this);
3911
+ };
3912
+
3913
+
3914
+ /**
3915
+ * Static version of the {@see toObject} method.
3916
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3917
+ * the JSPB instance for transitional soy proto support:
3918
+ * http://goto/soy-param-migration
3919
+ * @param {!proto.wechaty.puppet.ContactDescriptionResponse} msg The msg instance to transform.
3920
+ * @return {!Object}
3921
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3922
+ */
3923
+ proto.wechaty.puppet.ContactDescriptionResponse.toObject = function(includeInstance, msg) {
3924
+ var f, obj = {
3925
+
3926
+ };
3927
+
3928
+ if (includeInstance) {
3929
+ obj.$jspbMessageInstance = msg;
3930
+ }
3931
+ return obj;
3932
+ };
3933
+ }
3934
+
3935
+
3936
+ /**
3937
+ * Deserializes binary data (in protobuf wire format).
3938
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3939
+ * @return {!proto.wechaty.puppet.ContactDescriptionResponse}
3940
+ */
3941
+ proto.wechaty.puppet.ContactDescriptionResponse.deserializeBinary = function(bytes) {
3942
+ var reader = new jspb.BinaryReader(bytes);
3943
+ var msg = new proto.wechaty.puppet.ContactDescriptionResponse;
3944
+ return proto.wechaty.puppet.ContactDescriptionResponse.deserializeBinaryFromReader(msg, reader);
3945
+ };
3946
+
3947
+
3948
+ /**
3949
+ * Deserializes binary data (in protobuf wire format) from the
3950
+ * given reader into the given message object.
3951
+ * @param {!proto.wechaty.puppet.ContactDescriptionResponse} msg The message object to deserialize into.
3952
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3953
+ * @return {!proto.wechaty.puppet.ContactDescriptionResponse}
3954
+ */
3955
+ proto.wechaty.puppet.ContactDescriptionResponse.deserializeBinaryFromReader = function(msg, reader) {
3956
+ while (reader.nextField()) {
3957
+ if (reader.isEndGroup()) {
3958
+ break;
3959
+ }
3960
+ var field = reader.getFieldNumber();
3961
+ switch (field) {
3962
+ default:
3963
+ reader.skipField();
3964
+ break;
3965
+ }
3966
+ }
3967
+ return msg;
3968
+ };
3969
+
3970
+
3971
+ /**
3972
+ * Serializes the message to binary data (in protobuf wire format).
3973
+ * @return {!Uint8Array}
3974
+ */
3975
+ proto.wechaty.puppet.ContactDescriptionResponse.prototype.serializeBinary = function() {
3976
+ var writer = new jspb.BinaryWriter();
3977
+ proto.wechaty.puppet.ContactDescriptionResponse.serializeBinaryToWriter(this, writer);
3978
+ return writer.getResultBuffer();
3979
+ };
3980
+
3981
+
3982
+ /**
3983
+ * Serializes the given message to binary data (in protobuf wire
3984
+ * format), writing to the given BinaryWriter.
3985
+ * @param {!proto.wechaty.puppet.ContactDescriptionResponse} message
3986
+ * @param {!jspb.BinaryWriter} writer
3987
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3988
+ */
3989
+ proto.wechaty.puppet.ContactDescriptionResponse.serializeBinaryToWriter = function(message, writer) {
3990
+ var f = undefined;
3991
+ };
3992
+
3993
+
3994
+ /**
3995
+ * @enum {number}
3996
+ */
3997
+ proto.wechaty.puppet.ContactGender = {
3998
+ CONTACT_GENDER_UNSPECIFIED: 0,
3999
+ CONTACT_GENDER_MALE: 1,
4000
+ CONTACT_GENDER_FEMALE: 2
4001
+ };
4002
+
4003
+ /**
4004
+ * @enum {number}
4005
+ */
4006
+ proto.wechaty.puppet.ContactType = {
4007
+ CONTACT_TYPE_UNSPECIFIED: 0,
4008
+ CONTACT_TYPE_PERSONAL: 1,
4009
+ CONTACT_TYPE_OFFICIAL: 2,
4010
+ CONTACT_TYPE_CORPORATION: 3
4011
+ };
4012
+
4013
+ goog.object.extend(exports, proto.wechaty.puppet);