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