@juzi/wechaty-grpc 1.0.10 → 1.0.13

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 (77) hide show
  1. package/dist/cjs/commonjs/generated/puppet.cjs.d.ts +0 -1
  2. package/dist/cjs/out/wechaty/puppet/event_pb.d.ts +1 -0
  3. package/dist/cjs/out/wechaty/puppet/event_pb.js +2 -1
  4. package/dist/cjs/out/wechaty/puppet/room_pb.d.ts +6 -0
  5. package/dist/cjs/out/wechaty/puppet/room_pb.js +58 -2
  6. package/dist/cjs/out/wechaty/puppet/tag_pb.d.ts +536 -76
  7. package/dist/cjs/out/wechaty/puppet/tag_pb.js +3909 -328
  8. package/dist/cjs/out/wechaty/puppet.openapi.yaml +413 -362
  9. package/dist/cjs/out/wechaty/puppet.swagger.json +652 -556
  10. package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +182 -183
  11. package/dist/cjs/out/wechaty/puppet_grpc_pb.js +343 -351
  12. package/dist/cjs/out/wechaty/puppet_pb.d.ts +0 -1
  13. package/dist/cjs/out/wechaty/puppet_pb.js +0 -2
  14. package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +130 -131
  15. package/dist/cjs/out/wechaty/puppet_pb_service.js +78 -79
  16. package/dist/cjs/proto/wechaty/puppet/event.proto +1 -0
  17. package/dist/cjs/proto/wechaty/puppet/room.proto +14 -13
  18. package/dist/cjs/proto/wechaty/puppet/tag.proto +115 -29
  19. package/dist/cjs/proto/wechaty/puppet.proto +36 -37
  20. package/dist/cjs/src/package-json.js +1 -1
  21. package/dist/cjs/tests/puppet-server-impl.js +13 -13
  22. package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
  23. package/dist/esm/commonjs/generated/puppet.cjs.d.ts +0 -1
  24. package/dist/esm/out/wechaty/puppet/event_pb.d.ts +1 -0
  25. package/dist/esm/out/wechaty/puppet/event_pb.js +2 -1
  26. package/dist/esm/out/wechaty/puppet/room_pb.d.ts +6 -0
  27. package/dist/esm/out/wechaty/puppet/room_pb.js +58 -2
  28. package/dist/esm/out/wechaty/puppet/tag_pb.d.ts +536 -76
  29. package/dist/esm/out/wechaty/puppet/tag_pb.js +3909 -328
  30. package/dist/esm/out/wechaty/puppet.openapi.yaml +413 -362
  31. package/dist/esm/out/wechaty/puppet.swagger.json +652 -556
  32. package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +182 -183
  33. package/dist/esm/out/wechaty/puppet_grpc_pb.js +343 -351
  34. package/dist/esm/out/wechaty/puppet_pb.d.ts +0 -1
  35. package/dist/esm/out/wechaty/puppet_pb.js +0 -2
  36. package/dist/esm/out/wechaty/puppet_pb_service.d.ts +130 -131
  37. package/dist/esm/out/wechaty/puppet_pb_service.js +78 -79
  38. package/dist/esm/proto/wechaty/puppet/event.proto +1 -0
  39. package/dist/esm/proto/wechaty/puppet/room.proto +14 -13
  40. package/dist/esm/proto/wechaty/puppet/tag.proto +115 -29
  41. package/dist/esm/proto/wechaty/puppet.proto +36 -37
  42. package/dist/esm/src/package-json.js +1 -1
  43. package/dist/esm/tests/puppet-server-impl.js +13 -13
  44. package/dist/esm/tests/puppet-server-impl.js.map +1 -1
  45. package/out/wechaty/puppet/event_pb.d.ts +1 -0
  46. package/out/wechaty/puppet/event_pb.js +2 -1
  47. package/out/wechaty/puppet/room_pb.d.ts +6 -0
  48. package/out/wechaty/puppet/room_pb.js +58 -2
  49. package/out/wechaty/puppet/tag_pb.d.ts +536 -76
  50. package/out/wechaty/puppet/tag_pb.js +3909 -328
  51. package/out/wechaty/puppet.openapi.yaml +413 -362
  52. package/out/wechaty/puppet.swagger.json +652 -556
  53. package/out/wechaty/puppet_grpc_pb.d.ts +182 -183
  54. package/out/wechaty/puppet_grpc_pb.js +343 -351
  55. package/out/wechaty/puppet_pb.d.ts +0 -1
  56. package/out/wechaty/puppet_pb.js +0 -2
  57. package/out/wechaty/puppet_pb_service.d.ts +130 -131
  58. package/out/wechaty/puppet_pb_service.js +78 -79
  59. package/package.json +1 -1
  60. package/src/package-json.ts +1 -1
  61. package/dist/cjs/out/wechaty/puppet/corp-tag_grpc_pb.js +0 -1
  62. package/dist/cjs/out/wechaty/puppet/corp-tag_pb.d.ts +0 -431
  63. package/dist/cjs/out/wechaty/puppet/corp-tag_pb.js +0 -3315
  64. package/dist/cjs/out/wechaty/puppet/corp-tag_pb_service.d.ts +0 -3
  65. package/dist/cjs/out/wechaty/puppet/corp-tag_pb_service.js +0 -3
  66. package/dist/cjs/proto/wechaty/puppet/corp-tag.proto +0 -90
  67. package/dist/esm/out/wechaty/puppet/corp-tag_grpc_pb.js +0 -1
  68. package/dist/esm/out/wechaty/puppet/corp-tag_pb.d.ts +0 -431
  69. package/dist/esm/out/wechaty/puppet/corp-tag_pb.js +0 -3315
  70. package/dist/esm/out/wechaty/puppet/corp-tag_pb_service.d.ts +0 -3
  71. package/dist/esm/out/wechaty/puppet/corp-tag_pb_service.js +0 -3
  72. package/dist/esm/proto/wechaty/puppet/corp-tag.proto +0 -90
  73. package/out/wechaty/puppet/corp-tag_grpc_pb.js +0 -1
  74. package/out/wechaty/puppet/corp-tag_pb.d.ts +0 -431
  75. package/out/wechaty/puppet/corp-tag_pb.js +0 -3315
  76. package/out/wechaty/puppet/corp-tag_pb_service.d.ts +0 -3
  77. package/out/wechaty/puppet/corp-tag_pb_service.js +0 -3
@@ -15,16 +15,36 @@ var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
16
  var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);
17
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.TagContactAddRequest', null, global);
21
- goog.exportSymbol('proto.wechaty.puppet.TagContactAddResponse', null, global);
22
- goog.exportSymbol('proto.wechaty.puppet.TagContactDeleteRequest', null, global);
23
- goog.exportSymbol('proto.wechaty.puppet.TagContactDeleteResponse', null, global);
24
- goog.exportSymbol('proto.wechaty.puppet.TagContactListRequest', null, global);
25
- goog.exportSymbol('proto.wechaty.puppet.TagContactListResponse', null, global);
26
- goog.exportSymbol('proto.wechaty.puppet.TagContactRemoveRequest', null, global);
27
- goog.exportSymbol('proto.wechaty.puppet.TagContactRemoveResponse', null, global);
18
+ goog.exportSymbol('proto.wechaty.puppet.TagContactTagAddRequest', null, global);
19
+ goog.exportSymbol('proto.wechaty.puppet.TagContactTagAddResponse', null, global);
20
+ goog.exportSymbol('proto.wechaty.puppet.TagContactTagListRequest', null, global);
21
+ goog.exportSymbol('proto.wechaty.puppet.TagContactTagListResponse', null, global);
22
+ goog.exportSymbol('proto.wechaty.puppet.TagContactTagRemoveRequest', null, global);
23
+ goog.exportSymbol('proto.wechaty.puppet.TagContactTagRemoveResponse', null, global);
24
+ goog.exportSymbol('proto.wechaty.puppet.TagGroupAddRequest', null, global);
25
+ goog.exportSymbol('proto.wechaty.puppet.TagGroupAddResponse', null, global);
26
+ goog.exportSymbol('proto.wechaty.puppet.TagGroupDeleteRequest', null, global);
27
+ goog.exportSymbol('proto.wechaty.puppet.TagGroupDeleteResponse', null, global);
28
+ goog.exportSymbol('proto.wechaty.puppet.TagGroupListRequest', null, global);
29
+ goog.exportSymbol('proto.wechaty.puppet.TagGroupListResponse', null, global);
30
+ goog.exportSymbol('proto.wechaty.puppet.TagGroupPayload', null, global);
31
+ goog.exportSymbol('proto.wechaty.puppet.TagGroupPayloadRequest', null, global);
32
+ goog.exportSymbol('proto.wechaty.puppet.TagGroupPayloadResponse', null, global);
33
+ goog.exportSymbol('proto.wechaty.puppet.TagGroupTagListRequest', null, global);
34
+ goog.exportSymbol('proto.wechaty.puppet.TagGroupTagListResponse', null, global);
35
+ goog.exportSymbol('proto.wechaty.puppet.TagIdentifier', null, global);
36
+ goog.exportSymbol('proto.wechaty.puppet.TagPayload', null, global);
37
+ goog.exportSymbol('proto.wechaty.puppet.TagPayloadRequest', null, global);
38
+ goog.exportSymbol('proto.wechaty.puppet.TagPayloadResponse', null, global);
39
+ goog.exportSymbol('proto.wechaty.puppet.TagTagAddRequest', null, global);
40
+ goog.exportSymbol('proto.wechaty.puppet.TagTagAddResponse', null, global);
41
+ goog.exportSymbol('proto.wechaty.puppet.TagTagContactListRequest', null, global);
42
+ goog.exportSymbol('proto.wechaty.puppet.TagTagContactListResponse', null, global);
43
+ goog.exportSymbol('proto.wechaty.puppet.TagTagDeleteRequest', null, global);
44
+ goog.exportSymbol('proto.wechaty.puppet.TagTagDeleteResponse', null, global);
45
+ goog.exportSymbol('proto.wechaty.puppet.TagTagListRequest', null, global);
46
+ goog.exportSymbol('proto.wechaty.puppet.TagTagListResponse', null, global);
47
+ goog.exportSymbol('proto.wechaty.puppet.TagType', null, global);
28
48
  /**
29
49
  * Generated by JsPbCodeGenerator.
30
50
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -35,16 +55,16 @@ goog.exportSymbol('proto.wechaty.puppet.TagContactRemoveResponse', null, global)
35
55
  * @extends {jspb.Message}
36
56
  * @constructor
37
57
  */
38
- proto.wechaty.puppet.TagContactAddRequest = function(opt_data) {
58
+ proto.wechaty.puppet.TagPayload = function(opt_data) {
39
59
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
40
60
  };
41
- goog.inherits(proto.wechaty.puppet.TagContactAddRequest, jspb.Message);
61
+ goog.inherits(proto.wechaty.puppet.TagPayload, jspb.Message);
42
62
  if (goog.DEBUG && !COMPILED) {
43
63
  /**
44
64
  * @public
45
65
  * @override
46
66
  */
47
- proto.wechaty.puppet.TagContactAddRequest.displayName = 'proto.wechaty.puppet.TagContactAddRequest';
67
+ proto.wechaty.puppet.TagPayload.displayName = 'proto.wechaty.puppet.TagPayload';
48
68
  }
49
69
  /**
50
70
  * Generated by JsPbCodeGenerator.
@@ -56,16 +76,16 @@ if (goog.DEBUG && !COMPILED) {
56
76
  * @extends {jspb.Message}
57
77
  * @constructor
58
78
  */
59
- proto.wechaty.puppet.TagContactAddResponse = function(opt_data) {
79
+ proto.wechaty.puppet.TagIdentifier = function(opt_data) {
60
80
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
61
81
  };
62
- goog.inherits(proto.wechaty.puppet.TagContactAddResponse, jspb.Message);
82
+ goog.inherits(proto.wechaty.puppet.TagIdentifier, jspb.Message);
63
83
  if (goog.DEBUG && !COMPILED) {
64
84
  /**
65
85
  * @public
66
86
  * @override
67
87
  */
68
- proto.wechaty.puppet.TagContactAddResponse.displayName = 'proto.wechaty.puppet.TagContactAddResponse';
88
+ proto.wechaty.puppet.TagIdentifier.displayName = 'proto.wechaty.puppet.TagIdentifier';
69
89
  }
70
90
  /**
71
91
  * Generated by JsPbCodeGenerator.
@@ -77,16 +97,16 @@ if (goog.DEBUG && !COMPILED) {
77
97
  * @extends {jspb.Message}
78
98
  * @constructor
79
99
  */
80
- proto.wechaty.puppet.TagContactRemoveRequest = function(opt_data) {
100
+ proto.wechaty.puppet.TagGroupPayload = function(opt_data) {
81
101
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
82
102
  };
83
- goog.inherits(proto.wechaty.puppet.TagContactRemoveRequest, jspb.Message);
103
+ goog.inherits(proto.wechaty.puppet.TagGroupPayload, jspb.Message);
84
104
  if (goog.DEBUG && !COMPILED) {
85
105
  /**
86
106
  * @public
87
107
  * @override
88
108
  */
89
- proto.wechaty.puppet.TagContactRemoveRequest.displayName = 'proto.wechaty.puppet.TagContactRemoveRequest';
109
+ proto.wechaty.puppet.TagGroupPayload.displayName = 'proto.wechaty.puppet.TagGroupPayload';
90
110
  }
91
111
  /**
92
112
  * Generated by JsPbCodeGenerator.
@@ -98,16 +118,247 @@ if (goog.DEBUG && !COMPILED) {
98
118
  * @extends {jspb.Message}
99
119
  * @constructor
100
120
  */
101
- proto.wechaty.puppet.TagContactRemoveResponse = function(opt_data) {
121
+ proto.wechaty.puppet.TagContactTagAddRequest = function(opt_data) {
122
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.wechaty.puppet.TagContactTagAddRequest.repeatedFields_, null);
123
+ };
124
+ goog.inherits(proto.wechaty.puppet.TagContactTagAddRequest, jspb.Message);
125
+ if (goog.DEBUG && !COMPILED) {
126
+ /**
127
+ * @public
128
+ * @override
129
+ */
130
+ proto.wechaty.puppet.TagContactTagAddRequest.displayName = 'proto.wechaty.puppet.TagContactTagAddRequest';
131
+ }
132
+ /**
133
+ * Generated by JsPbCodeGenerator.
134
+ * @param {Array=} opt_data Optional initial data array, typically from a
135
+ * server response, or constructed directly in Javascript. The array is used
136
+ * in place and becomes part of the constructed object. It is not cloned.
137
+ * If no data is provided, the constructed object will be empty, but still
138
+ * valid.
139
+ * @extends {jspb.Message}
140
+ * @constructor
141
+ */
142
+ proto.wechaty.puppet.TagContactTagAddResponse = function(opt_data) {
143
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
144
+ };
145
+ goog.inherits(proto.wechaty.puppet.TagContactTagAddResponse, jspb.Message);
146
+ if (goog.DEBUG && !COMPILED) {
147
+ /**
148
+ * @public
149
+ * @override
150
+ */
151
+ proto.wechaty.puppet.TagContactTagAddResponse.displayName = 'proto.wechaty.puppet.TagContactTagAddResponse';
152
+ }
153
+ /**
154
+ * Generated by JsPbCodeGenerator.
155
+ * @param {Array=} opt_data Optional initial data array, typically from a
156
+ * server response, or constructed directly in Javascript. The array is used
157
+ * in place and becomes part of the constructed object. It is not cloned.
158
+ * If no data is provided, the constructed object will be empty, but still
159
+ * valid.
160
+ * @extends {jspb.Message}
161
+ * @constructor
162
+ */
163
+ proto.wechaty.puppet.TagContactTagRemoveRequest = function(opt_data) {
164
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.wechaty.puppet.TagContactTagRemoveRequest.repeatedFields_, null);
165
+ };
166
+ goog.inherits(proto.wechaty.puppet.TagContactTagRemoveRequest, jspb.Message);
167
+ if (goog.DEBUG && !COMPILED) {
168
+ /**
169
+ * @public
170
+ * @override
171
+ */
172
+ proto.wechaty.puppet.TagContactTagRemoveRequest.displayName = 'proto.wechaty.puppet.TagContactTagRemoveRequest';
173
+ }
174
+ /**
175
+ * Generated by JsPbCodeGenerator.
176
+ * @param {Array=} opt_data Optional initial data array, typically from a
177
+ * server response, or constructed directly in Javascript. The array is used
178
+ * in place and becomes part of the constructed object. It is not cloned.
179
+ * If no data is provided, the constructed object will be empty, but still
180
+ * valid.
181
+ * @extends {jspb.Message}
182
+ * @constructor
183
+ */
184
+ proto.wechaty.puppet.TagContactTagRemoveResponse = function(opt_data) {
185
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
186
+ };
187
+ goog.inherits(proto.wechaty.puppet.TagContactTagRemoveResponse, jspb.Message);
188
+ if (goog.DEBUG && !COMPILED) {
189
+ /**
190
+ * @public
191
+ * @override
192
+ */
193
+ proto.wechaty.puppet.TagContactTagRemoveResponse.displayName = 'proto.wechaty.puppet.TagContactTagRemoveResponse';
194
+ }
195
+ /**
196
+ * Generated by JsPbCodeGenerator.
197
+ * @param {Array=} opt_data Optional initial data array, typically from a
198
+ * server response, or constructed directly in Javascript. The array is used
199
+ * in place and becomes part of the constructed object. It is not cloned.
200
+ * If no data is provided, the constructed object will be empty, but still
201
+ * valid.
202
+ * @extends {jspb.Message}
203
+ * @constructor
204
+ */
205
+ proto.wechaty.puppet.TagGroupAddRequest = function(opt_data) {
206
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
207
+ };
208
+ goog.inherits(proto.wechaty.puppet.TagGroupAddRequest, jspb.Message);
209
+ if (goog.DEBUG && !COMPILED) {
210
+ /**
211
+ * @public
212
+ * @override
213
+ */
214
+ proto.wechaty.puppet.TagGroupAddRequest.displayName = 'proto.wechaty.puppet.TagGroupAddRequest';
215
+ }
216
+ /**
217
+ * Generated by JsPbCodeGenerator.
218
+ * @param {Array=} opt_data Optional initial data array, typically from a
219
+ * server response, or constructed directly in Javascript. The array is used
220
+ * in place and becomes part of the constructed object. It is not cloned.
221
+ * If no data is provided, the constructed object will be empty, but still
222
+ * valid.
223
+ * @extends {jspb.Message}
224
+ * @constructor
225
+ */
226
+ proto.wechaty.puppet.TagGroupAddResponse = function(opt_data) {
227
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
228
+ };
229
+ goog.inherits(proto.wechaty.puppet.TagGroupAddResponse, jspb.Message);
230
+ if (goog.DEBUG && !COMPILED) {
231
+ /**
232
+ * @public
233
+ * @override
234
+ */
235
+ proto.wechaty.puppet.TagGroupAddResponse.displayName = 'proto.wechaty.puppet.TagGroupAddResponse';
236
+ }
237
+ /**
238
+ * Generated by JsPbCodeGenerator.
239
+ * @param {Array=} opt_data Optional initial data array, typically from a
240
+ * server response, or constructed directly in Javascript. The array is used
241
+ * in place and becomes part of the constructed object. It is not cloned.
242
+ * If no data is provided, the constructed object will be empty, but still
243
+ * valid.
244
+ * @extends {jspb.Message}
245
+ * @constructor
246
+ */
247
+ proto.wechaty.puppet.TagGroupDeleteRequest = function(opt_data) {
248
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
249
+ };
250
+ goog.inherits(proto.wechaty.puppet.TagGroupDeleteRequest, jspb.Message);
251
+ if (goog.DEBUG && !COMPILED) {
252
+ /**
253
+ * @public
254
+ * @override
255
+ */
256
+ proto.wechaty.puppet.TagGroupDeleteRequest.displayName = 'proto.wechaty.puppet.TagGroupDeleteRequest';
257
+ }
258
+ /**
259
+ * Generated by JsPbCodeGenerator.
260
+ * @param {Array=} opt_data Optional initial data array, typically from a
261
+ * server response, or constructed directly in Javascript. The array is used
262
+ * in place and becomes part of the constructed object. It is not cloned.
263
+ * If no data is provided, the constructed object will be empty, but still
264
+ * valid.
265
+ * @extends {jspb.Message}
266
+ * @constructor
267
+ */
268
+ proto.wechaty.puppet.TagGroupDeleteResponse = function(opt_data) {
269
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
270
+ };
271
+ goog.inherits(proto.wechaty.puppet.TagGroupDeleteResponse, jspb.Message);
272
+ if (goog.DEBUG && !COMPILED) {
273
+ /**
274
+ * @public
275
+ * @override
276
+ */
277
+ proto.wechaty.puppet.TagGroupDeleteResponse.displayName = 'proto.wechaty.puppet.TagGroupDeleteResponse';
278
+ }
279
+ /**
280
+ * Generated by JsPbCodeGenerator.
281
+ * @param {Array=} opt_data Optional initial data array, typically from a
282
+ * server response, or constructed directly in Javascript. The array is used
283
+ * in place and becomes part of the constructed object. It is not cloned.
284
+ * If no data is provided, the constructed object will be empty, but still
285
+ * valid.
286
+ * @extends {jspb.Message}
287
+ * @constructor
288
+ */
289
+ proto.wechaty.puppet.TagTagAddRequest = function(opt_data) {
290
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
291
+ };
292
+ goog.inherits(proto.wechaty.puppet.TagTagAddRequest, jspb.Message);
293
+ if (goog.DEBUG && !COMPILED) {
294
+ /**
295
+ * @public
296
+ * @override
297
+ */
298
+ proto.wechaty.puppet.TagTagAddRequest.displayName = 'proto.wechaty.puppet.TagTagAddRequest';
299
+ }
300
+ /**
301
+ * Generated by JsPbCodeGenerator.
302
+ * @param {Array=} opt_data Optional initial data array, typically from a
303
+ * server response, or constructed directly in Javascript. The array is used
304
+ * in place and becomes part of the constructed object. It is not cloned.
305
+ * If no data is provided, the constructed object will be empty, but still
306
+ * valid.
307
+ * @extends {jspb.Message}
308
+ * @constructor
309
+ */
310
+ proto.wechaty.puppet.TagTagAddResponse = function(opt_data) {
311
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
312
+ };
313
+ goog.inherits(proto.wechaty.puppet.TagTagAddResponse, jspb.Message);
314
+ if (goog.DEBUG && !COMPILED) {
315
+ /**
316
+ * @public
317
+ * @override
318
+ */
319
+ proto.wechaty.puppet.TagTagAddResponse.displayName = 'proto.wechaty.puppet.TagTagAddResponse';
320
+ }
321
+ /**
322
+ * Generated by JsPbCodeGenerator.
323
+ * @param {Array=} opt_data Optional initial data array, typically from a
324
+ * server response, or constructed directly in Javascript. The array is used
325
+ * in place and becomes part of the constructed object. It is not cloned.
326
+ * If no data is provided, the constructed object will be empty, but still
327
+ * valid.
328
+ * @extends {jspb.Message}
329
+ * @constructor
330
+ */
331
+ proto.wechaty.puppet.TagTagDeleteRequest = function(opt_data) {
332
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
333
+ };
334
+ goog.inherits(proto.wechaty.puppet.TagTagDeleteRequest, jspb.Message);
335
+ if (goog.DEBUG && !COMPILED) {
336
+ /**
337
+ * @public
338
+ * @override
339
+ */
340
+ proto.wechaty.puppet.TagTagDeleteRequest.displayName = 'proto.wechaty.puppet.TagTagDeleteRequest';
341
+ }
342
+ /**
343
+ * Generated by JsPbCodeGenerator.
344
+ * @param {Array=} opt_data Optional initial data array, typically from a
345
+ * server response, or constructed directly in Javascript. The array is used
346
+ * in place and becomes part of the constructed object. It is not cloned.
347
+ * If no data is provided, the constructed object will be empty, but still
348
+ * valid.
349
+ * @extends {jspb.Message}
350
+ * @constructor
351
+ */
352
+ proto.wechaty.puppet.TagTagDeleteResponse = function(opt_data) {
102
353
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
103
354
  };
104
- goog.inherits(proto.wechaty.puppet.TagContactRemoveResponse, jspb.Message);
355
+ goog.inherits(proto.wechaty.puppet.TagTagDeleteResponse, jspb.Message);
105
356
  if (goog.DEBUG && !COMPILED) {
106
357
  /**
107
358
  * @public
108
359
  * @override
109
360
  */
110
- proto.wechaty.puppet.TagContactRemoveResponse.displayName = 'proto.wechaty.puppet.TagContactRemoveResponse';
361
+ proto.wechaty.puppet.TagTagDeleteResponse.displayName = 'proto.wechaty.puppet.TagTagDeleteResponse';
111
362
  }
112
363
  /**
113
364
  * Generated by JsPbCodeGenerator.
@@ -119,16 +370,37 @@ if (goog.DEBUG && !COMPILED) {
119
370
  * @extends {jspb.Message}
120
371
  * @constructor
121
372
  */
122
- proto.wechaty.puppet.TagContactDeleteRequest = function(opt_data) {
373
+ proto.wechaty.puppet.TagGroupListRequest = function(opt_data) {
123
374
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
124
375
  };
125
- goog.inherits(proto.wechaty.puppet.TagContactDeleteRequest, jspb.Message);
376
+ goog.inherits(proto.wechaty.puppet.TagGroupListRequest, jspb.Message);
377
+ if (goog.DEBUG && !COMPILED) {
378
+ /**
379
+ * @public
380
+ * @override
381
+ */
382
+ proto.wechaty.puppet.TagGroupListRequest.displayName = 'proto.wechaty.puppet.TagGroupListRequest';
383
+ }
384
+ /**
385
+ * Generated by JsPbCodeGenerator.
386
+ * @param {Array=} opt_data Optional initial data array, typically from a
387
+ * server response, or constructed directly in Javascript. The array is used
388
+ * in place and becomes part of the constructed object. It is not cloned.
389
+ * If no data is provided, the constructed object will be empty, but still
390
+ * valid.
391
+ * @extends {jspb.Message}
392
+ * @constructor
393
+ */
394
+ proto.wechaty.puppet.TagGroupListResponse = function(opt_data) {
395
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.wechaty.puppet.TagGroupListResponse.repeatedFields_, null);
396
+ };
397
+ goog.inherits(proto.wechaty.puppet.TagGroupListResponse, jspb.Message);
126
398
  if (goog.DEBUG && !COMPILED) {
127
399
  /**
128
400
  * @public
129
401
  * @override
130
402
  */
131
- proto.wechaty.puppet.TagContactDeleteRequest.displayName = 'proto.wechaty.puppet.TagContactDeleteRequest';
403
+ proto.wechaty.puppet.TagGroupListResponse.displayName = 'proto.wechaty.puppet.TagGroupListResponse';
132
404
  }
133
405
  /**
134
406
  * Generated by JsPbCodeGenerator.
@@ -140,16 +412,37 @@ if (goog.DEBUG && !COMPILED) {
140
412
  * @extends {jspb.Message}
141
413
  * @constructor
142
414
  */
143
- proto.wechaty.puppet.TagContactDeleteResponse = function(opt_data) {
415
+ proto.wechaty.puppet.TagGroupTagListRequest = function(opt_data) {
144
416
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
145
417
  };
146
- goog.inherits(proto.wechaty.puppet.TagContactDeleteResponse, jspb.Message);
418
+ goog.inherits(proto.wechaty.puppet.TagGroupTagListRequest, jspb.Message);
419
+ if (goog.DEBUG && !COMPILED) {
420
+ /**
421
+ * @public
422
+ * @override
423
+ */
424
+ proto.wechaty.puppet.TagGroupTagListRequest.displayName = 'proto.wechaty.puppet.TagGroupTagListRequest';
425
+ }
426
+ /**
427
+ * Generated by JsPbCodeGenerator.
428
+ * @param {Array=} opt_data Optional initial data array, typically from a
429
+ * server response, or constructed directly in Javascript. The array is used
430
+ * in place and becomes part of the constructed object. It is not cloned.
431
+ * If no data is provided, the constructed object will be empty, but still
432
+ * valid.
433
+ * @extends {jspb.Message}
434
+ * @constructor
435
+ */
436
+ proto.wechaty.puppet.TagGroupTagListResponse = function(opt_data) {
437
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.wechaty.puppet.TagGroupTagListResponse.repeatedFields_, null);
438
+ };
439
+ goog.inherits(proto.wechaty.puppet.TagGroupTagListResponse, jspb.Message);
147
440
  if (goog.DEBUG && !COMPILED) {
148
441
  /**
149
442
  * @public
150
443
  * @override
151
444
  */
152
- proto.wechaty.puppet.TagContactDeleteResponse.displayName = 'proto.wechaty.puppet.TagContactDeleteResponse';
445
+ proto.wechaty.puppet.TagGroupTagListResponse.displayName = 'proto.wechaty.puppet.TagGroupTagListResponse';
153
446
  }
154
447
  /**
155
448
  * Generated by JsPbCodeGenerator.
@@ -161,38 +454,3228 @@ if (goog.DEBUG && !COMPILED) {
161
454
  * @extends {jspb.Message}
162
455
  * @constructor
163
456
  */
164
- proto.wechaty.puppet.TagContactListRequest = function(opt_data) {
457
+ proto.wechaty.puppet.TagTagListRequest = function(opt_data) {
165
458
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
166
459
  };
167
- goog.inherits(proto.wechaty.puppet.TagContactListRequest, jspb.Message);
460
+ goog.inherits(proto.wechaty.puppet.TagTagListRequest, jspb.Message);
461
+ if (goog.DEBUG && !COMPILED) {
462
+ /**
463
+ * @public
464
+ * @override
465
+ */
466
+ proto.wechaty.puppet.TagTagListRequest.displayName = 'proto.wechaty.puppet.TagTagListRequest';
467
+ }
468
+ /**
469
+ * Generated by JsPbCodeGenerator.
470
+ * @param {Array=} opt_data Optional initial data array, typically from a
471
+ * server response, or constructed directly in Javascript. The array is used
472
+ * in place and becomes part of the constructed object. It is not cloned.
473
+ * If no data is provided, the constructed object will be empty, but still
474
+ * valid.
475
+ * @extends {jspb.Message}
476
+ * @constructor
477
+ */
478
+ proto.wechaty.puppet.TagTagListResponse = function(opt_data) {
479
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.wechaty.puppet.TagTagListResponse.repeatedFields_, null);
480
+ };
481
+ goog.inherits(proto.wechaty.puppet.TagTagListResponse, jspb.Message);
168
482
  if (goog.DEBUG && !COMPILED) {
169
483
  /**
170
484
  * @public
171
485
  * @override
172
486
  */
173
- proto.wechaty.puppet.TagContactListRequest.displayName = 'proto.wechaty.puppet.TagContactListRequest';
487
+ proto.wechaty.puppet.TagTagListResponse.displayName = 'proto.wechaty.puppet.TagTagListResponse';
174
488
  }
175
489
  /**
176
- * Generated by JsPbCodeGenerator.
177
- * @param {Array=} opt_data Optional initial data array, typically from a
178
- * server response, or constructed directly in Javascript. The array is used
179
- * in place and becomes part of the constructed object. It is not cloned.
180
- * If no data is provided, the constructed object will be empty, but still
181
- * valid.
182
- * @extends {jspb.Message}
183
- * @constructor
490
+ * Generated by JsPbCodeGenerator.
491
+ * @param {Array=} opt_data Optional initial data array, typically from a
492
+ * server response, or constructed directly in Javascript. The array is used
493
+ * in place and becomes part of the constructed object. It is not cloned.
494
+ * If no data is provided, the constructed object will be empty, but still
495
+ * valid.
496
+ * @extends {jspb.Message}
497
+ * @constructor
498
+ */
499
+ proto.wechaty.puppet.TagContactTagListRequest = function(opt_data) {
500
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
501
+ };
502
+ goog.inherits(proto.wechaty.puppet.TagContactTagListRequest, jspb.Message);
503
+ if (goog.DEBUG && !COMPILED) {
504
+ /**
505
+ * @public
506
+ * @override
507
+ */
508
+ proto.wechaty.puppet.TagContactTagListRequest.displayName = 'proto.wechaty.puppet.TagContactTagListRequest';
509
+ }
510
+ /**
511
+ * Generated by JsPbCodeGenerator.
512
+ * @param {Array=} opt_data Optional initial data array, typically from a
513
+ * server response, or constructed directly in Javascript. The array is used
514
+ * in place and becomes part of the constructed object. It is not cloned.
515
+ * If no data is provided, the constructed object will be empty, but still
516
+ * valid.
517
+ * @extends {jspb.Message}
518
+ * @constructor
519
+ */
520
+ proto.wechaty.puppet.TagContactTagListResponse = function(opt_data) {
521
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.wechaty.puppet.TagContactTagListResponse.repeatedFields_, null);
522
+ };
523
+ goog.inherits(proto.wechaty.puppet.TagContactTagListResponse, jspb.Message);
524
+ if (goog.DEBUG && !COMPILED) {
525
+ /**
526
+ * @public
527
+ * @override
528
+ */
529
+ proto.wechaty.puppet.TagContactTagListResponse.displayName = 'proto.wechaty.puppet.TagContactTagListResponse';
530
+ }
531
+ /**
532
+ * Generated by JsPbCodeGenerator.
533
+ * @param {Array=} opt_data Optional initial data array, typically from a
534
+ * server response, or constructed directly in Javascript. The array is used
535
+ * in place and becomes part of the constructed object. It is not cloned.
536
+ * If no data is provided, the constructed object will be empty, but still
537
+ * valid.
538
+ * @extends {jspb.Message}
539
+ * @constructor
540
+ */
541
+ proto.wechaty.puppet.TagTagContactListRequest = function(opt_data) {
542
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
543
+ };
544
+ goog.inherits(proto.wechaty.puppet.TagTagContactListRequest, jspb.Message);
545
+ if (goog.DEBUG && !COMPILED) {
546
+ /**
547
+ * @public
548
+ * @override
549
+ */
550
+ proto.wechaty.puppet.TagTagContactListRequest.displayName = 'proto.wechaty.puppet.TagTagContactListRequest';
551
+ }
552
+ /**
553
+ * Generated by JsPbCodeGenerator.
554
+ * @param {Array=} opt_data Optional initial data array, typically from a
555
+ * server response, or constructed directly in Javascript. The array is used
556
+ * in place and becomes part of the constructed object. It is not cloned.
557
+ * If no data is provided, the constructed object will be empty, but still
558
+ * valid.
559
+ * @extends {jspb.Message}
560
+ * @constructor
561
+ */
562
+ proto.wechaty.puppet.TagTagContactListResponse = function(opt_data) {
563
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.wechaty.puppet.TagTagContactListResponse.repeatedFields_, null);
564
+ };
565
+ goog.inherits(proto.wechaty.puppet.TagTagContactListResponse, jspb.Message);
566
+ if (goog.DEBUG && !COMPILED) {
567
+ /**
568
+ * @public
569
+ * @override
570
+ */
571
+ proto.wechaty.puppet.TagTagContactListResponse.displayName = 'proto.wechaty.puppet.TagTagContactListResponse';
572
+ }
573
+ /**
574
+ * Generated by JsPbCodeGenerator.
575
+ * @param {Array=} opt_data Optional initial data array, typically from a
576
+ * server response, or constructed directly in Javascript. The array is used
577
+ * in place and becomes part of the constructed object. It is not cloned.
578
+ * If no data is provided, the constructed object will be empty, but still
579
+ * valid.
580
+ * @extends {jspb.Message}
581
+ * @constructor
582
+ */
583
+ proto.wechaty.puppet.TagGroupPayloadRequest = function(opt_data) {
584
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
585
+ };
586
+ goog.inherits(proto.wechaty.puppet.TagGroupPayloadRequest, jspb.Message);
587
+ if (goog.DEBUG && !COMPILED) {
588
+ /**
589
+ * @public
590
+ * @override
591
+ */
592
+ proto.wechaty.puppet.TagGroupPayloadRequest.displayName = 'proto.wechaty.puppet.TagGroupPayloadRequest';
593
+ }
594
+ /**
595
+ * Generated by JsPbCodeGenerator.
596
+ * @param {Array=} opt_data Optional initial data array, typically from a
597
+ * server response, or constructed directly in Javascript. The array is used
598
+ * in place and becomes part of the constructed object. It is not cloned.
599
+ * If no data is provided, the constructed object will be empty, but still
600
+ * valid.
601
+ * @extends {jspb.Message}
602
+ * @constructor
603
+ */
604
+ proto.wechaty.puppet.TagGroupPayloadResponse = function(opt_data) {
605
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
606
+ };
607
+ goog.inherits(proto.wechaty.puppet.TagGroupPayloadResponse, jspb.Message);
608
+ if (goog.DEBUG && !COMPILED) {
609
+ /**
610
+ * @public
611
+ * @override
612
+ */
613
+ proto.wechaty.puppet.TagGroupPayloadResponse.displayName = 'proto.wechaty.puppet.TagGroupPayloadResponse';
614
+ }
615
+ /**
616
+ * Generated by JsPbCodeGenerator.
617
+ * @param {Array=} opt_data Optional initial data array, typically from a
618
+ * server response, or constructed directly in Javascript. The array is used
619
+ * in place and becomes part of the constructed object. It is not cloned.
620
+ * If no data is provided, the constructed object will be empty, but still
621
+ * valid.
622
+ * @extends {jspb.Message}
623
+ * @constructor
624
+ */
625
+ proto.wechaty.puppet.TagPayloadRequest = function(opt_data) {
626
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
627
+ };
628
+ goog.inherits(proto.wechaty.puppet.TagPayloadRequest, jspb.Message);
629
+ if (goog.DEBUG && !COMPILED) {
630
+ /**
631
+ * @public
632
+ * @override
633
+ */
634
+ proto.wechaty.puppet.TagPayloadRequest.displayName = 'proto.wechaty.puppet.TagPayloadRequest';
635
+ }
636
+ /**
637
+ * Generated by JsPbCodeGenerator.
638
+ * @param {Array=} opt_data Optional initial data array, typically from a
639
+ * server response, or constructed directly in Javascript. The array is used
640
+ * in place and becomes part of the constructed object. It is not cloned.
641
+ * If no data is provided, the constructed object will be empty, but still
642
+ * valid.
643
+ * @extends {jspb.Message}
644
+ * @constructor
645
+ */
646
+ proto.wechaty.puppet.TagPayloadResponse = function(opt_data) {
647
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
648
+ };
649
+ goog.inherits(proto.wechaty.puppet.TagPayloadResponse, jspb.Message);
650
+ if (goog.DEBUG && !COMPILED) {
651
+ /**
652
+ * @public
653
+ * @override
654
+ */
655
+ proto.wechaty.puppet.TagPayloadResponse.displayName = 'proto.wechaty.puppet.TagPayloadResponse';
656
+ }
657
+
658
+
659
+
660
+ if (jspb.Message.GENERATE_TO_OBJECT) {
661
+ /**
662
+ * Creates an object representation of this proto.
663
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
664
+ * Optional fields that are not set will be set to undefined.
665
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
666
+ * For the list of reserved names please see:
667
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
668
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
669
+ * JSPB instance for transitional soy proto support:
670
+ * http://goto/soy-param-migration
671
+ * @return {!Object}
672
+ */
673
+ proto.wechaty.puppet.TagPayload.prototype.toObject = function(opt_includeInstance) {
674
+ return proto.wechaty.puppet.TagPayload.toObject(opt_includeInstance, this);
675
+ };
676
+
677
+
678
+ /**
679
+ * Static version of the {@see toObject} method.
680
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
681
+ * the JSPB instance for transitional soy proto support:
682
+ * http://goto/soy-param-migration
683
+ * @param {!proto.wechaty.puppet.TagPayload} msg The msg instance to transform.
684
+ * @return {!Object}
685
+ * @suppress {unusedLocalVariables} f is only used for nested messages
686
+ */
687
+ proto.wechaty.puppet.TagPayload.toObject = function(includeInstance, msg) {
688
+ var f, obj = {
689
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
690
+ name: jspb.Message.getFieldWithDefault(msg, 2, ""),
691
+ groupId: jspb.Message.getFieldWithDefault(msg, 3, ""),
692
+ type: jspb.Message.getFieldWithDefault(msg, 4, 0)
693
+ };
694
+
695
+ if (includeInstance) {
696
+ obj.$jspbMessageInstance = msg;
697
+ }
698
+ return obj;
699
+ };
700
+ }
701
+
702
+
703
+ /**
704
+ * Deserializes binary data (in protobuf wire format).
705
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
706
+ * @return {!proto.wechaty.puppet.TagPayload}
707
+ */
708
+ proto.wechaty.puppet.TagPayload.deserializeBinary = function(bytes) {
709
+ var reader = new jspb.BinaryReader(bytes);
710
+ var msg = new proto.wechaty.puppet.TagPayload;
711
+ return proto.wechaty.puppet.TagPayload.deserializeBinaryFromReader(msg, reader);
712
+ };
713
+
714
+
715
+ /**
716
+ * Deserializes binary data (in protobuf wire format) from the
717
+ * given reader into the given message object.
718
+ * @param {!proto.wechaty.puppet.TagPayload} msg The message object to deserialize into.
719
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
720
+ * @return {!proto.wechaty.puppet.TagPayload}
721
+ */
722
+ proto.wechaty.puppet.TagPayload.deserializeBinaryFromReader = function(msg, reader) {
723
+ while (reader.nextField()) {
724
+ if (reader.isEndGroup()) {
725
+ break;
726
+ }
727
+ var field = reader.getFieldNumber();
728
+ switch (field) {
729
+ case 1:
730
+ var value = /** @type {string} */ (reader.readString());
731
+ msg.setId(value);
732
+ break;
733
+ case 2:
734
+ var value = /** @type {string} */ (reader.readString());
735
+ msg.setName(value);
736
+ break;
737
+ case 3:
738
+ var value = /** @type {string} */ (reader.readString());
739
+ msg.setGroupId(value);
740
+ break;
741
+ case 4:
742
+ var value = /** @type {!proto.wechaty.puppet.TagType} */ (reader.readEnum());
743
+ msg.setType(value);
744
+ break;
745
+ default:
746
+ reader.skipField();
747
+ break;
748
+ }
749
+ }
750
+ return msg;
751
+ };
752
+
753
+
754
+ /**
755
+ * Serializes the message to binary data (in protobuf wire format).
756
+ * @return {!Uint8Array}
757
+ */
758
+ proto.wechaty.puppet.TagPayload.prototype.serializeBinary = function() {
759
+ var writer = new jspb.BinaryWriter();
760
+ proto.wechaty.puppet.TagPayload.serializeBinaryToWriter(this, writer);
761
+ return writer.getResultBuffer();
762
+ };
763
+
764
+
765
+ /**
766
+ * Serializes the given message to binary data (in protobuf wire
767
+ * format), writing to the given BinaryWriter.
768
+ * @param {!proto.wechaty.puppet.TagPayload} message
769
+ * @param {!jspb.BinaryWriter} writer
770
+ * @suppress {unusedLocalVariables} f is only used for nested messages
771
+ */
772
+ proto.wechaty.puppet.TagPayload.serializeBinaryToWriter = function(message, writer) {
773
+ var f = undefined;
774
+ f = message.getId();
775
+ if (f.length > 0) {
776
+ writer.writeString(
777
+ 1,
778
+ f
779
+ );
780
+ }
781
+ f = message.getName();
782
+ if (f.length > 0) {
783
+ writer.writeString(
784
+ 2,
785
+ f
786
+ );
787
+ }
788
+ f = message.getGroupId();
789
+ if (f.length > 0) {
790
+ writer.writeString(
791
+ 3,
792
+ f
793
+ );
794
+ }
795
+ f = message.getType();
796
+ if (f !== 0.0) {
797
+ writer.writeEnum(
798
+ 4,
799
+ f
800
+ );
801
+ }
802
+ };
803
+
804
+
805
+ /**
806
+ * optional string id = 1;
807
+ * @return {string}
808
+ */
809
+ proto.wechaty.puppet.TagPayload.prototype.getId = function() {
810
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
811
+ };
812
+
813
+
814
+ /**
815
+ * @param {string} value
816
+ * @return {!proto.wechaty.puppet.TagPayload} returns this
817
+ */
818
+ proto.wechaty.puppet.TagPayload.prototype.setId = function(value) {
819
+ return jspb.Message.setProto3StringField(this, 1, value);
820
+ };
821
+
822
+
823
+ /**
824
+ * optional string name = 2;
825
+ * @return {string}
826
+ */
827
+ proto.wechaty.puppet.TagPayload.prototype.getName = function() {
828
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
829
+ };
830
+
831
+
832
+ /**
833
+ * @param {string} value
834
+ * @return {!proto.wechaty.puppet.TagPayload} returns this
835
+ */
836
+ proto.wechaty.puppet.TagPayload.prototype.setName = function(value) {
837
+ return jspb.Message.setProto3StringField(this, 2, value);
838
+ };
839
+
840
+
841
+ /**
842
+ * optional string group_id = 3;
843
+ * @return {string}
844
+ */
845
+ proto.wechaty.puppet.TagPayload.prototype.getGroupId = function() {
846
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
847
+ };
848
+
849
+
850
+ /**
851
+ * @param {string} value
852
+ * @return {!proto.wechaty.puppet.TagPayload} returns this
853
+ */
854
+ proto.wechaty.puppet.TagPayload.prototype.setGroupId = function(value) {
855
+ return jspb.Message.setProto3StringField(this, 3, value);
856
+ };
857
+
858
+
859
+ /**
860
+ * optional TagType type = 4;
861
+ * @return {!proto.wechaty.puppet.TagType}
862
+ */
863
+ proto.wechaty.puppet.TagPayload.prototype.getType = function() {
864
+ return /** @type {!proto.wechaty.puppet.TagType} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
865
+ };
866
+
867
+
868
+ /**
869
+ * @param {!proto.wechaty.puppet.TagType} value
870
+ * @return {!proto.wechaty.puppet.TagPayload} returns this
871
+ */
872
+ proto.wechaty.puppet.TagPayload.prototype.setType = function(value) {
873
+ return jspb.Message.setProto3EnumField(this, 4, value);
874
+ };
875
+
876
+
877
+
878
+
879
+
880
+ if (jspb.Message.GENERATE_TO_OBJECT) {
881
+ /**
882
+ * Creates an object representation of this proto.
883
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
884
+ * Optional fields that are not set will be set to undefined.
885
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
886
+ * For the list of reserved names please see:
887
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
888
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
889
+ * JSPB instance for transitional soy proto support:
890
+ * http://goto/soy-param-migration
891
+ * @return {!Object}
892
+ */
893
+ proto.wechaty.puppet.TagIdentifier.prototype.toObject = function(opt_includeInstance) {
894
+ return proto.wechaty.puppet.TagIdentifier.toObject(opt_includeInstance, this);
895
+ };
896
+
897
+
898
+ /**
899
+ * Static version of the {@see toObject} method.
900
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
901
+ * the JSPB instance for transitional soy proto support:
902
+ * http://goto/soy-param-migration
903
+ * @param {!proto.wechaty.puppet.TagIdentifier} msg The msg instance to transform.
904
+ * @return {!Object}
905
+ * @suppress {unusedLocalVariables} f is only used for nested messages
906
+ */
907
+ proto.wechaty.puppet.TagIdentifier.toObject = function(includeInstance, msg) {
908
+ var f, obj = {
909
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
910
+ groupId: jspb.Message.getFieldWithDefault(msg, 2, "")
911
+ };
912
+
913
+ if (includeInstance) {
914
+ obj.$jspbMessageInstance = msg;
915
+ }
916
+ return obj;
917
+ };
918
+ }
919
+
920
+
921
+ /**
922
+ * Deserializes binary data (in protobuf wire format).
923
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
924
+ * @return {!proto.wechaty.puppet.TagIdentifier}
925
+ */
926
+ proto.wechaty.puppet.TagIdentifier.deserializeBinary = function(bytes) {
927
+ var reader = new jspb.BinaryReader(bytes);
928
+ var msg = new proto.wechaty.puppet.TagIdentifier;
929
+ return proto.wechaty.puppet.TagIdentifier.deserializeBinaryFromReader(msg, reader);
930
+ };
931
+
932
+
933
+ /**
934
+ * Deserializes binary data (in protobuf wire format) from the
935
+ * given reader into the given message object.
936
+ * @param {!proto.wechaty.puppet.TagIdentifier} msg The message object to deserialize into.
937
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
938
+ * @return {!proto.wechaty.puppet.TagIdentifier}
939
+ */
940
+ proto.wechaty.puppet.TagIdentifier.deserializeBinaryFromReader = function(msg, reader) {
941
+ while (reader.nextField()) {
942
+ if (reader.isEndGroup()) {
943
+ break;
944
+ }
945
+ var field = reader.getFieldNumber();
946
+ switch (field) {
947
+ case 1:
948
+ var value = /** @type {string} */ (reader.readString());
949
+ msg.setId(value);
950
+ break;
951
+ case 2:
952
+ var value = /** @type {string} */ (reader.readString());
953
+ msg.setGroupId(value);
954
+ break;
955
+ default:
956
+ reader.skipField();
957
+ break;
958
+ }
959
+ }
960
+ return msg;
961
+ };
962
+
963
+
964
+ /**
965
+ * Serializes the message to binary data (in protobuf wire format).
966
+ * @return {!Uint8Array}
967
+ */
968
+ proto.wechaty.puppet.TagIdentifier.prototype.serializeBinary = function() {
969
+ var writer = new jspb.BinaryWriter();
970
+ proto.wechaty.puppet.TagIdentifier.serializeBinaryToWriter(this, writer);
971
+ return writer.getResultBuffer();
972
+ };
973
+
974
+
975
+ /**
976
+ * Serializes the given message to binary data (in protobuf wire
977
+ * format), writing to the given BinaryWriter.
978
+ * @param {!proto.wechaty.puppet.TagIdentifier} message
979
+ * @param {!jspb.BinaryWriter} writer
980
+ * @suppress {unusedLocalVariables} f is only used for nested messages
981
+ */
982
+ proto.wechaty.puppet.TagIdentifier.serializeBinaryToWriter = function(message, writer) {
983
+ var f = undefined;
984
+ f = message.getId();
985
+ if (f.length > 0) {
986
+ writer.writeString(
987
+ 1,
988
+ f
989
+ );
990
+ }
991
+ f = message.getGroupId();
992
+ if (f.length > 0) {
993
+ writer.writeString(
994
+ 2,
995
+ f
996
+ );
997
+ }
998
+ };
999
+
1000
+
1001
+ /**
1002
+ * optional string id = 1;
1003
+ * @return {string}
1004
+ */
1005
+ proto.wechaty.puppet.TagIdentifier.prototype.getId = function() {
1006
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1007
+ };
1008
+
1009
+
1010
+ /**
1011
+ * @param {string} value
1012
+ * @return {!proto.wechaty.puppet.TagIdentifier} returns this
1013
+ */
1014
+ proto.wechaty.puppet.TagIdentifier.prototype.setId = function(value) {
1015
+ return jspb.Message.setProto3StringField(this, 1, value);
1016
+ };
1017
+
1018
+
1019
+ /**
1020
+ * optional string group_id = 2;
1021
+ * @return {string}
1022
+ */
1023
+ proto.wechaty.puppet.TagIdentifier.prototype.getGroupId = function() {
1024
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1025
+ };
1026
+
1027
+
1028
+ /**
1029
+ * @param {string} value
1030
+ * @return {!proto.wechaty.puppet.TagIdentifier} returns this
1031
+ */
1032
+ proto.wechaty.puppet.TagIdentifier.prototype.setGroupId = function(value) {
1033
+ return jspb.Message.setProto3StringField(this, 2, value);
1034
+ };
1035
+
1036
+
1037
+
1038
+
1039
+
1040
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1041
+ /**
1042
+ * Creates an object representation of this proto.
1043
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1044
+ * Optional fields that are not set will be set to undefined.
1045
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1046
+ * For the list of reserved names please see:
1047
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1048
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1049
+ * JSPB instance for transitional soy proto support:
1050
+ * http://goto/soy-param-migration
1051
+ * @return {!Object}
1052
+ */
1053
+ proto.wechaty.puppet.TagGroupPayload.prototype.toObject = function(opt_includeInstance) {
1054
+ return proto.wechaty.puppet.TagGroupPayload.toObject(opt_includeInstance, this);
1055
+ };
1056
+
1057
+
1058
+ /**
1059
+ * Static version of the {@see toObject} method.
1060
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1061
+ * the JSPB instance for transitional soy proto support:
1062
+ * http://goto/soy-param-migration
1063
+ * @param {!proto.wechaty.puppet.TagGroupPayload} msg The msg instance to transform.
1064
+ * @return {!Object}
1065
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1066
+ */
1067
+ proto.wechaty.puppet.TagGroupPayload.toObject = function(includeInstance, msg) {
1068
+ var f, obj = {
1069
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
1070
+ name: jspb.Message.getFieldWithDefault(msg, 2, "")
1071
+ };
1072
+
1073
+ if (includeInstance) {
1074
+ obj.$jspbMessageInstance = msg;
1075
+ }
1076
+ return obj;
1077
+ };
1078
+ }
1079
+
1080
+
1081
+ /**
1082
+ * Deserializes binary data (in protobuf wire format).
1083
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1084
+ * @return {!proto.wechaty.puppet.TagGroupPayload}
1085
+ */
1086
+ proto.wechaty.puppet.TagGroupPayload.deserializeBinary = function(bytes) {
1087
+ var reader = new jspb.BinaryReader(bytes);
1088
+ var msg = new proto.wechaty.puppet.TagGroupPayload;
1089
+ return proto.wechaty.puppet.TagGroupPayload.deserializeBinaryFromReader(msg, reader);
1090
+ };
1091
+
1092
+
1093
+ /**
1094
+ * Deserializes binary data (in protobuf wire format) from the
1095
+ * given reader into the given message object.
1096
+ * @param {!proto.wechaty.puppet.TagGroupPayload} msg The message object to deserialize into.
1097
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1098
+ * @return {!proto.wechaty.puppet.TagGroupPayload}
1099
+ */
1100
+ proto.wechaty.puppet.TagGroupPayload.deserializeBinaryFromReader = function(msg, reader) {
1101
+ while (reader.nextField()) {
1102
+ if (reader.isEndGroup()) {
1103
+ break;
1104
+ }
1105
+ var field = reader.getFieldNumber();
1106
+ switch (field) {
1107
+ case 1:
1108
+ var value = /** @type {string} */ (reader.readString());
1109
+ msg.setId(value);
1110
+ break;
1111
+ case 2:
1112
+ var value = /** @type {string} */ (reader.readString());
1113
+ msg.setName(value);
1114
+ break;
1115
+ default:
1116
+ reader.skipField();
1117
+ break;
1118
+ }
1119
+ }
1120
+ return msg;
1121
+ };
1122
+
1123
+
1124
+ /**
1125
+ * Serializes the message to binary data (in protobuf wire format).
1126
+ * @return {!Uint8Array}
1127
+ */
1128
+ proto.wechaty.puppet.TagGroupPayload.prototype.serializeBinary = function() {
1129
+ var writer = new jspb.BinaryWriter();
1130
+ proto.wechaty.puppet.TagGroupPayload.serializeBinaryToWriter(this, writer);
1131
+ return writer.getResultBuffer();
1132
+ };
1133
+
1134
+
1135
+ /**
1136
+ * Serializes the given message to binary data (in protobuf wire
1137
+ * format), writing to the given BinaryWriter.
1138
+ * @param {!proto.wechaty.puppet.TagGroupPayload} message
1139
+ * @param {!jspb.BinaryWriter} writer
1140
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1141
+ */
1142
+ proto.wechaty.puppet.TagGroupPayload.serializeBinaryToWriter = function(message, writer) {
1143
+ var f = undefined;
1144
+ f = message.getId();
1145
+ if (f.length > 0) {
1146
+ writer.writeString(
1147
+ 1,
1148
+ f
1149
+ );
1150
+ }
1151
+ f = message.getName();
1152
+ if (f.length > 0) {
1153
+ writer.writeString(
1154
+ 2,
1155
+ f
1156
+ );
1157
+ }
1158
+ };
1159
+
1160
+
1161
+ /**
1162
+ * optional string id = 1;
1163
+ * @return {string}
1164
+ */
1165
+ proto.wechaty.puppet.TagGroupPayload.prototype.getId = function() {
1166
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1167
+ };
1168
+
1169
+
1170
+ /**
1171
+ * @param {string} value
1172
+ * @return {!proto.wechaty.puppet.TagGroupPayload} returns this
1173
+ */
1174
+ proto.wechaty.puppet.TagGroupPayload.prototype.setId = function(value) {
1175
+ return jspb.Message.setProto3StringField(this, 1, value);
1176
+ };
1177
+
1178
+
1179
+ /**
1180
+ * optional string name = 2;
1181
+ * @return {string}
1182
+ */
1183
+ proto.wechaty.puppet.TagGroupPayload.prototype.getName = function() {
1184
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1185
+ };
1186
+
1187
+
1188
+ /**
1189
+ * @param {string} value
1190
+ * @return {!proto.wechaty.puppet.TagGroupPayload} returns this
1191
+ */
1192
+ proto.wechaty.puppet.TagGroupPayload.prototype.setName = function(value) {
1193
+ return jspb.Message.setProto3StringField(this, 2, value);
1194
+ };
1195
+
1196
+
1197
+
1198
+ /**
1199
+ * List of repeated fields within this message type.
1200
+ * @private {!Array<number>}
1201
+ * @const
1202
+ */
1203
+ proto.wechaty.puppet.TagContactTagAddRequest.repeatedFields_ = [1,2];
1204
+
1205
+
1206
+
1207
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1208
+ /**
1209
+ * Creates an object representation of this proto.
1210
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1211
+ * Optional fields that are not set will be set to undefined.
1212
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1213
+ * For the list of reserved names please see:
1214
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1215
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1216
+ * JSPB instance for transitional soy proto support:
1217
+ * http://goto/soy-param-migration
1218
+ * @return {!Object}
1219
+ */
1220
+ proto.wechaty.puppet.TagContactTagAddRequest.prototype.toObject = function(opt_includeInstance) {
1221
+ return proto.wechaty.puppet.TagContactTagAddRequest.toObject(opt_includeInstance, this);
1222
+ };
1223
+
1224
+
1225
+ /**
1226
+ * Static version of the {@see toObject} method.
1227
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1228
+ * the JSPB instance for transitional soy proto support:
1229
+ * http://goto/soy-param-migration
1230
+ * @param {!proto.wechaty.puppet.TagContactTagAddRequest} msg The msg instance to transform.
1231
+ * @return {!Object}
1232
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1233
+ */
1234
+ proto.wechaty.puppet.TagContactTagAddRequest.toObject = function(includeInstance, msg) {
1235
+ var f, obj = {
1236
+ tagsList: jspb.Message.toObjectList(msg.getTagsList(),
1237
+ proto.wechaty.puppet.TagIdentifier.toObject, includeInstance),
1238
+ contactIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
1239
+ };
1240
+
1241
+ if (includeInstance) {
1242
+ obj.$jspbMessageInstance = msg;
1243
+ }
1244
+ return obj;
1245
+ };
1246
+ }
1247
+
1248
+
1249
+ /**
1250
+ * Deserializes binary data (in protobuf wire format).
1251
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1252
+ * @return {!proto.wechaty.puppet.TagContactTagAddRequest}
1253
+ */
1254
+ proto.wechaty.puppet.TagContactTagAddRequest.deserializeBinary = function(bytes) {
1255
+ var reader = new jspb.BinaryReader(bytes);
1256
+ var msg = new proto.wechaty.puppet.TagContactTagAddRequest;
1257
+ return proto.wechaty.puppet.TagContactTagAddRequest.deserializeBinaryFromReader(msg, reader);
1258
+ };
1259
+
1260
+
1261
+ /**
1262
+ * Deserializes binary data (in protobuf wire format) from the
1263
+ * given reader into the given message object.
1264
+ * @param {!proto.wechaty.puppet.TagContactTagAddRequest} msg The message object to deserialize into.
1265
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1266
+ * @return {!proto.wechaty.puppet.TagContactTagAddRequest}
1267
+ */
1268
+ proto.wechaty.puppet.TagContactTagAddRequest.deserializeBinaryFromReader = function(msg, reader) {
1269
+ while (reader.nextField()) {
1270
+ if (reader.isEndGroup()) {
1271
+ break;
1272
+ }
1273
+ var field = reader.getFieldNumber();
1274
+ switch (field) {
1275
+ case 1:
1276
+ var value = new proto.wechaty.puppet.TagIdentifier;
1277
+ reader.readMessage(value,proto.wechaty.puppet.TagIdentifier.deserializeBinaryFromReader);
1278
+ msg.addTags(value);
1279
+ break;
1280
+ case 2:
1281
+ var value = /** @type {string} */ (reader.readString());
1282
+ msg.addContactIds(value);
1283
+ break;
1284
+ default:
1285
+ reader.skipField();
1286
+ break;
1287
+ }
1288
+ }
1289
+ return msg;
1290
+ };
1291
+
1292
+
1293
+ /**
1294
+ * Serializes the message to binary data (in protobuf wire format).
1295
+ * @return {!Uint8Array}
1296
+ */
1297
+ proto.wechaty.puppet.TagContactTagAddRequest.prototype.serializeBinary = function() {
1298
+ var writer = new jspb.BinaryWriter();
1299
+ proto.wechaty.puppet.TagContactTagAddRequest.serializeBinaryToWriter(this, writer);
1300
+ return writer.getResultBuffer();
1301
+ };
1302
+
1303
+
1304
+ /**
1305
+ * Serializes the given message to binary data (in protobuf wire
1306
+ * format), writing to the given BinaryWriter.
1307
+ * @param {!proto.wechaty.puppet.TagContactTagAddRequest} message
1308
+ * @param {!jspb.BinaryWriter} writer
1309
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1310
+ */
1311
+ proto.wechaty.puppet.TagContactTagAddRequest.serializeBinaryToWriter = function(message, writer) {
1312
+ var f = undefined;
1313
+ f = message.getTagsList();
1314
+ if (f.length > 0) {
1315
+ writer.writeRepeatedMessage(
1316
+ 1,
1317
+ f,
1318
+ proto.wechaty.puppet.TagIdentifier.serializeBinaryToWriter
1319
+ );
1320
+ }
1321
+ f = message.getContactIdsList();
1322
+ if (f.length > 0) {
1323
+ writer.writeRepeatedString(
1324
+ 2,
1325
+ f
1326
+ );
1327
+ }
1328
+ };
1329
+
1330
+
1331
+ /**
1332
+ * repeated TagIdentifier tags = 1;
1333
+ * @return {!Array<!proto.wechaty.puppet.TagIdentifier>}
1334
+ */
1335
+ proto.wechaty.puppet.TagContactTagAddRequest.prototype.getTagsList = function() {
1336
+ return /** @type{!Array<!proto.wechaty.puppet.TagIdentifier>} */ (
1337
+ jspb.Message.getRepeatedWrapperField(this, proto.wechaty.puppet.TagIdentifier, 1));
1338
+ };
1339
+
1340
+
1341
+ /**
1342
+ * @param {!Array<!proto.wechaty.puppet.TagIdentifier>} value
1343
+ * @return {!proto.wechaty.puppet.TagContactTagAddRequest} returns this
1344
+ */
1345
+ proto.wechaty.puppet.TagContactTagAddRequest.prototype.setTagsList = function(value) {
1346
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
1347
+ };
1348
+
1349
+
1350
+ /**
1351
+ * @param {!proto.wechaty.puppet.TagIdentifier=} opt_value
1352
+ * @param {number=} opt_index
1353
+ * @return {!proto.wechaty.puppet.TagIdentifier}
1354
+ */
1355
+ proto.wechaty.puppet.TagContactTagAddRequest.prototype.addTags = function(opt_value, opt_index) {
1356
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.wechaty.puppet.TagIdentifier, opt_index);
1357
+ };
1358
+
1359
+
1360
+ /**
1361
+ * Clears the list making it empty but non-null.
1362
+ * @return {!proto.wechaty.puppet.TagContactTagAddRequest} returns this
1363
+ */
1364
+ proto.wechaty.puppet.TagContactTagAddRequest.prototype.clearTagsList = function() {
1365
+ return this.setTagsList([]);
1366
+ };
1367
+
1368
+
1369
+ /**
1370
+ * repeated string contact_ids = 2;
1371
+ * @return {!Array<string>}
1372
+ */
1373
+ proto.wechaty.puppet.TagContactTagAddRequest.prototype.getContactIdsList = function() {
1374
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
1375
+ };
1376
+
1377
+
1378
+ /**
1379
+ * @param {!Array<string>} value
1380
+ * @return {!proto.wechaty.puppet.TagContactTagAddRequest} returns this
1381
+ */
1382
+ proto.wechaty.puppet.TagContactTagAddRequest.prototype.setContactIdsList = function(value) {
1383
+ return jspb.Message.setField(this, 2, value || []);
1384
+ };
1385
+
1386
+
1387
+ /**
1388
+ * @param {string} value
1389
+ * @param {number=} opt_index
1390
+ * @return {!proto.wechaty.puppet.TagContactTagAddRequest} returns this
1391
+ */
1392
+ proto.wechaty.puppet.TagContactTagAddRequest.prototype.addContactIds = function(value, opt_index) {
1393
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
1394
+ };
1395
+
1396
+
1397
+ /**
1398
+ * Clears the list making it empty but non-null.
1399
+ * @return {!proto.wechaty.puppet.TagContactTagAddRequest} returns this
1400
+ */
1401
+ proto.wechaty.puppet.TagContactTagAddRequest.prototype.clearContactIdsList = function() {
1402
+ return this.setContactIdsList([]);
1403
+ };
1404
+
1405
+
1406
+
1407
+
1408
+
1409
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1410
+ /**
1411
+ * Creates an object representation of this proto.
1412
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1413
+ * Optional fields that are not set will be set to undefined.
1414
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1415
+ * For the list of reserved names please see:
1416
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1417
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1418
+ * JSPB instance for transitional soy proto support:
1419
+ * http://goto/soy-param-migration
1420
+ * @return {!Object}
1421
+ */
1422
+ proto.wechaty.puppet.TagContactTagAddResponse.prototype.toObject = function(opt_includeInstance) {
1423
+ return proto.wechaty.puppet.TagContactTagAddResponse.toObject(opt_includeInstance, this);
1424
+ };
1425
+
1426
+
1427
+ /**
1428
+ * Static version of the {@see toObject} method.
1429
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1430
+ * the JSPB instance for transitional soy proto support:
1431
+ * http://goto/soy-param-migration
1432
+ * @param {!proto.wechaty.puppet.TagContactTagAddResponse} msg The msg instance to transform.
1433
+ * @return {!Object}
1434
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1435
+ */
1436
+ proto.wechaty.puppet.TagContactTagAddResponse.toObject = function(includeInstance, msg) {
1437
+ var f, obj = {
1438
+
1439
+ };
1440
+
1441
+ if (includeInstance) {
1442
+ obj.$jspbMessageInstance = msg;
1443
+ }
1444
+ return obj;
1445
+ };
1446
+ }
1447
+
1448
+
1449
+ /**
1450
+ * Deserializes binary data (in protobuf wire format).
1451
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1452
+ * @return {!proto.wechaty.puppet.TagContactTagAddResponse}
1453
+ */
1454
+ proto.wechaty.puppet.TagContactTagAddResponse.deserializeBinary = function(bytes) {
1455
+ var reader = new jspb.BinaryReader(bytes);
1456
+ var msg = new proto.wechaty.puppet.TagContactTagAddResponse;
1457
+ return proto.wechaty.puppet.TagContactTagAddResponse.deserializeBinaryFromReader(msg, reader);
1458
+ };
1459
+
1460
+
1461
+ /**
1462
+ * Deserializes binary data (in protobuf wire format) from the
1463
+ * given reader into the given message object.
1464
+ * @param {!proto.wechaty.puppet.TagContactTagAddResponse} msg The message object to deserialize into.
1465
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1466
+ * @return {!proto.wechaty.puppet.TagContactTagAddResponse}
1467
+ */
1468
+ proto.wechaty.puppet.TagContactTagAddResponse.deserializeBinaryFromReader = function(msg, reader) {
1469
+ while (reader.nextField()) {
1470
+ if (reader.isEndGroup()) {
1471
+ break;
1472
+ }
1473
+ var field = reader.getFieldNumber();
1474
+ switch (field) {
1475
+ default:
1476
+ reader.skipField();
1477
+ break;
1478
+ }
1479
+ }
1480
+ return msg;
1481
+ };
1482
+
1483
+
1484
+ /**
1485
+ * Serializes the message to binary data (in protobuf wire format).
1486
+ * @return {!Uint8Array}
1487
+ */
1488
+ proto.wechaty.puppet.TagContactTagAddResponse.prototype.serializeBinary = function() {
1489
+ var writer = new jspb.BinaryWriter();
1490
+ proto.wechaty.puppet.TagContactTagAddResponse.serializeBinaryToWriter(this, writer);
1491
+ return writer.getResultBuffer();
1492
+ };
1493
+
1494
+
1495
+ /**
1496
+ * Serializes the given message to binary data (in protobuf wire
1497
+ * format), writing to the given BinaryWriter.
1498
+ * @param {!proto.wechaty.puppet.TagContactTagAddResponse} message
1499
+ * @param {!jspb.BinaryWriter} writer
1500
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1501
+ */
1502
+ proto.wechaty.puppet.TagContactTagAddResponse.serializeBinaryToWriter = function(message, writer) {
1503
+ var f = undefined;
1504
+ };
1505
+
1506
+
1507
+
1508
+ /**
1509
+ * List of repeated fields within this message type.
1510
+ * @private {!Array<number>}
1511
+ * @const
1512
+ */
1513
+ proto.wechaty.puppet.TagContactTagRemoveRequest.repeatedFields_ = [1,2];
1514
+
1515
+
1516
+
1517
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1518
+ /**
1519
+ * Creates an object representation of this proto.
1520
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1521
+ * Optional fields that are not set will be set to undefined.
1522
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1523
+ * For the list of reserved names please see:
1524
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1525
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1526
+ * JSPB instance for transitional soy proto support:
1527
+ * http://goto/soy-param-migration
1528
+ * @return {!Object}
1529
+ */
1530
+ proto.wechaty.puppet.TagContactTagRemoveRequest.prototype.toObject = function(opt_includeInstance) {
1531
+ return proto.wechaty.puppet.TagContactTagRemoveRequest.toObject(opt_includeInstance, this);
1532
+ };
1533
+
1534
+
1535
+ /**
1536
+ * Static version of the {@see toObject} method.
1537
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1538
+ * the JSPB instance for transitional soy proto support:
1539
+ * http://goto/soy-param-migration
1540
+ * @param {!proto.wechaty.puppet.TagContactTagRemoveRequest} msg The msg instance to transform.
1541
+ * @return {!Object}
1542
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1543
+ */
1544
+ proto.wechaty.puppet.TagContactTagRemoveRequest.toObject = function(includeInstance, msg) {
1545
+ var f, obj = {
1546
+ tagsList: jspb.Message.toObjectList(msg.getTagsList(),
1547
+ proto.wechaty.puppet.TagIdentifier.toObject, includeInstance),
1548
+ contactIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
1549
+ };
1550
+
1551
+ if (includeInstance) {
1552
+ obj.$jspbMessageInstance = msg;
1553
+ }
1554
+ return obj;
1555
+ };
1556
+ }
1557
+
1558
+
1559
+ /**
1560
+ * Deserializes binary data (in protobuf wire format).
1561
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1562
+ * @return {!proto.wechaty.puppet.TagContactTagRemoveRequest}
1563
+ */
1564
+ proto.wechaty.puppet.TagContactTagRemoveRequest.deserializeBinary = function(bytes) {
1565
+ var reader = new jspb.BinaryReader(bytes);
1566
+ var msg = new proto.wechaty.puppet.TagContactTagRemoveRequest;
1567
+ return proto.wechaty.puppet.TagContactTagRemoveRequest.deserializeBinaryFromReader(msg, reader);
1568
+ };
1569
+
1570
+
1571
+ /**
1572
+ * Deserializes binary data (in protobuf wire format) from the
1573
+ * given reader into the given message object.
1574
+ * @param {!proto.wechaty.puppet.TagContactTagRemoveRequest} msg The message object to deserialize into.
1575
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1576
+ * @return {!proto.wechaty.puppet.TagContactTagRemoveRequest}
1577
+ */
1578
+ proto.wechaty.puppet.TagContactTagRemoveRequest.deserializeBinaryFromReader = function(msg, reader) {
1579
+ while (reader.nextField()) {
1580
+ if (reader.isEndGroup()) {
1581
+ break;
1582
+ }
1583
+ var field = reader.getFieldNumber();
1584
+ switch (field) {
1585
+ case 1:
1586
+ var value = new proto.wechaty.puppet.TagIdentifier;
1587
+ reader.readMessage(value,proto.wechaty.puppet.TagIdentifier.deserializeBinaryFromReader);
1588
+ msg.addTags(value);
1589
+ break;
1590
+ case 2:
1591
+ var value = /** @type {string} */ (reader.readString());
1592
+ msg.addContactIds(value);
1593
+ break;
1594
+ default:
1595
+ reader.skipField();
1596
+ break;
1597
+ }
1598
+ }
1599
+ return msg;
1600
+ };
1601
+
1602
+
1603
+ /**
1604
+ * Serializes the message to binary data (in protobuf wire format).
1605
+ * @return {!Uint8Array}
1606
+ */
1607
+ proto.wechaty.puppet.TagContactTagRemoveRequest.prototype.serializeBinary = function() {
1608
+ var writer = new jspb.BinaryWriter();
1609
+ proto.wechaty.puppet.TagContactTagRemoveRequest.serializeBinaryToWriter(this, writer);
1610
+ return writer.getResultBuffer();
1611
+ };
1612
+
1613
+
1614
+ /**
1615
+ * Serializes the given message to binary data (in protobuf wire
1616
+ * format), writing to the given BinaryWriter.
1617
+ * @param {!proto.wechaty.puppet.TagContactTagRemoveRequest} message
1618
+ * @param {!jspb.BinaryWriter} writer
1619
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1620
+ */
1621
+ proto.wechaty.puppet.TagContactTagRemoveRequest.serializeBinaryToWriter = function(message, writer) {
1622
+ var f = undefined;
1623
+ f = message.getTagsList();
1624
+ if (f.length > 0) {
1625
+ writer.writeRepeatedMessage(
1626
+ 1,
1627
+ f,
1628
+ proto.wechaty.puppet.TagIdentifier.serializeBinaryToWriter
1629
+ );
1630
+ }
1631
+ f = message.getContactIdsList();
1632
+ if (f.length > 0) {
1633
+ writer.writeRepeatedString(
1634
+ 2,
1635
+ f
1636
+ );
1637
+ }
1638
+ };
1639
+
1640
+
1641
+ /**
1642
+ * repeated TagIdentifier tags = 1;
1643
+ * @return {!Array<!proto.wechaty.puppet.TagIdentifier>}
1644
+ */
1645
+ proto.wechaty.puppet.TagContactTagRemoveRequest.prototype.getTagsList = function() {
1646
+ return /** @type{!Array<!proto.wechaty.puppet.TagIdentifier>} */ (
1647
+ jspb.Message.getRepeatedWrapperField(this, proto.wechaty.puppet.TagIdentifier, 1));
1648
+ };
1649
+
1650
+
1651
+ /**
1652
+ * @param {!Array<!proto.wechaty.puppet.TagIdentifier>} value
1653
+ * @return {!proto.wechaty.puppet.TagContactTagRemoveRequest} returns this
1654
+ */
1655
+ proto.wechaty.puppet.TagContactTagRemoveRequest.prototype.setTagsList = function(value) {
1656
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
1657
+ };
1658
+
1659
+
1660
+ /**
1661
+ * @param {!proto.wechaty.puppet.TagIdentifier=} opt_value
1662
+ * @param {number=} opt_index
1663
+ * @return {!proto.wechaty.puppet.TagIdentifier}
1664
+ */
1665
+ proto.wechaty.puppet.TagContactTagRemoveRequest.prototype.addTags = function(opt_value, opt_index) {
1666
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.wechaty.puppet.TagIdentifier, opt_index);
1667
+ };
1668
+
1669
+
1670
+ /**
1671
+ * Clears the list making it empty but non-null.
1672
+ * @return {!proto.wechaty.puppet.TagContactTagRemoveRequest} returns this
1673
+ */
1674
+ proto.wechaty.puppet.TagContactTagRemoveRequest.prototype.clearTagsList = function() {
1675
+ return this.setTagsList([]);
1676
+ };
1677
+
1678
+
1679
+ /**
1680
+ * repeated string contact_ids = 2;
1681
+ * @return {!Array<string>}
1682
+ */
1683
+ proto.wechaty.puppet.TagContactTagRemoveRequest.prototype.getContactIdsList = function() {
1684
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
1685
+ };
1686
+
1687
+
1688
+ /**
1689
+ * @param {!Array<string>} value
1690
+ * @return {!proto.wechaty.puppet.TagContactTagRemoveRequest} returns this
1691
+ */
1692
+ proto.wechaty.puppet.TagContactTagRemoveRequest.prototype.setContactIdsList = function(value) {
1693
+ return jspb.Message.setField(this, 2, value || []);
1694
+ };
1695
+
1696
+
1697
+ /**
1698
+ * @param {string} value
1699
+ * @param {number=} opt_index
1700
+ * @return {!proto.wechaty.puppet.TagContactTagRemoveRequest} returns this
1701
+ */
1702
+ proto.wechaty.puppet.TagContactTagRemoveRequest.prototype.addContactIds = function(value, opt_index) {
1703
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
1704
+ };
1705
+
1706
+
1707
+ /**
1708
+ * Clears the list making it empty but non-null.
1709
+ * @return {!proto.wechaty.puppet.TagContactTagRemoveRequest} returns this
1710
+ */
1711
+ proto.wechaty.puppet.TagContactTagRemoveRequest.prototype.clearContactIdsList = function() {
1712
+ return this.setContactIdsList([]);
1713
+ };
1714
+
1715
+
1716
+
1717
+
1718
+
1719
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1720
+ /**
1721
+ * Creates an object representation of this proto.
1722
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1723
+ * Optional fields that are not set will be set to undefined.
1724
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1725
+ * For the list of reserved names please see:
1726
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1727
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1728
+ * JSPB instance for transitional soy proto support:
1729
+ * http://goto/soy-param-migration
1730
+ * @return {!Object}
1731
+ */
1732
+ proto.wechaty.puppet.TagContactTagRemoveResponse.prototype.toObject = function(opt_includeInstance) {
1733
+ return proto.wechaty.puppet.TagContactTagRemoveResponse.toObject(opt_includeInstance, this);
1734
+ };
1735
+
1736
+
1737
+ /**
1738
+ * Static version of the {@see toObject} method.
1739
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1740
+ * the JSPB instance for transitional soy proto support:
1741
+ * http://goto/soy-param-migration
1742
+ * @param {!proto.wechaty.puppet.TagContactTagRemoveResponse} msg The msg instance to transform.
1743
+ * @return {!Object}
1744
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1745
+ */
1746
+ proto.wechaty.puppet.TagContactTagRemoveResponse.toObject = function(includeInstance, msg) {
1747
+ var f, obj = {
1748
+
1749
+ };
1750
+
1751
+ if (includeInstance) {
1752
+ obj.$jspbMessageInstance = msg;
1753
+ }
1754
+ return obj;
1755
+ };
1756
+ }
1757
+
1758
+
1759
+ /**
1760
+ * Deserializes binary data (in protobuf wire format).
1761
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1762
+ * @return {!proto.wechaty.puppet.TagContactTagRemoveResponse}
1763
+ */
1764
+ proto.wechaty.puppet.TagContactTagRemoveResponse.deserializeBinary = function(bytes) {
1765
+ var reader = new jspb.BinaryReader(bytes);
1766
+ var msg = new proto.wechaty.puppet.TagContactTagRemoveResponse;
1767
+ return proto.wechaty.puppet.TagContactTagRemoveResponse.deserializeBinaryFromReader(msg, reader);
1768
+ };
1769
+
1770
+
1771
+ /**
1772
+ * Deserializes binary data (in protobuf wire format) from the
1773
+ * given reader into the given message object.
1774
+ * @param {!proto.wechaty.puppet.TagContactTagRemoveResponse} msg The message object to deserialize into.
1775
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1776
+ * @return {!proto.wechaty.puppet.TagContactTagRemoveResponse}
1777
+ */
1778
+ proto.wechaty.puppet.TagContactTagRemoveResponse.deserializeBinaryFromReader = function(msg, reader) {
1779
+ while (reader.nextField()) {
1780
+ if (reader.isEndGroup()) {
1781
+ break;
1782
+ }
1783
+ var field = reader.getFieldNumber();
1784
+ switch (field) {
1785
+ default:
1786
+ reader.skipField();
1787
+ break;
1788
+ }
1789
+ }
1790
+ return msg;
1791
+ };
1792
+
1793
+
1794
+ /**
1795
+ * Serializes the message to binary data (in protobuf wire format).
1796
+ * @return {!Uint8Array}
1797
+ */
1798
+ proto.wechaty.puppet.TagContactTagRemoveResponse.prototype.serializeBinary = function() {
1799
+ var writer = new jspb.BinaryWriter();
1800
+ proto.wechaty.puppet.TagContactTagRemoveResponse.serializeBinaryToWriter(this, writer);
1801
+ return writer.getResultBuffer();
1802
+ };
1803
+
1804
+
1805
+ /**
1806
+ * Serializes the given message to binary data (in protobuf wire
1807
+ * format), writing to the given BinaryWriter.
1808
+ * @param {!proto.wechaty.puppet.TagContactTagRemoveResponse} message
1809
+ * @param {!jspb.BinaryWriter} writer
1810
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1811
+ */
1812
+ proto.wechaty.puppet.TagContactTagRemoveResponse.serializeBinaryToWriter = function(message, writer) {
1813
+ var f = undefined;
1814
+ };
1815
+
1816
+
1817
+
1818
+
1819
+
1820
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1821
+ /**
1822
+ * Creates an object representation of this proto.
1823
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1824
+ * Optional fields that are not set will be set to undefined.
1825
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1826
+ * For the list of reserved names please see:
1827
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1828
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1829
+ * JSPB instance for transitional soy proto support:
1830
+ * http://goto/soy-param-migration
1831
+ * @return {!Object}
1832
+ */
1833
+ proto.wechaty.puppet.TagGroupAddRequest.prototype.toObject = function(opt_includeInstance) {
1834
+ return proto.wechaty.puppet.TagGroupAddRequest.toObject(opt_includeInstance, this);
1835
+ };
1836
+
1837
+
1838
+ /**
1839
+ * Static version of the {@see toObject} method.
1840
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1841
+ * the JSPB instance for transitional soy proto support:
1842
+ * http://goto/soy-param-migration
1843
+ * @param {!proto.wechaty.puppet.TagGroupAddRequest} msg The msg instance to transform.
1844
+ * @return {!Object}
1845
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1846
+ */
1847
+ proto.wechaty.puppet.TagGroupAddRequest.toObject = function(includeInstance, msg) {
1848
+ var f, obj = {
1849
+ tagGroupName: jspb.Message.getFieldWithDefault(msg, 1, "")
1850
+ };
1851
+
1852
+ if (includeInstance) {
1853
+ obj.$jspbMessageInstance = msg;
1854
+ }
1855
+ return obj;
1856
+ };
1857
+ }
1858
+
1859
+
1860
+ /**
1861
+ * Deserializes binary data (in protobuf wire format).
1862
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1863
+ * @return {!proto.wechaty.puppet.TagGroupAddRequest}
1864
+ */
1865
+ proto.wechaty.puppet.TagGroupAddRequest.deserializeBinary = function(bytes) {
1866
+ var reader = new jspb.BinaryReader(bytes);
1867
+ var msg = new proto.wechaty.puppet.TagGroupAddRequest;
1868
+ return proto.wechaty.puppet.TagGroupAddRequest.deserializeBinaryFromReader(msg, reader);
1869
+ };
1870
+
1871
+
1872
+ /**
1873
+ * Deserializes binary data (in protobuf wire format) from the
1874
+ * given reader into the given message object.
1875
+ * @param {!proto.wechaty.puppet.TagGroupAddRequest} msg The message object to deserialize into.
1876
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1877
+ * @return {!proto.wechaty.puppet.TagGroupAddRequest}
1878
+ */
1879
+ proto.wechaty.puppet.TagGroupAddRequest.deserializeBinaryFromReader = function(msg, reader) {
1880
+ while (reader.nextField()) {
1881
+ if (reader.isEndGroup()) {
1882
+ break;
1883
+ }
1884
+ var field = reader.getFieldNumber();
1885
+ switch (field) {
1886
+ case 1:
1887
+ var value = /** @type {string} */ (reader.readString());
1888
+ msg.setTagGroupName(value);
1889
+ break;
1890
+ default:
1891
+ reader.skipField();
1892
+ break;
1893
+ }
1894
+ }
1895
+ return msg;
1896
+ };
1897
+
1898
+
1899
+ /**
1900
+ * Serializes the message to binary data (in protobuf wire format).
1901
+ * @return {!Uint8Array}
1902
+ */
1903
+ proto.wechaty.puppet.TagGroupAddRequest.prototype.serializeBinary = function() {
1904
+ var writer = new jspb.BinaryWriter();
1905
+ proto.wechaty.puppet.TagGroupAddRequest.serializeBinaryToWriter(this, writer);
1906
+ return writer.getResultBuffer();
1907
+ };
1908
+
1909
+
1910
+ /**
1911
+ * Serializes the given message to binary data (in protobuf wire
1912
+ * format), writing to the given BinaryWriter.
1913
+ * @param {!proto.wechaty.puppet.TagGroupAddRequest} message
1914
+ * @param {!jspb.BinaryWriter} writer
1915
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1916
+ */
1917
+ proto.wechaty.puppet.TagGroupAddRequest.serializeBinaryToWriter = function(message, writer) {
1918
+ var f = undefined;
1919
+ f = message.getTagGroupName();
1920
+ if (f.length > 0) {
1921
+ writer.writeString(
1922
+ 1,
1923
+ f
1924
+ );
1925
+ }
1926
+ };
1927
+
1928
+
1929
+ /**
1930
+ * optional string tag_group_name = 1;
1931
+ * @return {string}
1932
+ */
1933
+ proto.wechaty.puppet.TagGroupAddRequest.prototype.getTagGroupName = function() {
1934
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1935
+ };
1936
+
1937
+
1938
+ /**
1939
+ * @param {string} value
1940
+ * @return {!proto.wechaty.puppet.TagGroupAddRequest} returns this
1941
+ */
1942
+ proto.wechaty.puppet.TagGroupAddRequest.prototype.setTagGroupName = function(value) {
1943
+ return jspb.Message.setProto3StringField(this, 1, value);
1944
+ };
1945
+
1946
+
1947
+
1948
+
1949
+
1950
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1951
+ /**
1952
+ * Creates an object representation of this proto.
1953
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1954
+ * Optional fields that are not set will be set to undefined.
1955
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1956
+ * For the list of reserved names please see:
1957
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1958
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1959
+ * JSPB instance for transitional soy proto support:
1960
+ * http://goto/soy-param-migration
1961
+ * @return {!Object}
1962
+ */
1963
+ proto.wechaty.puppet.TagGroupAddResponse.prototype.toObject = function(opt_includeInstance) {
1964
+ return proto.wechaty.puppet.TagGroupAddResponse.toObject(opt_includeInstance, this);
1965
+ };
1966
+
1967
+
1968
+ /**
1969
+ * Static version of the {@see toObject} method.
1970
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1971
+ * the JSPB instance for transitional soy proto support:
1972
+ * http://goto/soy-param-migration
1973
+ * @param {!proto.wechaty.puppet.TagGroupAddResponse} msg The msg instance to transform.
1974
+ * @return {!Object}
1975
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1976
+ */
1977
+ proto.wechaty.puppet.TagGroupAddResponse.toObject = function(includeInstance, msg) {
1978
+ var f, obj = {
1979
+ tagGroupId: jspb.Message.getFieldWithDefault(msg, 1, "")
1980
+ };
1981
+
1982
+ if (includeInstance) {
1983
+ obj.$jspbMessageInstance = msg;
1984
+ }
1985
+ return obj;
1986
+ };
1987
+ }
1988
+
1989
+
1990
+ /**
1991
+ * Deserializes binary data (in protobuf wire format).
1992
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1993
+ * @return {!proto.wechaty.puppet.TagGroupAddResponse}
1994
+ */
1995
+ proto.wechaty.puppet.TagGroupAddResponse.deserializeBinary = function(bytes) {
1996
+ var reader = new jspb.BinaryReader(bytes);
1997
+ var msg = new proto.wechaty.puppet.TagGroupAddResponse;
1998
+ return proto.wechaty.puppet.TagGroupAddResponse.deserializeBinaryFromReader(msg, reader);
1999
+ };
2000
+
2001
+
2002
+ /**
2003
+ * Deserializes binary data (in protobuf wire format) from the
2004
+ * given reader into the given message object.
2005
+ * @param {!proto.wechaty.puppet.TagGroupAddResponse} msg The message object to deserialize into.
2006
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2007
+ * @return {!proto.wechaty.puppet.TagGroupAddResponse}
2008
+ */
2009
+ proto.wechaty.puppet.TagGroupAddResponse.deserializeBinaryFromReader = function(msg, reader) {
2010
+ while (reader.nextField()) {
2011
+ if (reader.isEndGroup()) {
2012
+ break;
2013
+ }
2014
+ var field = reader.getFieldNumber();
2015
+ switch (field) {
2016
+ case 1:
2017
+ var value = /** @type {string} */ (reader.readString());
2018
+ msg.setTagGroupId(value);
2019
+ break;
2020
+ default:
2021
+ reader.skipField();
2022
+ break;
2023
+ }
2024
+ }
2025
+ return msg;
2026
+ };
2027
+
2028
+
2029
+ /**
2030
+ * Serializes the message to binary data (in protobuf wire format).
2031
+ * @return {!Uint8Array}
2032
+ */
2033
+ proto.wechaty.puppet.TagGroupAddResponse.prototype.serializeBinary = function() {
2034
+ var writer = new jspb.BinaryWriter();
2035
+ proto.wechaty.puppet.TagGroupAddResponse.serializeBinaryToWriter(this, writer);
2036
+ return writer.getResultBuffer();
2037
+ };
2038
+
2039
+
2040
+ /**
2041
+ * Serializes the given message to binary data (in protobuf wire
2042
+ * format), writing to the given BinaryWriter.
2043
+ * @param {!proto.wechaty.puppet.TagGroupAddResponse} message
2044
+ * @param {!jspb.BinaryWriter} writer
2045
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2046
+ */
2047
+ proto.wechaty.puppet.TagGroupAddResponse.serializeBinaryToWriter = function(message, writer) {
2048
+ var f = undefined;
2049
+ f = message.getTagGroupId();
2050
+ if (f.length > 0) {
2051
+ writer.writeString(
2052
+ 1,
2053
+ f
2054
+ );
2055
+ }
2056
+ };
2057
+
2058
+
2059
+ /**
2060
+ * optional string tag_group_id = 1;
2061
+ * @return {string}
2062
+ */
2063
+ proto.wechaty.puppet.TagGroupAddResponse.prototype.getTagGroupId = function() {
2064
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2065
+ };
2066
+
2067
+
2068
+ /**
2069
+ * @param {string} value
2070
+ * @return {!proto.wechaty.puppet.TagGroupAddResponse} returns this
2071
+ */
2072
+ proto.wechaty.puppet.TagGroupAddResponse.prototype.setTagGroupId = function(value) {
2073
+ return jspb.Message.setProto3StringField(this, 1, value);
2074
+ };
2075
+
2076
+
2077
+
2078
+
2079
+
2080
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2081
+ /**
2082
+ * Creates an object representation of this proto.
2083
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2084
+ * Optional fields that are not set will be set to undefined.
2085
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2086
+ * For the list of reserved names please see:
2087
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2088
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2089
+ * JSPB instance for transitional soy proto support:
2090
+ * http://goto/soy-param-migration
2091
+ * @return {!Object}
2092
+ */
2093
+ proto.wechaty.puppet.TagGroupDeleteRequest.prototype.toObject = function(opt_includeInstance) {
2094
+ return proto.wechaty.puppet.TagGroupDeleteRequest.toObject(opt_includeInstance, this);
2095
+ };
2096
+
2097
+
2098
+ /**
2099
+ * Static version of the {@see toObject} method.
2100
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2101
+ * the JSPB instance for transitional soy proto support:
2102
+ * http://goto/soy-param-migration
2103
+ * @param {!proto.wechaty.puppet.TagGroupDeleteRequest} msg The msg instance to transform.
2104
+ * @return {!Object}
2105
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2106
+ */
2107
+ proto.wechaty.puppet.TagGroupDeleteRequest.toObject = function(includeInstance, msg) {
2108
+ var f, obj = {
2109
+ tagGroupId: jspb.Message.getFieldWithDefault(msg, 1, "")
2110
+ };
2111
+
2112
+ if (includeInstance) {
2113
+ obj.$jspbMessageInstance = msg;
2114
+ }
2115
+ return obj;
2116
+ };
2117
+ }
2118
+
2119
+
2120
+ /**
2121
+ * Deserializes binary data (in protobuf wire format).
2122
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2123
+ * @return {!proto.wechaty.puppet.TagGroupDeleteRequest}
2124
+ */
2125
+ proto.wechaty.puppet.TagGroupDeleteRequest.deserializeBinary = function(bytes) {
2126
+ var reader = new jspb.BinaryReader(bytes);
2127
+ var msg = new proto.wechaty.puppet.TagGroupDeleteRequest;
2128
+ return proto.wechaty.puppet.TagGroupDeleteRequest.deserializeBinaryFromReader(msg, reader);
2129
+ };
2130
+
2131
+
2132
+ /**
2133
+ * Deserializes binary data (in protobuf wire format) from the
2134
+ * given reader into the given message object.
2135
+ * @param {!proto.wechaty.puppet.TagGroupDeleteRequest} msg The message object to deserialize into.
2136
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2137
+ * @return {!proto.wechaty.puppet.TagGroupDeleteRequest}
2138
+ */
2139
+ proto.wechaty.puppet.TagGroupDeleteRequest.deserializeBinaryFromReader = function(msg, reader) {
2140
+ while (reader.nextField()) {
2141
+ if (reader.isEndGroup()) {
2142
+ break;
2143
+ }
2144
+ var field = reader.getFieldNumber();
2145
+ switch (field) {
2146
+ case 1:
2147
+ var value = /** @type {string} */ (reader.readString());
2148
+ msg.setTagGroupId(value);
2149
+ break;
2150
+ default:
2151
+ reader.skipField();
2152
+ break;
2153
+ }
2154
+ }
2155
+ return msg;
2156
+ };
2157
+
2158
+
2159
+ /**
2160
+ * Serializes the message to binary data (in protobuf wire format).
2161
+ * @return {!Uint8Array}
2162
+ */
2163
+ proto.wechaty.puppet.TagGroupDeleteRequest.prototype.serializeBinary = function() {
2164
+ var writer = new jspb.BinaryWriter();
2165
+ proto.wechaty.puppet.TagGroupDeleteRequest.serializeBinaryToWriter(this, writer);
2166
+ return writer.getResultBuffer();
2167
+ };
2168
+
2169
+
2170
+ /**
2171
+ * Serializes the given message to binary data (in protobuf wire
2172
+ * format), writing to the given BinaryWriter.
2173
+ * @param {!proto.wechaty.puppet.TagGroupDeleteRequest} message
2174
+ * @param {!jspb.BinaryWriter} writer
2175
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2176
+ */
2177
+ proto.wechaty.puppet.TagGroupDeleteRequest.serializeBinaryToWriter = function(message, writer) {
2178
+ var f = undefined;
2179
+ f = message.getTagGroupId();
2180
+ if (f.length > 0) {
2181
+ writer.writeString(
2182
+ 1,
2183
+ f
2184
+ );
2185
+ }
2186
+ };
2187
+
2188
+
2189
+ /**
2190
+ * optional string tag_group_id = 1;
2191
+ * @return {string}
2192
+ */
2193
+ proto.wechaty.puppet.TagGroupDeleteRequest.prototype.getTagGroupId = function() {
2194
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2195
+ };
2196
+
2197
+
2198
+ /**
2199
+ * @param {string} value
2200
+ * @return {!proto.wechaty.puppet.TagGroupDeleteRequest} returns this
2201
+ */
2202
+ proto.wechaty.puppet.TagGroupDeleteRequest.prototype.setTagGroupId = function(value) {
2203
+ return jspb.Message.setProto3StringField(this, 1, value);
2204
+ };
2205
+
2206
+
2207
+
2208
+
2209
+
2210
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2211
+ /**
2212
+ * Creates an object representation of this proto.
2213
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2214
+ * Optional fields that are not set will be set to undefined.
2215
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2216
+ * For the list of reserved names please see:
2217
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2218
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2219
+ * JSPB instance for transitional soy proto support:
2220
+ * http://goto/soy-param-migration
2221
+ * @return {!Object}
2222
+ */
2223
+ proto.wechaty.puppet.TagGroupDeleteResponse.prototype.toObject = function(opt_includeInstance) {
2224
+ return proto.wechaty.puppet.TagGroupDeleteResponse.toObject(opt_includeInstance, this);
2225
+ };
2226
+
2227
+
2228
+ /**
2229
+ * Static version of the {@see toObject} method.
2230
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2231
+ * the JSPB instance for transitional soy proto support:
2232
+ * http://goto/soy-param-migration
2233
+ * @param {!proto.wechaty.puppet.TagGroupDeleteResponse} msg The msg instance to transform.
2234
+ * @return {!Object}
2235
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2236
+ */
2237
+ proto.wechaty.puppet.TagGroupDeleteResponse.toObject = function(includeInstance, msg) {
2238
+ var f, obj = {
2239
+
2240
+ };
2241
+
2242
+ if (includeInstance) {
2243
+ obj.$jspbMessageInstance = msg;
2244
+ }
2245
+ return obj;
2246
+ };
2247
+ }
2248
+
2249
+
2250
+ /**
2251
+ * Deserializes binary data (in protobuf wire format).
2252
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2253
+ * @return {!proto.wechaty.puppet.TagGroupDeleteResponse}
2254
+ */
2255
+ proto.wechaty.puppet.TagGroupDeleteResponse.deserializeBinary = function(bytes) {
2256
+ var reader = new jspb.BinaryReader(bytes);
2257
+ var msg = new proto.wechaty.puppet.TagGroupDeleteResponse;
2258
+ return proto.wechaty.puppet.TagGroupDeleteResponse.deserializeBinaryFromReader(msg, reader);
2259
+ };
2260
+
2261
+
2262
+ /**
2263
+ * Deserializes binary data (in protobuf wire format) from the
2264
+ * given reader into the given message object.
2265
+ * @param {!proto.wechaty.puppet.TagGroupDeleteResponse} msg The message object to deserialize into.
2266
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2267
+ * @return {!proto.wechaty.puppet.TagGroupDeleteResponse}
2268
+ */
2269
+ proto.wechaty.puppet.TagGroupDeleteResponse.deserializeBinaryFromReader = function(msg, reader) {
2270
+ while (reader.nextField()) {
2271
+ if (reader.isEndGroup()) {
2272
+ break;
2273
+ }
2274
+ var field = reader.getFieldNumber();
2275
+ switch (field) {
2276
+ default:
2277
+ reader.skipField();
2278
+ break;
2279
+ }
2280
+ }
2281
+ return msg;
2282
+ };
2283
+
2284
+
2285
+ /**
2286
+ * Serializes the message to binary data (in protobuf wire format).
2287
+ * @return {!Uint8Array}
2288
+ */
2289
+ proto.wechaty.puppet.TagGroupDeleteResponse.prototype.serializeBinary = function() {
2290
+ var writer = new jspb.BinaryWriter();
2291
+ proto.wechaty.puppet.TagGroupDeleteResponse.serializeBinaryToWriter(this, writer);
2292
+ return writer.getResultBuffer();
2293
+ };
2294
+
2295
+
2296
+ /**
2297
+ * Serializes the given message to binary data (in protobuf wire
2298
+ * format), writing to the given BinaryWriter.
2299
+ * @param {!proto.wechaty.puppet.TagGroupDeleteResponse} message
2300
+ * @param {!jspb.BinaryWriter} writer
2301
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2302
+ */
2303
+ proto.wechaty.puppet.TagGroupDeleteResponse.serializeBinaryToWriter = function(message, writer) {
2304
+ var f = undefined;
2305
+ };
2306
+
2307
+
2308
+
2309
+
2310
+
2311
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2312
+ /**
2313
+ * Creates an object representation of this proto.
2314
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2315
+ * Optional fields that are not set will be set to undefined.
2316
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2317
+ * For the list of reserved names please see:
2318
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2319
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2320
+ * JSPB instance for transitional soy proto support:
2321
+ * http://goto/soy-param-migration
2322
+ * @return {!Object}
2323
+ */
2324
+ proto.wechaty.puppet.TagTagAddRequest.prototype.toObject = function(opt_includeInstance) {
2325
+ return proto.wechaty.puppet.TagTagAddRequest.toObject(opt_includeInstance, this);
2326
+ };
2327
+
2328
+
2329
+ /**
2330
+ * Static version of the {@see toObject} method.
2331
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2332
+ * the JSPB instance for transitional soy proto support:
2333
+ * http://goto/soy-param-migration
2334
+ * @param {!proto.wechaty.puppet.TagTagAddRequest} msg The msg instance to transform.
2335
+ * @return {!Object}
2336
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2337
+ */
2338
+ proto.wechaty.puppet.TagTagAddRequest.toObject = function(includeInstance, msg) {
2339
+ var f, obj = {
2340
+ tagName: jspb.Message.getFieldWithDefault(msg, 1, ""),
2341
+ tagGroupId: jspb.Message.getFieldWithDefault(msg, 2, "")
2342
+ };
2343
+
2344
+ if (includeInstance) {
2345
+ obj.$jspbMessageInstance = msg;
2346
+ }
2347
+ return obj;
2348
+ };
2349
+ }
2350
+
2351
+
2352
+ /**
2353
+ * Deserializes binary data (in protobuf wire format).
2354
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2355
+ * @return {!proto.wechaty.puppet.TagTagAddRequest}
2356
+ */
2357
+ proto.wechaty.puppet.TagTagAddRequest.deserializeBinary = function(bytes) {
2358
+ var reader = new jspb.BinaryReader(bytes);
2359
+ var msg = new proto.wechaty.puppet.TagTagAddRequest;
2360
+ return proto.wechaty.puppet.TagTagAddRequest.deserializeBinaryFromReader(msg, reader);
2361
+ };
2362
+
2363
+
2364
+ /**
2365
+ * Deserializes binary data (in protobuf wire format) from the
2366
+ * given reader into the given message object.
2367
+ * @param {!proto.wechaty.puppet.TagTagAddRequest} msg The message object to deserialize into.
2368
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2369
+ * @return {!proto.wechaty.puppet.TagTagAddRequest}
2370
+ */
2371
+ proto.wechaty.puppet.TagTagAddRequest.deserializeBinaryFromReader = function(msg, reader) {
2372
+ while (reader.nextField()) {
2373
+ if (reader.isEndGroup()) {
2374
+ break;
2375
+ }
2376
+ var field = reader.getFieldNumber();
2377
+ switch (field) {
2378
+ case 1:
2379
+ var value = /** @type {string} */ (reader.readString());
2380
+ msg.setTagName(value);
2381
+ break;
2382
+ case 2:
2383
+ var value = /** @type {string} */ (reader.readString());
2384
+ msg.setTagGroupId(value);
2385
+ break;
2386
+ default:
2387
+ reader.skipField();
2388
+ break;
2389
+ }
2390
+ }
2391
+ return msg;
2392
+ };
2393
+
2394
+
2395
+ /**
2396
+ * Serializes the message to binary data (in protobuf wire format).
2397
+ * @return {!Uint8Array}
2398
+ */
2399
+ proto.wechaty.puppet.TagTagAddRequest.prototype.serializeBinary = function() {
2400
+ var writer = new jspb.BinaryWriter();
2401
+ proto.wechaty.puppet.TagTagAddRequest.serializeBinaryToWriter(this, writer);
2402
+ return writer.getResultBuffer();
2403
+ };
2404
+
2405
+
2406
+ /**
2407
+ * Serializes the given message to binary data (in protobuf wire
2408
+ * format), writing to the given BinaryWriter.
2409
+ * @param {!proto.wechaty.puppet.TagTagAddRequest} message
2410
+ * @param {!jspb.BinaryWriter} writer
2411
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2412
+ */
2413
+ proto.wechaty.puppet.TagTagAddRequest.serializeBinaryToWriter = function(message, writer) {
2414
+ var f = undefined;
2415
+ f = message.getTagName();
2416
+ if (f.length > 0) {
2417
+ writer.writeString(
2418
+ 1,
2419
+ f
2420
+ );
2421
+ }
2422
+ f = message.getTagGroupId();
2423
+ if (f.length > 0) {
2424
+ writer.writeString(
2425
+ 2,
2426
+ f
2427
+ );
2428
+ }
2429
+ };
2430
+
2431
+
2432
+ /**
2433
+ * optional string tag_name = 1;
2434
+ * @return {string}
2435
+ */
2436
+ proto.wechaty.puppet.TagTagAddRequest.prototype.getTagName = function() {
2437
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2438
+ };
2439
+
2440
+
2441
+ /**
2442
+ * @param {string} value
2443
+ * @return {!proto.wechaty.puppet.TagTagAddRequest} returns this
2444
+ */
2445
+ proto.wechaty.puppet.TagTagAddRequest.prototype.setTagName = function(value) {
2446
+ return jspb.Message.setProto3StringField(this, 1, value);
2447
+ };
2448
+
2449
+
2450
+ /**
2451
+ * optional string tag_group_id = 2;
2452
+ * @return {string}
2453
+ */
2454
+ proto.wechaty.puppet.TagTagAddRequest.prototype.getTagGroupId = function() {
2455
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2456
+ };
2457
+
2458
+
2459
+ /**
2460
+ * @param {string} value
2461
+ * @return {!proto.wechaty.puppet.TagTagAddRequest} returns this
2462
+ */
2463
+ proto.wechaty.puppet.TagTagAddRequest.prototype.setTagGroupId = function(value) {
2464
+ return jspb.Message.setProto3StringField(this, 2, value);
2465
+ };
2466
+
2467
+
2468
+
2469
+
2470
+
2471
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2472
+ /**
2473
+ * Creates an object representation of this proto.
2474
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2475
+ * Optional fields that are not set will be set to undefined.
2476
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2477
+ * For the list of reserved names please see:
2478
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2479
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2480
+ * JSPB instance for transitional soy proto support:
2481
+ * http://goto/soy-param-migration
2482
+ * @return {!Object}
2483
+ */
2484
+ proto.wechaty.puppet.TagTagAddResponse.prototype.toObject = function(opt_includeInstance) {
2485
+ return proto.wechaty.puppet.TagTagAddResponse.toObject(opt_includeInstance, this);
2486
+ };
2487
+
2488
+
2489
+ /**
2490
+ * Static version of the {@see toObject} method.
2491
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2492
+ * the JSPB instance for transitional soy proto support:
2493
+ * http://goto/soy-param-migration
2494
+ * @param {!proto.wechaty.puppet.TagTagAddResponse} msg The msg instance to transform.
2495
+ * @return {!Object}
2496
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2497
+ */
2498
+ proto.wechaty.puppet.TagTagAddResponse.toObject = function(includeInstance, msg) {
2499
+ var f, obj = {
2500
+ tag: (f = msg.getTag()) && proto.wechaty.puppet.TagIdentifier.toObject(includeInstance, f)
2501
+ };
2502
+
2503
+ if (includeInstance) {
2504
+ obj.$jspbMessageInstance = msg;
2505
+ }
2506
+ return obj;
2507
+ };
2508
+ }
2509
+
2510
+
2511
+ /**
2512
+ * Deserializes binary data (in protobuf wire format).
2513
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2514
+ * @return {!proto.wechaty.puppet.TagTagAddResponse}
2515
+ */
2516
+ proto.wechaty.puppet.TagTagAddResponse.deserializeBinary = function(bytes) {
2517
+ var reader = new jspb.BinaryReader(bytes);
2518
+ var msg = new proto.wechaty.puppet.TagTagAddResponse;
2519
+ return proto.wechaty.puppet.TagTagAddResponse.deserializeBinaryFromReader(msg, reader);
2520
+ };
2521
+
2522
+
2523
+ /**
2524
+ * Deserializes binary data (in protobuf wire format) from the
2525
+ * given reader into the given message object.
2526
+ * @param {!proto.wechaty.puppet.TagTagAddResponse} msg The message object to deserialize into.
2527
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2528
+ * @return {!proto.wechaty.puppet.TagTagAddResponse}
2529
+ */
2530
+ proto.wechaty.puppet.TagTagAddResponse.deserializeBinaryFromReader = function(msg, reader) {
2531
+ while (reader.nextField()) {
2532
+ if (reader.isEndGroup()) {
2533
+ break;
2534
+ }
2535
+ var field = reader.getFieldNumber();
2536
+ switch (field) {
2537
+ case 1:
2538
+ var value = new proto.wechaty.puppet.TagIdentifier;
2539
+ reader.readMessage(value,proto.wechaty.puppet.TagIdentifier.deserializeBinaryFromReader);
2540
+ msg.setTag(value);
2541
+ break;
2542
+ default:
2543
+ reader.skipField();
2544
+ break;
2545
+ }
2546
+ }
2547
+ return msg;
2548
+ };
2549
+
2550
+
2551
+ /**
2552
+ * Serializes the message to binary data (in protobuf wire format).
2553
+ * @return {!Uint8Array}
2554
+ */
2555
+ proto.wechaty.puppet.TagTagAddResponse.prototype.serializeBinary = function() {
2556
+ var writer = new jspb.BinaryWriter();
2557
+ proto.wechaty.puppet.TagTagAddResponse.serializeBinaryToWriter(this, writer);
2558
+ return writer.getResultBuffer();
2559
+ };
2560
+
2561
+
2562
+ /**
2563
+ * Serializes the given message to binary data (in protobuf wire
2564
+ * format), writing to the given BinaryWriter.
2565
+ * @param {!proto.wechaty.puppet.TagTagAddResponse} message
2566
+ * @param {!jspb.BinaryWriter} writer
2567
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2568
+ */
2569
+ proto.wechaty.puppet.TagTagAddResponse.serializeBinaryToWriter = function(message, writer) {
2570
+ var f = undefined;
2571
+ f = message.getTag();
2572
+ if (f != null) {
2573
+ writer.writeMessage(
2574
+ 1,
2575
+ f,
2576
+ proto.wechaty.puppet.TagIdentifier.serializeBinaryToWriter
2577
+ );
2578
+ }
2579
+ };
2580
+
2581
+
2582
+ /**
2583
+ * optional TagIdentifier tag = 1;
2584
+ * @return {?proto.wechaty.puppet.TagIdentifier}
2585
+ */
2586
+ proto.wechaty.puppet.TagTagAddResponse.prototype.getTag = function() {
2587
+ return /** @type{?proto.wechaty.puppet.TagIdentifier} */ (
2588
+ jspb.Message.getWrapperField(this, proto.wechaty.puppet.TagIdentifier, 1));
2589
+ };
2590
+
2591
+
2592
+ /**
2593
+ * @param {?proto.wechaty.puppet.TagIdentifier|undefined} value
2594
+ * @return {!proto.wechaty.puppet.TagTagAddResponse} returns this
2595
+ */
2596
+ proto.wechaty.puppet.TagTagAddResponse.prototype.setTag = function(value) {
2597
+ return jspb.Message.setWrapperField(this, 1, value);
2598
+ };
2599
+
2600
+
2601
+ /**
2602
+ * Clears the message field making it undefined.
2603
+ * @return {!proto.wechaty.puppet.TagTagAddResponse} returns this
2604
+ */
2605
+ proto.wechaty.puppet.TagTagAddResponse.prototype.clearTag = function() {
2606
+ return this.setTag(undefined);
2607
+ };
2608
+
2609
+
2610
+ /**
2611
+ * Returns whether this field is set.
2612
+ * @return {boolean}
2613
+ */
2614
+ proto.wechaty.puppet.TagTagAddResponse.prototype.hasTag = function() {
2615
+ return jspb.Message.getField(this, 1) != null;
2616
+ };
2617
+
2618
+
2619
+
2620
+
2621
+
2622
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2623
+ /**
2624
+ * Creates an object representation of this proto.
2625
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2626
+ * Optional fields that are not set will be set to undefined.
2627
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2628
+ * For the list of reserved names please see:
2629
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2630
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2631
+ * JSPB instance for transitional soy proto support:
2632
+ * http://goto/soy-param-migration
2633
+ * @return {!Object}
2634
+ */
2635
+ proto.wechaty.puppet.TagTagDeleteRequest.prototype.toObject = function(opt_includeInstance) {
2636
+ return proto.wechaty.puppet.TagTagDeleteRequest.toObject(opt_includeInstance, this);
2637
+ };
2638
+
2639
+
2640
+ /**
2641
+ * Static version of the {@see toObject} method.
2642
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2643
+ * the JSPB instance for transitional soy proto support:
2644
+ * http://goto/soy-param-migration
2645
+ * @param {!proto.wechaty.puppet.TagTagDeleteRequest} msg The msg instance to transform.
2646
+ * @return {!Object}
2647
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2648
+ */
2649
+ proto.wechaty.puppet.TagTagDeleteRequest.toObject = function(includeInstance, msg) {
2650
+ var f, obj = {
2651
+ tag: (f = msg.getTag()) && proto.wechaty.puppet.TagIdentifier.toObject(includeInstance, f)
2652
+ };
2653
+
2654
+ if (includeInstance) {
2655
+ obj.$jspbMessageInstance = msg;
2656
+ }
2657
+ return obj;
2658
+ };
2659
+ }
2660
+
2661
+
2662
+ /**
2663
+ * Deserializes binary data (in protobuf wire format).
2664
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2665
+ * @return {!proto.wechaty.puppet.TagTagDeleteRequest}
2666
+ */
2667
+ proto.wechaty.puppet.TagTagDeleteRequest.deserializeBinary = function(bytes) {
2668
+ var reader = new jspb.BinaryReader(bytes);
2669
+ var msg = new proto.wechaty.puppet.TagTagDeleteRequest;
2670
+ return proto.wechaty.puppet.TagTagDeleteRequest.deserializeBinaryFromReader(msg, reader);
2671
+ };
2672
+
2673
+
2674
+ /**
2675
+ * Deserializes binary data (in protobuf wire format) from the
2676
+ * given reader into the given message object.
2677
+ * @param {!proto.wechaty.puppet.TagTagDeleteRequest} msg The message object to deserialize into.
2678
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2679
+ * @return {!proto.wechaty.puppet.TagTagDeleteRequest}
2680
+ */
2681
+ proto.wechaty.puppet.TagTagDeleteRequest.deserializeBinaryFromReader = function(msg, reader) {
2682
+ while (reader.nextField()) {
2683
+ if (reader.isEndGroup()) {
2684
+ break;
2685
+ }
2686
+ var field = reader.getFieldNumber();
2687
+ switch (field) {
2688
+ case 1:
2689
+ var value = new proto.wechaty.puppet.TagIdentifier;
2690
+ reader.readMessage(value,proto.wechaty.puppet.TagIdentifier.deserializeBinaryFromReader);
2691
+ msg.setTag(value);
2692
+ break;
2693
+ default:
2694
+ reader.skipField();
2695
+ break;
2696
+ }
2697
+ }
2698
+ return msg;
2699
+ };
2700
+
2701
+
2702
+ /**
2703
+ * Serializes the message to binary data (in protobuf wire format).
2704
+ * @return {!Uint8Array}
2705
+ */
2706
+ proto.wechaty.puppet.TagTagDeleteRequest.prototype.serializeBinary = function() {
2707
+ var writer = new jspb.BinaryWriter();
2708
+ proto.wechaty.puppet.TagTagDeleteRequest.serializeBinaryToWriter(this, writer);
2709
+ return writer.getResultBuffer();
2710
+ };
2711
+
2712
+
2713
+ /**
2714
+ * Serializes the given message to binary data (in protobuf wire
2715
+ * format), writing to the given BinaryWriter.
2716
+ * @param {!proto.wechaty.puppet.TagTagDeleteRequest} message
2717
+ * @param {!jspb.BinaryWriter} writer
2718
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2719
+ */
2720
+ proto.wechaty.puppet.TagTagDeleteRequest.serializeBinaryToWriter = function(message, writer) {
2721
+ var f = undefined;
2722
+ f = message.getTag();
2723
+ if (f != null) {
2724
+ writer.writeMessage(
2725
+ 1,
2726
+ f,
2727
+ proto.wechaty.puppet.TagIdentifier.serializeBinaryToWriter
2728
+ );
2729
+ }
2730
+ };
2731
+
2732
+
2733
+ /**
2734
+ * optional TagIdentifier tag = 1;
2735
+ * @return {?proto.wechaty.puppet.TagIdentifier}
2736
+ */
2737
+ proto.wechaty.puppet.TagTagDeleteRequest.prototype.getTag = function() {
2738
+ return /** @type{?proto.wechaty.puppet.TagIdentifier} */ (
2739
+ jspb.Message.getWrapperField(this, proto.wechaty.puppet.TagIdentifier, 1));
2740
+ };
2741
+
2742
+
2743
+ /**
2744
+ * @param {?proto.wechaty.puppet.TagIdentifier|undefined} value
2745
+ * @return {!proto.wechaty.puppet.TagTagDeleteRequest} returns this
2746
+ */
2747
+ proto.wechaty.puppet.TagTagDeleteRequest.prototype.setTag = function(value) {
2748
+ return jspb.Message.setWrapperField(this, 1, value);
2749
+ };
2750
+
2751
+
2752
+ /**
2753
+ * Clears the message field making it undefined.
2754
+ * @return {!proto.wechaty.puppet.TagTagDeleteRequest} returns this
2755
+ */
2756
+ proto.wechaty.puppet.TagTagDeleteRequest.prototype.clearTag = function() {
2757
+ return this.setTag(undefined);
2758
+ };
2759
+
2760
+
2761
+ /**
2762
+ * Returns whether this field is set.
2763
+ * @return {boolean}
2764
+ */
2765
+ proto.wechaty.puppet.TagTagDeleteRequest.prototype.hasTag = function() {
2766
+ return jspb.Message.getField(this, 1) != null;
2767
+ };
2768
+
2769
+
2770
+
2771
+
2772
+
2773
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2774
+ /**
2775
+ * Creates an object representation of this proto.
2776
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2777
+ * Optional fields that are not set will be set to undefined.
2778
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2779
+ * For the list of reserved names please see:
2780
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2781
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2782
+ * JSPB instance for transitional soy proto support:
2783
+ * http://goto/soy-param-migration
2784
+ * @return {!Object}
2785
+ */
2786
+ proto.wechaty.puppet.TagTagDeleteResponse.prototype.toObject = function(opt_includeInstance) {
2787
+ return proto.wechaty.puppet.TagTagDeleteResponse.toObject(opt_includeInstance, this);
2788
+ };
2789
+
2790
+
2791
+ /**
2792
+ * Static version of the {@see toObject} method.
2793
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2794
+ * the JSPB instance for transitional soy proto support:
2795
+ * http://goto/soy-param-migration
2796
+ * @param {!proto.wechaty.puppet.TagTagDeleteResponse} msg The msg instance to transform.
2797
+ * @return {!Object}
2798
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2799
+ */
2800
+ proto.wechaty.puppet.TagTagDeleteResponse.toObject = function(includeInstance, msg) {
2801
+ var f, obj = {
2802
+
2803
+ };
2804
+
2805
+ if (includeInstance) {
2806
+ obj.$jspbMessageInstance = msg;
2807
+ }
2808
+ return obj;
2809
+ };
2810
+ }
2811
+
2812
+
2813
+ /**
2814
+ * Deserializes binary data (in protobuf wire format).
2815
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2816
+ * @return {!proto.wechaty.puppet.TagTagDeleteResponse}
2817
+ */
2818
+ proto.wechaty.puppet.TagTagDeleteResponse.deserializeBinary = function(bytes) {
2819
+ var reader = new jspb.BinaryReader(bytes);
2820
+ var msg = new proto.wechaty.puppet.TagTagDeleteResponse;
2821
+ return proto.wechaty.puppet.TagTagDeleteResponse.deserializeBinaryFromReader(msg, reader);
2822
+ };
2823
+
2824
+
2825
+ /**
2826
+ * Deserializes binary data (in protobuf wire format) from the
2827
+ * given reader into the given message object.
2828
+ * @param {!proto.wechaty.puppet.TagTagDeleteResponse} msg The message object to deserialize into.
2829
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2830
+ * @return {!proto.wechaty.puppet.TagTagDeleteResponse}
2831
+ */
2832
+ proto.wechaty.puppet.TagTagDeleteResponse.deserializeBinaryFromReader = function(msg, reader) {
2833
+ while (reader.nextField()) {
2834
+ if (reader.isEndGroup()) {
2835
+ break;
2836
+ }
2837
+ var field = reader.getFieldNumber();
2838
+ switch (field) {
2839
+ default:
2840
+ reader.skipField();
2841
+ break;
2842
+ }
2843
+ }
2844
+ return msg;
2845
+ };
2846
+
2847
+
2848
+ /**
2849
+ * Serializes the message to binary data (in protobuf wire format).
2850
+ * @return {!Uint8Array}
2851
+ */
2852
+ proto.wechaty.puppet.TagTagDeleteResponse.prototype.serializeBinary = function() {
2853
+ var writer = new jspb.BinaryWriter();
2854
+ proto.wechaty.puppet.TagTagDeleteResponse.serializeBinaryToWriter(this, writer);
2855
+ return writer.getResultBuffer();
2856
+ };
2857
+
2858
+
2859
+ /**
2860
+ * Serializes the given message to binary data (in protobuf wire
2861
+ * format), writing to the given BinaryWriter.
2862
+ * @param {!proto.wechaty.puppet.TagTagDeleteResponse} message
2863
+ * @param {!jspb.BinaryWriter} writer
2864
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2865
+ */
2866
+ proto.wechaty.puppet.TagTagDeleteResponse.serializeBinaryToWriter = function(message, writer) {
2867
+ var f = undefined;
2868
+ };
2869
+
2870
+
2871
+
2872
+
2873
+
2874
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2875
+ /**
2876
+ * Creates an object representation of this proto.
2877
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2878
+ * Optional fields that are not set will be set to undefined.
2879
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2880
+ * For the list of reserved names please see:
2881
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2882
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2883
+ * JSPB instance for transitional soy proto support:
2884
+ * http://goto/soy-param-migration
2885
+ * @return {!Object}
2886
+ */
2887
+ proto.wechaty.puppet.TagGroupListRequest.prototype.toObject = function(opt_includeInstance) {
2888
+ return proto.wechaty.puppet.TagGroupListRequest.toObject(opt_includeInstance, this);
2889
+ };
2890
+
2891
+
2892
+ /**
2893
+ * Static version of the {@see toObject} method.
2894
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2895
+ * the JSPB instance for transitional soy proto support:
2896
+ * http://goto/soy-param-migration
2897
+ * @param {!proto.wechaty.puppet.TagGroupListRequest} msg The msg instance to transform.
2898
+ * @return {!Object}
2899
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2900
+ */
2901
+ proto.wechaty.puppet.TagGroupListRequest.toObject = function(includeInstance, msg) {
2902
+ var f, obj = {
2903
+
2904
+ };
2905
+
2906
+ if (includeInstance) {
2907
+ obj.$jspbMessageInstance = msg;
2908
+ }
2909
+ return obj;
2910
+ };
2911
+ }
2912
+
2913
+
2914
+ /**
2915
+ * Deserializes binary data (in protobuf wire format).
2916
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2917
+ * @return {!proto.wechaty.puppet.TagGroupListRequest}
2918
+ */
2919
+ proto.wechaty.puppet.TagGroupListRequest.deserializeBinary = function(bytes) {
2920
+ var reader = new jspb.BinaryReader(bytes);
2921
+ var msg = new proto.wechaty.puppet.TagGroupListRequest;
2922
+ return proto.wechaty.puppet.TagGroupListRequest.deserializeBinaryFromReader(msg, reader);
2923
+ };
2924
+
2925
+
2926
+ /**
2927
+ * Deserializes binary data (in protobuf wire format) from the
2928
+ * given reader into the given message object.
2929
+ * @param {!proto.wechaty.puppet.TagGroupListRequest} msg The message object to deserialize into.
2930
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2931
+ * @return {!proto.wechaty.puppet.TagGroupListRequest}
2932
+ */
2933
+ proto.wechaty.puppet.TagGroupListRequest.deserializeBinaryFromReader = function(msg, reader) {
2934
+ while (reader.nextField()) {
2935
+ if (reader.isEndGroup()) {
2936
+ break;
2937
+ }
2938
+ var field = reader.getFieldNumber();
2939
+ switch (field) {
2940
+ default:
2941
+ reader.skipField();
2942
+ break;
2943
+ }
2944
+ }
2945
+ return msg;
2946
+ };
2947
+
2948
+
2949
+ /**
2950
+ * Serializes the message to binary data (in protobuf wire format).
2951
+ * @return {!Uint8Array}
2952
+ */
2953
+ proto.wechaty.puppet.TagGroupListRequest.prototype.serializeBinary = function() {
2954
+ var writer = new jspb.BinaryWriter();
2955
+ proto.wechaty.puppet.TagGroupListRequest.serializeBinaryToWriter(this, writer);
2956
+ return writer.getResultBuffer();
2957
+ };
2958
+
2959
+
2960
+ /**
2961
+ * Serializes the given message to binary data (in protobuf wire
2962
+ * format), writing to the given BinaryWriter.
2963
+ * @param {!proto.wechaty.puppet.TagGroupListRequest} message
2964
+ * @param {!jspb.BinaryWriter} writer
2965
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2966
+ */
2967
+ proto.wechaty.puppet.TagGroupListRequest.serializeBinaryToWriter = function(message, writer) {
2968
+ var f = undefined;
2969
+ };
2970
+
2971
+
2972
+
2973
+ /**
2974
+ * List of repeated fields within this message type.
2975
+ * @private {!Array<number>}
2976
+ * @const
2977
+ */
2978
+ proto.wechaty.puppet.TagGroupListResponse.repeatedFields_ = [1];
2979
+
2980
+
2981
+
2982
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2983
+ /**
2984
+ * Creates an object representation of this proto.
2985
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2986
+ * Optional fields that are not set will be set to undefined.
2987
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2988
+ * For the list of reserved names please see:
2989
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2990
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2991
+ * JSPB instance for transitional soy proto support:
2992
+ * http://goto/soy-param-migration
2993
+ * @return {!Object}
2994
+ */
2995
+ proto.wechaty.puppet.TagGroupListResponse.prototype.toObject = function(opt_includeInstance) {
2996
+ return proto.wechaty.puppet.TagGroupListResponse.toObject(opt_includeInstance, this);
2997
+ };
2998
+
2999
+
3000
+ /**
3001
+ * Static version of the {@see toObject} method.
3002
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3003
+ * the JSPB instance for transitional soy proto support:
3004
+ * http://goto/soy-param-migration
3005
+ * @param {!proto.wechaty.puppet.TagGroupListResponse} msg The msg instance to transform.
3006
+ * @return {!Object}
3007
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3008
+ */
3009
+ proto.wechaty.puppet.TagGroupListResponse.toObject = function(includeInstance, msg) {
3010
+ var f, obj = {
3011
+ tagGroupIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
3012
+ };
3013
+
3014
+ if (includeInstance) {
3015
+ obj.$jspbMessageInstance = msg;
3016
+ }
3017
+ return obj;
3018
+ };
3019
+ }
3020
+
3021
+
3022
+ /**
3023
+ * Deserializes binary data (in protobuf wire format).
3024
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3025
+ * @return {!proto.wechaty.puppet.TagGroupListResponse}
3026
+ */
3027
+ proto.wechaty.puppet.TagGroupListResponse.deserializeBinary = function(bytes) {
3028
+ var reader = new jspb.BinaryReader(bytes);
3029
+ var msg = new proto.wechaty.puppet.TagGroupListResponse;
3030
+ return proto.wechaty.puppet.TagGroupListResponse.deserializeBinaryFromReader(msg, reader);
3031
+ };
3032
+
3033
+
3034
+ /**
3035
+ * Deserializes binary data (in protobuf wire format) from the
3036
+ * given reader into the given message object.
3037
+ * @param {!proto.wechaty.puppet.TagGroupListResponse} msg The message object to deserialize into.
3038
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3039
+ * @return {!proto.wechaty.puppet.TagGroupListResponse}
3040
+ */
3041
+ proto.wechaty.puppet.TagGroupListResponse.deserializeBinaryFromReader = function(msg, reader) {
3042
+ while (reader.nextField()) {
3043
+ if (reader.isEndGroup()) {
3044
+ break;
3045
+ }
3046
+ var field = reader.getFieldNumber();
3047
+ switch (field) {
3048
+ case 1:
3049
+ var value = /** @type {string} */ (reader.readString());
3050
+ msg.addTagGroupIds(value);
3051
+ break;
3052
+ default:
3053
+ reader.skipField();
3054
+ break;
3055
+ }
3056
+ }
3057
+ return msg;
3058
+ };
3059
+
3060
+
3061
+ /**
3062
+ * Serializes the message to binary data (in protobuf wire format).
3063
+ * @return {!Uint8Array}
3064
+ */
3065
+ proto.wechaty.puppet.TagGroupListResponse.prototype.serializeBinary = function() {
3066
+ var writer = new jspb.BinaryWriter();
3067
+ proto.wechaty.puppet.TagGroupListResponse.serializeBinaryToWriter(this, writer);
3068
+ return writer.getResultBuffer();
3069
+ };
3070
+
3071
+
3072
+ /**
3073
+ * Serializes the given message to binary data (in protobuf wire
3074
+ * format), writing to the given BinaryWriter.
3075
+ * @param {!proto.wechaty.puppet.TagGroupListResponse} message
3076
+ * @param {!jspb.BinaryWriter} writer
3077
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3078
+ */
3079
+ proto.wechaty.puppet.TagGroupListResponse.serializeBinaryToWriter = function(message, writer) {
3080
+ var f = undefined;
3081
+ f = message.getTagGroupIdsList();
3082
+ if (f.length > 0) {
3083
+ writer.writeRepeatedString(
3084
+ 1,
3085
+ f
3086
+ );
3087
+ }
3088
+ };
3089
+
3090
+
3091
+ /**
3092
+ * repeated string tag_group_ids = 1;
3093
+ * @return {!Array<string>}
3094
+ */
3095
+ proto.wechaty.puppet.TagGroupListResponse.prototype.getTagGroupIdsList = function() {
3096
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
3097
+ };
3098
+
3099
+
3100
+ /**
3101
+ * @param {!Array<string>} value
3102
+ * @return {!proto.wechaty.puppet.TagGroupListResponse} returns this
3103
+ */
3104
+ proto.wechaty.puppet.TagGroupListResponse.prototype.setTagGroupIdsList = function(value) {
3105
+ return jspb.Message.setField(this, 1, value || []);
3106
+ };
3107
+
3108
+
3109
+ /**
3110
+ * @param {string} value
3111
+ * @param {number=} opt_index
3112
+ * @return {!proto.wechaty.puppet.TagGroupListResponse} returns this
3113
+ */
3114
+ proto.wechaty.puppet.TagGroupListResponse.prototype.addTagGroupIds = function(value, opt_index) {
3115
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
3116
+ };
3117
+
3118
+
3119
+ /**
3120
+ * Clears the list making it empty but non-null.
3121
+ * @return {!proto.wechaty.puppet.TagGroupListResponse} returns this
3122
+ */
3123
+ proto.wechaty.puppet.TagGroupListResponse.prototype.clearTagGroupIdsList = function() {
3124
+ return this.setTagGroupIdsList([]);
3125
+ };
3126
+
3127
+
3128
+
3129
+
3130
+
3131
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3132
+ /**
3133
+ * Creates an object representation of this proto.
3134
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3135
+ * Optional fields that are not set will be set to undefined.
3136
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3137
+ * For the list of reserved names please see:
3138
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3139
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3140
+ * JSPB instance for transitional soy proto support:
3141
+ * http://goto/soy-param-migration
3142
+ * @return {!Object}
3143
+ */
3144
+ proto.wechaty.puppet.TagGroupTagListRequest.prototype.toObject = function(opt_includeInstance) {
3145
+ return proto.wechaty.puppet.TagGroupTagListRequest.toObject(opt_includeInstance, this);
3146
+ };
3147
+
3148
+
3149
+ /**
3150
+ * Static version of the {@see toObject} method.
3151
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3152
+ * the JSPB instance for transitional soy proto support:
3153
+ * http://goto/soy-param-migration
3154
+ * @param {!proto.wechaty.puppet.TagGroupTagListRequest} msg The msg instance to transform.
3155
+ * @return {!Object}
3156
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3157
+ */
3158
+ proto.wechaty.puppet.TagGroupTagListRequest.toObject = function(includeInstance, msg) {
3159
+ var f, obj = {
3160
+ tagGroupId: jspb.Message.getFieldWithDefault(msg, 1, "")
3161
+ };
3162
+
3163
+ if (includeInstance) {
3164
+ obj.$jspbMessageInstance = msg;
3165
+ }
3166
+ return obj;
3167
+ };
3168
+ }
3169
+
3170
+
3171
+ /**
3172
+ * Deserializes binary data (in protobuf wire format).
3173
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3174
+ * @return {!proto.wechaty.puppet.TagGroupTagListRequest}
3175
+ */
3176
+ proto.wechaty.puppet.TagGroupTagListRequest.deserializeBinary = function(bytes) {
3177
+ var reader = new jspb.BinaryReader(bytes);
3178
+ var msg = new proto.wechaty.puppet.TagGroupTagListRequest;
3179
+ return proto.wechaty.puppet.TagGroupTagListRequest.deserializeBinaryFromReader(msg, reader);
3180
+ };
3181
+
3182
+
3183
+ /**
3184
+ * Deserializes binary data (in protobuf wire format) from the
3185
+ * given reader into the given message object.
3186
+ * @param {!proto.wechaty.puppet.TagGroupTagListRequest} msg The message object to deserialize into.
3187
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3188
+ * @return {!proto.wechaty.puppet.TagGroupTagListRequest}
3189
+ */
3190
+ proto.wechaty.puppet.TagGroupTagListRequest.deserializeBinaryFromReader = function(msg, reader) {
3191
+ while (reader.nextField()) {
3192
+ if (reader.isEndGroup()) {
3193
+ break;
3194
+ }
3195
+ var field = reader.getFieldNumber();
3196
+ switch (field) {
3197
+ case 1:
3198
+ var value = /** @type {string} */ (reader.readString());
3199
+ msg.setTagGroupId(value);
3200
+ break;
3201
+ default:
3202
+ reader.skipField();
3203
+ break;
3204
+ }
3205
+ }
3206
+ return msg;
3207
+ };
3208
+
3209
+
3210
+ /**
3211
+ * Serializes the message to binary data (in protobuf wire format).
3212
+ * @return {!Uint8Array}
3213
+ */
3214
+ proto.wechaty.puppet.TagGroupTagListRequest.prototype.serializeBinary = function() {
3215
+ var writer = new jspb.BinaryWriter();
3216
+ proto.wechaty.puppet.TagGroupTagListRequest.serializeBinaryToWriter(this, writer);
3217
+ return writer.getResultBuffer();
3218
+ };
3219
+
3220
+
3221
+ /**
3222
+ * Serializes the given message to binary data (in protobuf wire
3223
+ * format), writing to the given BinaryWriter.
3224
+ * @param {!proto.wechaty.puppet.TagGroupTagListRequest} message
3225
+ * @param {!jspb.BinaryWriter} writer
3226
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3227
+ */
3228
+ proto.wechaty.puppet.TagGroupTagListRequest.serializeBinaryToWriter = function(message, writer) {
3229
+ var f = undefined;
3230
+ f = message.getTagGroupId();
3231
+ if (f.length > 0) {
3232
+ writer.writeString(
3233
+ 1,
3234
+ f
3235
+ );
3236
+ }
3237
+ };
3238
+
3239
+
3240
+ /**
3241
+ * optional string tag_group_id = 1;
3242
+ * @return {string}
3243
+ */
3244
+ proto.wechaty.puppet.TagGroupTagListRequest.prototype.getTagGroupId = function() {
3245
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3246
+ };
3247
+
3248
+
3249
+ /**
3250
+ * @param {string} value
3251
+ * @return {!proto.wechaty.puppet.TagGroupTagListRequest} returns this
3252
+ */
3253
+ proto.wechaty.puppet.TagGroupTagListRequest.prototype.setTagGroupId = function(value) {
3254
+ return jspb.Message.setProto3StringField(this, 1, value);
3255
+ };
3256
+
3257
+
3258
+
3259
+ /**
3260
+ * List of repeated fields within this message type.
3261
+ * @private {!Array<number>}
3262
+ * @const
3263
+ */
3264
+ proto.wechaty.puppet.TagGroupTagListResponse.repeatedFields_ = [1];
3265
+
3266
+
3267
+
3268
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3269
+ /**
3270
+ * Creates an object representation of this proto.
3271
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3272
+ * Optional fields that are not set will be set to undefined.
3273
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3274
+ * For the list of reserved names please see:
3275
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3276
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3277
+ * JSPB instance for transitional soy proto support:
3278
+ * http://goto/soy-param-migration
3279
+ * @return {!Object}
3280
+ */
3281
+ proto.wechaty.puppet.TagGroupTagListResponse.prototype.toObject = function(opt_includeInstance) {
3282
+ return proto.wechaty.puppet.TagGroupTagListResponse.toObject(opt_includeInstance, this);
3283
+ };
3284
+
3285
+
3286
+ /**
3287
+ * Static version of the {@see toObject} method.
3288
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3289
+ * the JSPB instance for transitional soy proto support:
3290
+ * http://goto/soy-param-migration
3291
+ * @param {!proto.wechaty.puppet.TagGroupTagListResponse} msg The msg instance to transform.
3292
+ * @return {!Object}
3293
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3294
+ */
3295
+ proto.wechaty.puppet.TagGroupTagListResponse.toObject = function(includeInstance, msg) {
3296
+ var f, obj = {
3297
+ tagsList: jspb.Message.toObjectList(msg.getTagsList(),
3298
+ proto.wechaty.puppet.TagIdentifier.toObject, includeInstance)
3299
+ };
3300
+
3301
+ if (includeInstance) {
3302
+ obj.$jspbMessageInstance = msg;
3303
+ }
3304
+ return obj;
3305
+ };
3306
+ }
3307
+
3308
+
3309
+ /**
3310
+ * Deserializes binary data (in protobuf wire format).
3311
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3312
+ * @return {!proto.wechaty.puppet.TagGroupTagListResponse}
3313
+ */
3314
+ proto.wechaty.puppet.TagGroupTagListResponse.deserializeBinary = function(bytes) {
3315
+ var reader = new jspb.BinaryReader(bytes);
3316
+ var msg = new proto.wechaty.puppet.TagGroupTagListResponse;
3317
+ return proto.wechaty.puppet.TagGroupTagListResponse.deserializeBinaryFromReader(msg, reader);
3318
+ };
3319
+
3320
+
3321
+ /**
3322
+ * Deserializes binary data (in protobuf wire format) from the
3323
+ * given reader into the given message object.
3324
+ * @param {!proto.wechaty.puppet.TagGroupTagListResponse} msg The message object to deserialize into.
3325
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3326
+ * @return {!proto.wechaty.puppet.TagGroupTagListResponse}
3327
+ */
3328
+ proto.wechaty.puppet.TagGroupTagListResponse.deserializeBinaryFromReader = function(msg, reader) {
3329
+ while (reader.nextField()) {
3330
+ if (reader.isEndGroup()) {
3331
+ break;
3332
+ }
3333
+ var field = reader.getFieldNumber();
3334
+ switch (field) {
3335
+ case 1:
3336
+ var value = new proto.wechaty.puppet.TagIdentifier;
3337
+ reader.readMessage(value,proto.wechaty.puppet.TagIdentifier.deserializeBinaryFromReader);
3338
+ msg.addTags(value);
3339
+ break;
3340
+ default:
3341
+ reader.skipField();
3342
+ break;
3343
+ }
3344
+ }
3345
+ return msg;
3346
+ };
3347
+
3348
+
3349
+ /**
3350
+ * Serializes the message to binary data (in protobuf wire format).
3351
+ * @return {!Uint8Array}
3352
+ */
3353
+ proto.wechaty.puppet.TagGroupTagListResponse.prototype.serializeBinary = function() {
3354
+ var writer = new jspb.BinaryWriter();
3355
+ proto.wechaty.puppet.TagGroupTagListResponse.serializeBinaryToWriter(this, writer);
3356
+ return writer.getResultBuffer();
3357
+ };
3358
+
3359
+
3360
+ /**
3361
+ * Serializes the given message to binary data (in protobuf wire
3362
+ * format), writing to the given BinaryWriter.
3363
+ * @param {!proto.wechaty.puppet.TagGroupTagListResponse} message
3364
+ * @param {!jspb.BinaryWriter} writer
3365
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3366
+ */
3367
+ proto.wechaty.puppet.TagGroupTagListResponse.serializeBinaryToWriter = function(message, writer) {
3368
+ var f = undefined;
3369
+ f = message.getTagsList();
3370
+ if (f.length > 0) {
3371
+ writer.writeRepeatedMessage(
3372
+ 1,
3373
+ f,
3374
+ proto.wechaty.puppet.TagIdentifier.serializeBinaryToWriter
3375
+ );
3376
+ }
3377
+ };
3378
+
3379
+
3380
+ /**
3381
+ * repeated TagIdentifier tags = 1;
3382
+ * @return {!Array<!proto.wechaty.puppet.TagIdentifier>}
3383
+ */
3384
+ proto.wechaty.puppet.TagGroupTagListResponse.prototype.getTagsList = function() {
3385
+ return /** @type{!Array<!proto.wechaty.puppet.TagIdentifier>} */ (
3386
+ jspb.Message.getRepeatedWrapperField(this, proto.wechaty.puppet.TagIdentifier, 1));
3387
+ };
3388
+
3389
+
3390
+ /**
3391
+ * @param {!Array<!proto.wechaty.puppet.TagIdentifier>} value
3392
+ * @return {!proto.wechaty.puppet.TagGroupTagListResponse} returns this
3393
+ */
3394
+ proto.wechaty.puppet.TagGroupTagListResponse.prototype.setTagsList = function(value) {
3395
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
3396
+ };
3397
+
3398
+
3399
+ /**
3400
+ * @param {!proto.wechaty.puppet.TagIdentifier=} opt_value
3401
+ * @param {number=} opt_index
3402
+ * @return {!proto.wechaty.puppet.TagIdentifier}
3403
+ */
3404
+ proto.wechaty.puppet.TagGroupTagListResponse.prototype.addTags = function(opt_value, opt_index) {
3405
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.wechaty.puppet.TagIdentifier, opt_index);
3406
+ };
3407
+
3408
+
3409
+ /**
3410
+ * Clears the list making it empty but non-null.
3411
+ * @return {!proto.wechaty.puppet.TagGroupTagListResponse} returns this
3412
+ */
3413
+ proto.wechaty.puppet.TagGroupTagListResponse.prototype.clearTagsList = function() {
3414
+ return this.setTagsList([]);
3415
+ };
3416
+
3417
+
3418
+
3419
+
3420
+
3421
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3422
+ /**
3423
+ * Creates an object representation of this proto.
3424
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3425
+ * Optional fields that are not set will be set to undefined.
3426
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3427
+ * For the list of reserved names please see:
3428
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3429
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3430
+ * JSPB instance for transitional soy proto support:
3431
+ * http://goto/soy-param-migration
3432
+ * @return {!Object}
3433
+ */
3434
+ proto.wechaty.puppet.TagTagListRequest.prototype.toObject = function(opt_includeInstance) {
3435
+ return proto.wechaty.puppet.TagTagListRequest.toObject(opt_includeInstance, this);
3436
+ };
3437
+
3438
+
3439
+ /**
3440
+ * Static version of the {@see toObject} method.
3441
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3442
+ * the JSPB instance for transitional soy proto support:
3443
+ * http://goto/soy-param-migration
3444
+ * @param {!proto.wechaty.puppet.TagTagListRequest} msg The msg instance to transform.
3445
+ * @return {!Object}
3446
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3447
+ */
3448
+ proto.wechaty.puppet.TagTagListRequest.toObject = function(includeInstance, msg) {
3449
+ var f, obj = {
3450
+
3451
+ };
3452
+
3453
+ if (includeInstance) {
3454
+ obj.$jspbMessageInstance = msg;
3455
+ }
3456
+ return obj;
3457
+ };
3458
+ }
3459
+
3460
+
3461
+ /**
3462
+ * Deserializes binary data (in protobuf wire format).
3463
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3464
+ * @return {!proto.wechaty.puppet.TagTagListRequest}
3465
+ */
3466
+ proto.wechaty.puppet.TagTagListRequest.deserializeBinary = function(bytes) {
3467
+ var reader = new jspb.BinaryReader(bytes);
3468
+ var msg = new proto.wechaty.puppet.TagTagListRequest;
3469
+ return proto.wechaty.puppet.TagTagListRequest.deserializeBinaryFromReader(msg, reader);
3470
+ };
3471
+
3472
+
3473
+ /**
3474
+ * Deserializes binary data (in protobuf wire format) from the
3475
+ * given reader into the given message object.
3476
+ * @param {!proto.wechaty.puppet.TagTagListRequest} msg The message object to deserialize into.
3477
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3478
+ * @return {!proto.wechaty.puppet.TagTagListRequest}
3479
+ */
3480
+ proto.wechaty.puppet.TagTagListRequest.deserializeBinaryFromReader = function(msg, reader) {
3481
+ while (reader.nextField()) {
3482
+ if (reader.isEndGroup()) {
3483
+ break;
3484
+ }
3485
+ var field = reader.getFieldNumber();
3486
+ switch (field) {
3487
+ default:
3488
+ reader.skipField();
3489
+ break;
3490
+ }
3491
+ }
3492
+ return msg;
3493
+ };
3494
+
3495
+
3496
+ /**
3497
+ * Serializes the message to binary data (in protobuf wire format).
3498
+ * @return {!Uint8Array}
3499
+ */
3500
+ proto.wechaty.puppet.TagTagListRequest.prototype.serializeBinary = function() {
3501
+ var writer = new jspb.BinaryWriter();
3502
+ proto.wechaty.puppet.TagTagListRequest.serializeBinaryToWriter(this, writer);
3503
+ return writer.getResultBuffer();
3504
+ };
3505
+
3506
+
3507
+ /**
3508
+ * Serializes the given message to binary data (in protobuf wire
3509
+ * format), writing to the given BinaryWriter.
3510
+ * @param {!proto.wechaty.puppet.TagTagListRequest} message
3511
+ * @param {!jspb.BinaryWriter} writer
3512
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3513
+ */
3514
+ proto.wechaty.puppet.TagTagListRequest.serializeBinaryToWriter = function(message, writer) {
3515
+ var f = undefined;
3516
+ };
3517
+
3518
+
3519
+
3520
+ /**
3521
+ * List of repeated fields within this message type.
3522
+ * @private {!Array<number>}
3523
+ * @const
3524
+ */
3525
+ proto.wechaty.puppet.TagTagListResponse.repeatedFields_ = [1];
3526
+
3527
+
3528
+
3529
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3530
+ /**
3531
+ * Creates an object representation of this proto.
3532
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3533
+ * Optional fields that are not set will be set to undefined.
3534
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3535
+ * For the list of reserved names please see:
3536
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3537
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3538
+ * JSPB instance for transitional soy proto support:
3539
+ * http://goto/soy-param-migration
3540
+ * @return {!Object}
3541
+ */
3542
+ proto.wechaty.puppet.TagTagListResponse.prototype.toObject = function(opt_includeInstance) {
3543
+ return proto.wechaty.puppet.TagTagListResponse.toObject(opt_includeInstance, this);
3544
+ };
3545
+
3546
+
3547
+ /**
3548
+ * Static version of the {@see toObject} method.
3549
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3550
+ * the JSPB instance for transitional soy proto support:
3551
+ * http://goto/soy-param-migration
3552
+ * @param {!proto.wechaty.puppet.TagTagListResponse} msg The msg instance to transform.
3553
+ * @return {!Object}
3554
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3555
+ */
3556
+ proto.wechaty.puppet.TagTagListResponse.toObject = function(includeInstance, msg) {
3557
+ var f, obj = {
3558
+ tagsList: jspb.Message.toObjectList(msg.getTagsList(),
3559
+ proto.wechaty.puppet.TagIdentifier.toObject, includeInstance)
3560
+ };
3561
+
3562
+ if (includeInstance) {
3563
+ obj.$jspbMessageInstance = msg;
3564
+ }
3565
+ return obj;
3566
+ };
3567
+ }
3568
+
3569
+
3570
+ /**
3571
+ * Deserializes binary data (in protobuf wire format).
3572
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3573
+ * @return {!proto.wechaty.puppet.TagTagListResponse}
3574
+ */
3575
+ proto.wechaty.puppet.TagTagListResponse.deserializeBinary = function(bytes) {
3576
+ var reader = new jspb.BinaryReader(bytes);
3577
+ var msg = new proto.wechaty.puppet.TagTagListResponse;
3578
+ return proto.wechaty.puppet.TagTagListResponse.deserializeBinaryFromReader(msg, reader);
3579
+ };
3580
+
3581
+
3582
+ /**
3583
+ * Deserializes binary data (in protobuf wire format) from the
3584
+ * given reader into the given message object.
3585
+ * @param {!proto.wechaty.puppet.TagTagListResponse} msg The message object to deserialize into.
3586
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3587
+ * @return {!proto.wechaty.puppet.TagTagListResponse}
3588
+ */
3589
+ proto.wechaty.puppet.TagTagListResponse.deserializeBinaryFromReader = function(msg, reader) {
3590
+ while (reader.nextField()) {
3591
+ if (reader.isEndGroup()) {
3592
+ break;
3593
+ }
3594
+ var field = reader.getFieldNumber();
3595
+ switch (field) {
3596
+ case 1:
3597
+ var value = new proto.wechaty.puppet.TagIdentifier;
3598
+ reader.readMessage(value,proto.wechaty.puppet.TagIdentifier.deserializeBinaryFromReader);
3599
+ msg.addTags(value);
3600
+ break;
3601
+ default:
3602
+ reader.skipField();
3603
+ break;
3604
+ }
3605
+ }
3606
+ return msg;
3607
+ };
3608
+
3609
+
3610
+ /**
3611
+ * Serializes the message to binary data (in protobuf wire format).
3612
+ * @return {!Uint8Array}
3613
+ */
3614
+ proto.wechaty.puppet.TagTagListResponse.prototype.serializeBinary = function() {
3615
+ var writer = new jspb.BinaryWriter();
3616
+ proto.wechaty.puppet.TagTagListResponse.serializeBinaryToWriter(this, writer);
3617
+ return writer.getResultBuffer();
3618
+ };
3619
+
3620
+
3621
+ /**
3622
+ * Serializes the given message to binary data (in protobuf wire
3623
+ * format), writing to the given BinaryWriter.
3624
+ * @param {!proto.wechaty.puppet.TagTagListResponse} message
3625
+ * @param {!jspb.BinaryWriter} writer
3626
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3627
+ */
3628
+ proto.wechaty.puppet.TagTagListResponse.serializeBinaryToWriter = function(message, writer) {
3629
+ var f = undefined;
3630
+ f = message.getTagsList();
3631
+ if (f.length > 0) {
3632
+ writer.writeRepeatedMessage(
3633
+ 1,
3634
+ f,
3635
+ proto.wechaty.puppet.TagIdentifier.serializeBinaryToWriter
3636
+ );
3637
+ }
3638
+ };
3639
+
3640
+
3641
+ /**
3642
+ * repeated TagIdentifier tags = 1;
3643
+ * @return {!Array<!proto.wechaty.puppet.TagIdentifier>}
3644
+ */
3645
+ proto.wechaty.puppet.TagTagListResponse.prototype.getTagsList = function() {
3646
+ return /** @type{!Array<!proto.wechaty.puppet.TagIdentifier>} */ (
3647
+ jspb.Message.getRepeatedWrapperField(this, proto.wechaty.puppet.TagIdentifier, 1));
3648
+ };
3649
+
3650
+
3651
+ /**
3652
+ * @param {!Array<!proto.wechaty.puppet.TagIdentifier>} value
3653
+ * @return {!proto.wechaty.puppet.TagTagListResponse} returns this
3654
+ */
3655
+ proto.wechaty.puppet.TagTagListResponse.prototype.setTagsList = function(value) {
3656
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
3657
+ };
3658
+
3659
+
3660
+ /**
3661
+ * @param {!proto.wechaty.puppet.TagIdentifier=} opt_value
3662
+ * @param {number=} opt_index
3663
+ * @return {!proto.wechaty.puppet.TagIdentifier}
3664
+ */
3665
+ proto.wechaty.puppet.TagTagListResponse.prototype.addTags = function(opt_value, opt_index) {
3666
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.wechaty.puppet.TagIdentifier, opt_index);
3667
+ };
3668
+
3669
+
3670
+ /**
3671
+ * Clears the list making it empty but non-null.
3672
+ * @return {!proto.wechaty.puppet.TagTagListResponse} returns this
184
3673
  */
185
- proto.wechaty.puppet.TagContactListResponse = function(opt_data) {
186
- jspb.Message.initialize(this, opt_data, 0, -1, proto.wechaty.puppet.TagContactListResponse.repeatedFields_, null);
3674
+ proto.wechaty.puppet.TagTagListResponse.prototype.clearTagsList = function() {
3675
+ return this.setTagsList([]);
187
3676
  };
188
- goog.inherits(proto.wechaty.puppet.TagContactListResponse, jspb.Message);
189
- if (goog.DEBUG && !COMPILED) {
190
- /**
191
- * @public
192
- * @override
193
- */
194
- proto.wechaty.puppet.TagContactListResponse.displayName = 'proto.wechaty.puppet.TagContactListResponse';
195
- }
3677
+
3678
+
196
3679
 
197
3680
 
198
3681
 
@@ -209,8 +3692,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
209
3692
  * http://goto/soy-param-migration
210
3693
  * @return {!Object}
211
3694
  */
212
- proto.wechaty.puppet.TagContactAddRequest.prototype.toObject = function(opt_includeInstance) {
213
- return proto.wechaty.puppet.TagContactAddRequest.toObject(opt_includeInstance, this);
3695
+ proto.wechaty.puppet.TagContactTagListRequest.prototype.toObject = function(opt_includeInstance) {
3696
+ return proto.wechaty.puppet.TagContactTagListRequest.toObject(opt_includeInstance, this);
214
3697
  };
215
3698
 
216
3699
 
@@ -219,14 +3702,13 @@ proto.wechaty.puppet.TagContactAddRequest.prototype.toObject = function(opt_incl
219
3702
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
220
3703
  * the JSPB instance for transitional soy proto support:
221
3704
  * http://goto/soy-param-migration
222
- * @param {!proto.wechaty.puppet.TagContactAddRequest} msg The msg instance to transform.
3705
+ * @param {!proto.wechaty.puppet.TagContactTagListRequest} msg The msg instance to transform.
223
3706
  * @return {!Object}
224
3707
  * @suppress {unusedLocalVariables} f is only used for nested messages
225
3708
  */
226
- proto.wechaty.puppet.TagContactAddRequest.toObject = function(includeInstance, msg) {
3709
+ proto.wechaty.puppet.TagContactTagListRequest.toObject = function(includeInstance, msg) {
227
3710
  var f, obj = {
228
- id: jspb.Message.getFieldWithDefault(msg, 1, ""),
229
- contactId: jspb.Message.getFieldWithDefault(msg, 2, "")
3711
+ contactId: jspb.Message.getFieldWithDefault(msg, 1, "")
230
3712
  };
231
3713
 
232
3714
  if (includeInstance) {
@@ -240,23 +3722,23 @@ proto.wechaty.puppet.TagContactAddRequest.toObject = function(includeInstance, m
240
3722
  /**
241
3723
  * Deserializes binary data (in protobuf wire format).
242
3724
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
243
- * @return {!proto.wechaty.puppet.TagContactAddRequest}
3725
+ * @return {!proto.wechaty.puppet.TagContactTagListRequest}
244
3726
  */
245
- proto.wechaty.puppet.TagContactAddRequest.deserializeBinary = function(bytes) {
3727
+ proto.wechaty.puppet.TagContactTagListRequest.deserializeBinary = function(bytes) {
246
3728
  var reader = new jspb.BinaryReader(bytes);
247
- var msg = new proto.wechaty.puppet.TagContactAddRequest;
248
- return proto.wechaty.puppet.TagContactAddRequest.deserializeBinaryFromReader(msg, reader);
3729
+ var msg = new proto.wechaty.puppet.TagContactTagListRequest;
3730
+ return proto.wechaty.puppet.TagContactTagListRequest.deserializeBinaryFromReader(msg, reader);
249
3731
  };
250
3732
 
251
3733
 
252
3734
  /**
253
3735
  * Deserializes binary data (in protobuf wire format) from the
254
3736
  * given reader into the given message object.
255
- * @param {!proto.wechaty.puppet.TagContactAddRequest} msg The message object to deserialize into.
3737
+ * @param {!proto.wechaty.puppet.TagContactTagListRequest} msg The message object to deserialize into.
256
3738
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
257
- * @return {!proto.wechaty.puppet.TagContactAddRequest}
3739
+ * @return {!proto.wechaty.puppet.TagContactTagListRequest}
258
3740
  */
259
- proto.wechaty.puppet.TagContactAddRequest.deserializeBinaryFromReader = function(msg, reader) {
3741
+ proto.wechaty.puppet.TagContactTagListRequest.deserializeBinaryFromReader = function(msg, reader) {
260
3742
  while (reader.nextField()) {
261
3743
  if (reader.isEndGroup()) {
262
3744
  break;
@@ -264,10 +3746,6 @@ proto.wechaty.puppet.TagContactAddRequest.deserializeBinaryFromReader = function
264
3746
  var field = reader.getFieldNumber();
265
3747
  switch (field) {
266
3748
  case 1:
267
- var value = /** @type {string} */ (reader.readString());
268
- msg.setId(value);
269
- break;
270
- case 2:
271
3749
  var value = /** @type {string} */ (reader.readString());
272
3750
  msg.setContactId(value);
273
3751
  break;
@@ -284,9 +3762,9 @@ proto.wechaty.puppet.TagContactAddRequest.deserializeBinaryFromReader = function
284
3762
  * Serializes the message to binary data (in protobuf wire format).
285
3763
  * @return {!Uint8Array}
286
3764
  */
287
- proto.wechaty.puppet.TagContactAddRequest.prototype.serializeBinary = function() {
3765
+ proto.wechaty.puppet.TagContactTagListRequest.prototype.serializeBinary = function() {
288
3766
  var writer = new jspb.BinaryWriter();
289
- proto.wechaty.puppet.TagContactAddRequest.serializeBinaryToWriter(this, writer);
3767
+ proto.wechaty.puppet.TagContactTagListRequest.serializeBinaryToWriter(this, writer);
290
3768
  return writer.getResultBuffer();
291
3769
  };
292
3770
 
@@ -294,23 +3772,16 @@ proto.wechaty.puppet.TagContactAddRequest.prototype.serializeBinary = function()
294
3772
  /**
295
3773
  * Serializes the given message to binary data (in protobuf wire
296
3774
  * format), writing to the given BinaryWriter.
297
- * @param {!proto.wechaty.puppet.TagContactAddRequest} message
3775
+ * @param {!proto.wechaty.puppet.TagContactTagListRequest} message
298
3776
  * @param {!jspb.BinaryWriter} writer
299
3777
  * @suppress {unusedLocalVariables} f is only used for nested messages
300
3778
  */
301
- proto.wechaty.puppet.TagContactAddRequest.serializeBinaryToWriter = function(message, writer) {
3779
+ proto.wechaty.puppet.TagContactTagListRequest.serializeBinaryToWriter = function(message, writer) {
302
3780
  var f = undefined;
303
- f = message.getId();
304
- if (f.length > 0) {
305
- writer.writeString(
306
- 1,
307
- f
308
- );
309
- }
310
3781
  f = message.getContactId();
311
3782
  if (f.length > 0) {
312
3783
  writer.writeString(
313
- 2,
3784
+ 1,
314
3785
  f
315
3786
  );
316
3787
  }
@@ -318,41 +3789,30 @@ proto.wechaty.puppet.TagContactAddRequest.serializeBinaryToWriter = function(mes
318
3789
 
319
3790
 
320
3791
  /**
321
- * optional string id = 1;
3792
+ * optional string contact_id = 1;
322
3793
  * @return {string}
323
3794
  */
324
- proto.wechaty.puppet.TagContactAddRequest.prototype.getId = function() {
3795
+ proto.wechaty.puppet.TagContactTagListRequest.prototype.getContactId = function() {
325
3796
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
326
3797
  };
327
3798
 
328
3799
 
329
3800
  /**
330
3801
  * @param {string} value
331
- * @return {!proto.wechaty.puppet.TagContactAddRequest} returns this
3802
+ * @return {!proto.wechaty.puppet.TagContactTagListRequest} returns this
332
3803
  */
333
- proto.wechaty.puppet.TagContactAddRequest.prototype.setId = function(value) {
3804
+ proto.wechaty.puppet.TagContactTagListRequest.prototype.setContactId = function(value) {
334
3805
  return jspb.Message.setProto3StringField(this, 1, value);
335
3806
  };
336
3807
 
337
3808
 
338
- /**
339
- * optional string contact_id = 2;
340
- * @return {string}
341
- */
342
- proto.wechaty.puppet.TagContactAddRequest.prototype.getContactId = function() {
343
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
344
- };
345
-
346
3809
 
347
3810
  /**
348
- * @param {string} value
349
- * @return {!proto.wechaty.puppet.TagContactAddRequest} returns this
3811
+ * List of repeated fields within this message type.
3812
+ * @private {!Array<number>}
3813
+ * @const
350
3814
  */
351
- proto.wechaty.puppet.TagContactAddRequest.prototype.setContactId = function(value) {
352
- return jspb.Message.setProto3StringField(this, 2, value);
353
- };
354
-
355
-
3815
+ proto.wechaty.puppet.TagContactTagListResponse.repeatedFields_ = [1];
356
3816
 
357
3817
 
358
3818
 
@@ -369,8 +3829,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
369
3829
  * http://goto/soy-param-migration
370
3830
  * @return {!Object}
371
3831
  */
372
- proto.wechaty.puppet.TagContactAddResponse.prototype.toObject = function(opt_includeInstance) {
373
- return proto.wechaty.puppet.TagContactAddResponse.toObject(opt_includeInstance, this);
3832
+ proto.wechaty.puppet.TagContactTagListResponse.prototype.toObject = function(opt_includeInstance) {
3833
+ return proto.wechaty.puppet.TagContactTagListResponse.toObject(opt_includeInstance, this);
374
3834
  };
375
3835
 
376
3836
 
@@ -379,13 +3839,14 @@ proto.wechaty.puppet.TagContactAddResponse.prototype.toObject = function(opt_inc
379
3839
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
380
3840
  * the JSPB instance for transitional soy proto support:
381
3841
  * http://goto/soy-param-migration
382
- * @param {!proto.wechaty.puppet.TagContactAddResponse} msg The msg instance to transform.
3842
+ * @param {!proto.wechaty.puppet.TagContactTagListResponse} msg The msg instance to transform.
383
3843
  * @return {!Object}
384
3844
  * @suppress {unusedLocalVariables} f is only used for nested messages
385
3845
  */
386
- proto.wechaty.puppet.TagContactAddResponse.toObject = function(includeInstance, msg) {
3846
+ proto.wechaty.puppet.TagContactTagListResponse.toObject = function(includeInstance, msg) {
387
3847
  var f, obj = {
388
-
3848
+ tagsList: jspb.Message.toObjectList(msg.getTagsList(),
3849
+ proto.wechaty.puppet.TagIdentifier.toObject, includeInstance)
389
3850
  };
390
3851
 
391
3852
  if (includeInstance) {
@@ -399,29 +3860,34 @@ proto.wechaty.puppet.TagContactAddResponse.toObject = function(includeInstance,
399
3860
  /**
400
3861
  * Deserializes binary data (in protobuf wire format).
401
3862
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
402
- * @return {!proto.wechaty.puppet.TagContactAddResponse}
3863
+ * @return {!proto.wechaty.puppet.TagContactTagListResponse}
403
3864
  */
404
- proto.wechaty.puppet.TagContactAddResponse.deserializeBinary = function(bytes) {
3865
+ proto.wechaty.puppet.TagContactTagListResponse.deserializeBinary = function(bytes) {
405
3866
  var reader = new jspb.BinaryReader(bytes);
406
- var msg = new proto.wechaty.puppet.TagContactAddResponse;
407
- return proto.wechaty.puppet.TagContactAddResponse.deserializeBinaryFromReader(msg, reader);
3867
+ var msg = new proto.wechaty.puppet.TagContactTagListResponse;
3868
+ return proto.wechaty.puppet.TagContactTagListResponse.deserializeBinaryFromReader(msg, reader);
408
3869
  };
409
3870
 
410
3871
 
411
3872
  /**
412
3873
  * Deserializes binary data (in protobuf wire format) from the
413
3874
  * given reader into the given message object.
414
- * @param {!proto.wechaty.puppet.TagContactAddResponse} msg The message object to deserialize into.
3875
+ * @param {!proto.wechaty.puppet.TagContactTagListResponse} msg The message object to deserialize into.
415
3876
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
416
- * @return {!proto.wechaty.puppet.TagContactAddResponse}
3877
+ * @return {!proto.wechaty.puppet.TagContactTagListResponse}
417
3878
  */
418
- proto.wechaty.puppet.TagContactAddResponse.deserializeBinaryFromReader = function(msg, reader) {
3879
+ proto.wechaty.puppet.TagContactTagListResponse.deserializeBinaryFromReader = function(msg, reader) {
419
3880
  while (reader.nextField()) {
420
3881
  if (reader.isEndGroup()) {
421
3882
  break;
422
3883
  }
423
3884
  var field = reader.getFieldNumber();
424
3885
  switch (field) {
3886
+ case 1:
3887
+ var value = new proto.wechaty.puppet.TagIdentifier;
3888
+ reader.readMessage(value,proto.wechaty.puppet.TagIdentifier.deserializeBinaryFromReader);
3889
+ msg.addTags(value);
3890
+ break;
425
3891
  default:
426
3892
  reader.skipField();
427
3893
  break;
@@ -435,9 +3901,9 @@ proto.wechaty.puppet.TagContactAddResponse.deserializeBinaryFromReader = functio
435
3901
  * Serializes the message to binary data (in protobuf wire format).
436
3902
  * @return {!Uint8Array}
437
3903
  */
438
- proto.wechaty.puppet.TagContactAddResponse.prototype.serializeBinary = function() {
3904
+ proto.wechaty.puppet.TagContactTagListResponse.prototype.serializeBinary = function() {
439
3905
  var writer = new jspb.BinaryWriter();
440
- proto.wechaty.puppet.TagContactAddResponse.serializeBinaryToWriter(this, writer);
3906
+ proto.wechaty.puppet.TagContactTagListResponse.serializeBinaryToWriter(this, writer);
441
3907
  return writer.getResultBuffer();
442
3908
  };
443
3909
 
@@ -445,12 +3911,58 @@ proto.wechaty.puppet.TagContactAddResponse.prototype.serializeBinary = function(
445
3911
  /**
446
3912
  * Serializes the given message to binary data (in protobuf wire
447
3913
  * format), writing to the given BinaryWriter.
448
- * @param {!proto.wechaty.puppet.TagContactAddResponse} message
3914
+ * @param {!proto.wechaty.puppet.TagContactTagListResponse} message
449
3915
  * @param {!jspb.BinaryWriter} writer
450
3916
  * @suppress {unusedLocalVariables} f is only used for nested messages
451
3917
  */
452
- proto.wechaty.puppet.TagContactAddResponse.serializeBinaryToWriter = function(message, writer) {
3918
+ proto.wechaty.puppet.TagContactTagListResponse.serializeBinaryToWriter = function(message, writer) {
453
3919
  var f = undefined;
3920
+ f = message.getTagsList();
3921
+ if (f.length > 0) {
3922
+ writer.writeRepeatedMessage(
3923
+ 1,
3924
+ f,
3925
+ proto.wechaty.puppet.TagIdentifier.serializeBinaryToWriter
3926
+ );
3927
+ }
3928
+ };
3929
+
3930
+
3931
+ /**
3932
+ * repeated TagIdentifier tags = 1;
3933
+ * @return {!Array<!proto.wechaty.puppet.TagIdentifier>}
3934
+ */
3935
+ proto.wechaty.puppet.TagContactTagListResponse.prototype.getTagsList = function() {
3936
+ return /** @type{!Array<!proto.wechaty.puppet.TagIdentifier>} */ (
3937
+ jspb.Message.getRepeatedWrapperField(this, proto.wechaty.puppet.TagIdentifier, 1));
3938
+ };
3939
+
3940
+
3941
+ /**
3942
+ * @param {!Array<!proto.wechaty.puppet.TagIdentifier>} value
3943
+ * @return {!proto.wechaty.puppet.TagContactTagListResponse} returns this
3944
+ */
3945
+ proto.wechaty.puppet.TagContactTagListResponse.prototype.setTagsList = function(value) {
3946
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
3947
+ };
3948
+
3949
+
3950
+ /**
3951
+ * @param {!proto.wechaty.puppet.TagIdentifier=} opt_value
3952
+ * @param {number=} opt_index
3953
+ * @return {!proto.wechaty.puppet.TagIdentifier}
3954
+ */
3955
+ proto.wechaty.puppet.TagContactTagListResponse.prototype.addTags = function(opt_value, opt_index) {
3956
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.wechaty.puppet.TagIdentifier, opt_index);
3957
+ };
3958
+
3959
+
3960
+ /**
3961
+ * Clears the list making it empty but non-null.
3962
+ * @return {!proto.wechaty.puppet.TagContactTagListResponse} returns this
3963
+ */
3964
+ proto.wechaty.puppet.TagContactTagListResponse.prototype.clearTagsList = function() {
3965
+ return this.setTagsList([]);
454
3966
  };
455
3967
 
456
3968
 
@@ -470,8 +3982,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
470
3982
  * http://goto/soy-param-migration
471
3983
  * @return {!Object}
472
3984
  */
473
- proto.wechaty.puppet.TagContactRemoveRequest.prototype.toObject = function(opt_includeInstance) {
474
- return proto.wechaty.puppet.TagContactRemoveRequest.toObject(opt_includeInstance, this);
3985
+ proto.wechaty.puppet.TagTagContactListRequest.prototype.toObject = function(opt_includeInstance) {
3986
+ return proto.wechaty.puppet.TagTagContactListRequest.toObject(opt_includeInstance, this);
475
3987
  };
476
3988
 
477
3989
 
@@ -480,14 +3992,13 @@ proto.wechaty.puppet.TagContactRemoveRequest.prototype.toObject = function(opt_i
480
3992
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
481
3993
  * the JSPB instance for transitional soy proto support:
482
3994
  * http://goto/soy-param-migration
483
- * @param {!proto.wechaty.puppet.TagContactRemoveRequest} msg The msg instance to transform.
3995
+ * @param {!proto.wechaty.puppet.TagTagContactListRequest} msg The msg instance to transform.
484
3996
  * @return {!Object}
485
3997
  * @suppress {unusedLocalVariables} f is only used for nested messages
486
3998
  */
487
- proto.wechaty.puppet.TagContactRemoveRequest.toObject = function(includeInstance, msg) {
3999
+ proto.wechaty.puppet.TagTagContactListRequest.toObject = function(includeInstance, msg) {
488
4000
  var f, obj = {
489
- id: jspb.Message.getFieldWithDefault(msg, 1, ""),
490
- contactId: jspb.Message.getFieldWithDefault(msg, 2, "")
4001
+ tag: (f = msg.getTag()) && proto.wechaty.puppet.TagIdentifier.toObject(includeInstance, f)
491
4002
  };
492
4003
 
493
4004
  if (includeInstance) {
@@ -501,23 +4012,23 @@ proto.wechaty.puppet.TagContactRemoveRequest.toObject = function(includeInstance
501
4012
  /**
502
4013
  * Deserializes binary data (in protobuf wire format).
503
4014
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
504
- * @return {!proto.wechaty.puppet.TagContactRemoveRequest}
4015
+ * @return {!proto.wechaty.puppet.TagTagContactListRequest}
505
4016
  */
506
- proto.wechaty.puppet.TagContactRemoveRequest.deserializeBinary = function(bytes) {
4017
+ proto.wechaty.puppet.TagTagContactListRequest.deserializeBinary = function(bytes) {
507
4018
  var reader = new jspb.BinaryReader(bytes);
508
- var msg = new proto.wechaty.puppet.TagContactRemoveRequest;
509
- return proto.wechaty.puppet.TagContactRemoveRequest.deserializeBinaryFromReader(msg, reader);
4019
+ var msg = new proto.wechaty.puppet.TagTagContactListRequest;
4020
+ return proto.wechaty.puppet.TagTagContactListRequest.deserializeBinaryFromReader(msg, reader);
510
4021
  };
511
4022
 
512
4023
 
513
4024
  /**
514
4025
  * Deserializes binary data (in protobuf wire format) from the
515
4026
  * given reader into the given message object.
516
- * @param {!proto.wechaty.puppet.TagContactRemoveRequest} msg The message object to deserialize into.
4027
+ * @param {!proto.wechaty.puppet.TagTagContactListRequest} msg The message object to deserialize into.
517
4028
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
518
- * @return {!proto.wechaty.puppet.TagContactRemoveRequest}
4029
+ * @return {!proto.wechaty.puppet.TagTagContactListRequest}
519
4030
  */
520
- proto.wechaty.puppet.TagContactRemoveRequest.deserializeBinaryFromReader = function(msg, reader) {
4031
+ proto.wechaty.puppet.TagTagContactListRequest.deserializeBinaryFromReader = function(msg, reader) {
521
4032
  while (reader.nextField()) {
522
4033
  if (reader.isEndGroup()) {
523
4034
  break;
@@ -525,12 +4036,9 @@ proto.wechaty.puppet.TagContactRemoveRequest.deserializeBinaryFromReader = funct
525
4036
  var field = reader.getFieldNumber();
526
4037
  switch (field) {
527
4038
  case 1:
528
- var value = /** @type {string} */ (reader.readString());
529
- msg.setId(value);
530
- break;
531
- case 2:
532
- var value = /** @type {string} */ (reader.readString());
533
- msg.setContactId(value);
4039
+ var value = new proto.wechaty.puppet.TagIdentifier;
4040
+ reader.readMessage(value,proto.wechaty.puppet.TagIdentifier.deserializeBinaryFromReader);
4041
+ msg.setTag(value);
534
4042
  break;
535
4043
  default:
536
4044
  reader.skipField();
@@ -545,9 +4053,9 @@ proto.wechaty.puppet.TagContactRemoveRequest.deserializeBinaryFromReader = funct
545
4053
  * Serializes the message to binary data (in protobuf wire format).
546
4054
  * @return {!Uint8Array}
547
4055
  */
548
- proto.wechaty.puppet.TagContactRemoveRequest.prototype.serializeBinary = function() {
4056
+ proto.wechaty.puppet.TagTagContactListRequest.prototype.serializeBinary = function() {
549
4057
  var writer = new jspb.BinaryWriter();
550
- proto.wechaty.puppet.TagContactRemoveRequest.serializeBinaryToWriter(this, writer);
4058
+ proto.wechaty.puppet.TagTagContactListRequest.serializeBinaryToWriter(this, writer);
551
4059
  return writer.getResultBuffer();
552
4060
  };
553
4061
 
@@ -555,66 +4063,68 @@ proto.wechaty.puppet.TagContactRemoveRequest.prototype.serializeBinary = functio
555
4063
  /**
556
4064
  * Serializes the given message to binary data (in protobuf wire
557
4065
  * format), writing to the given BinaryWriter.
558
- * @param {!proto.wechaty.puppet.TagContactRemoveRequest} message
4066
+ * @param {!proto.wechaty.puppet.TagTagContactListRequest} message
559
4067
  * @param {!jspb.BinaryWriter} writer
560
4068
  * @suppress {unusedLocalVariables} f is only used for nested messages
561
4069
  */
562
- proto.wechaty.puppet.TagContactRemoveRequest.serializeBinaryToWriter = function(message, writer) {
4070
+ proto.wechaty.puppet.TagTagContactListRequest.serializeBinaryToWriter = function(message, writer) {
563
4071
  var f = undefined;
564
- f = message.getId();
565
- if (f.length > 0) {
566
- writer.writeString(
4072
+ f = message.getTag();
4073
+ if (f != null) {
4074
+ writer.writeMessage(
567
4075
  1,
568
- f
569
- );
570
- }
571
- f = message.getContactId();
572
- if (f.length > 0) {
573
- writer.writeString(
574
- 2,
575
- f
4076
+ f,
4077
+ proto.wechaty.puppet.TagIdentifier.serializeBinaryToWriter
576
4078
  );
577
4079
  }
578
4080
  };
579
4081
 
580
4082
 
581
4083
  /**
582
- * optional string id = 1;
583
- * @return {string}
4084
+ * optional TagIdentifier tag = 1;
4085
+ * @return {?proto.wechaty.puppet.TagIdentifier}
584
4086
  */
585
- proto.wechaty.puppet.TagContactRemoveRequest.prototype.getId = function() {
586
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
4087
+ proto.wechaty.puppet.TagTagContactListRequest.prototype.getTag = function() {
4088
+ return /** @type{?proto.wechaty.puppet.TagIdentifier} */ (
4089
+ jspb.Message.getWrapperField(this, proto.wechaty.puppet.TagIdentifier, 1));
587
4090
  };
588
4091
 
589
4092
 
590
4093
  /**
591
- * @param {string} value
592
- * @return {!proto.wechaty.puppet.TagContactRemoveRequest} returns this
593
- */
594
- proto.wechaty.puppet.TagContactRemoveRequest.prototype.setId = function(value) {
595
- return jspb.Message.setProto3StringField(this, 1, value);
4094
+ * @param {?proto.wechaty.puppet.TagIdentifier|undefined} value
4095
+ * @return {!proto.wechaty.puppet.TagTagContactListRequest} returns this
4096
+ */
4097
+ proto.wechaty.puppet.TagTagContactListRequest.prototype.setTag = function(value) {
4098
+ return jspb.Message.setWrapperField(this, 1, value);
596
4099
  };
597
4100
 
598
4101
 
599
4102
  /**
600
- * optional string contact_id = 2;
601
- * @return {string}
4103
+ * Clears the message field making it undefined.
4104
+ * @return {!proto.wechaty.puppet.TagTagContactListRequest} returns this
602
4105
  */
603
- proto.wechaty.puppet.TagContactRemoveRequest.prototype.getContactId = function() {
604
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
4106
+ proto.wechaty.puppet.TagTagContactListRequest.prototype.clearTag = function() {
4107
+ return this.setTag(undefined);
605
4108
  };
606
4109
 
607
4110
 
608
4111
  /**
609
- * @param {string} value
610
- * @return {!proto.wechaty.puppet.TagContactRemoveRequest} returns this
4112
+ * Returns whether this field is set.
4113
+ * @return {boolean}
611
4114
  */
612
- proto.wechaty.puppet.TagContactRemoveRequest.prototype.setContactId = function(value) {
613
- return jspb.Message.setProto3StringField(this, 2, value);
4115
+ proto.wechaty.puppet.TagTagContactListRequest.prototype.hasTag = function() {
4116
+ return jspb.Message.getField(this, 1) != null;
614
4117
  };
615
4118
 
616
4119
 
617
4120
 
4121
+ /**
4122
+ * List of repeated fields within this message type.
4123
+ * @private {!Array<number>}
4124
+ * @const
4125
+ */
4126
+ proto.wechaty.puppet.TagTagContactListResponse.repeatedFields_ = [1];
4127
+
618
4128
 
619
4129
 
620
4130
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -630,8 +4140,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
630
4140
  * http://goto/soy-param-migration
631
4141
  * @return {!Object}
632
4142
  */
633
- proto.wechaty.puppet.TagContactRemoveResponse.prototype.toObject = function(opt_includeInstance) {
634
- return proto.wechaty.puppet.TagContactRemoveResponse.toObject(opt_includeInstance, this);
4143
+ proto.wechaty.puppet.TagTagContactListResponse.prototype.toObject = function(opt_includeInstance) {
4144
+ return proto.wechaty.puppet.TagTagContactListResponse.toObject(opt_includeInstance, this);
635
4145
  };
636
4146
 
637
4147
 
@@ -640,13 +4150,13 @@ proto.wechaty.puppet.TagContactRemoveResponse.prototype.toObject = function(opt_
640
4150
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
641
4151
  * the JSPB instance for transitional soy proto support:
642
4152
  * http://goto/soy-param-migration
643
- * @param {!proto.wechaty.puppet.TagContactRemoveResponse} msg The msg instance to transform.
4153
+ * @param {!proto.wechaty.puppet.TagTagContactListResponse} msg The msg instance to transform.
644
4154
  * @return {!Object}
645
4155
  * @suppress {unusedLocalVariables} f is only used for nested messages
646
4156
  */
647
- proto.wechaty.puppet.TagContactRemoveResponse.toObject = function(includeInstance, msg) {
4157
+ proto.wechaty.puppet.TagTagContactListResponse.toObject = function(includeInstance, msg) {
648
4158
  var f, obj = {
649
-
4159
+ contactIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
650
4160
  };
651
4161
 
652
4162
  if (includeInstance) {
@@ -660,29 +4170,33 @@ proto.wechaty.puppet.TagContactRemoveResponse.toObject = function(includeInstanc
660
4170
  /**
661
4171
  * Deserializes binary data (in protobuf wire format).
662
4172
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
663
- * @return {!proto.wechaty.puppet.TagContactRemoveResponse}
4173
+ * @return {!proto.wechaty.puppet.TagTagContactListResponse}
664
4174
  */
665
- proto.wechaty.puppet.TagContactRemoveResponse.deserializeBinary = function(bytes) {
4175
+ proto.wechaty.puppet.TagTagContactListResponse.deserializeBinary = function(bytes) {
666
4176
  var reader = new jspb.BinaryReader(bytes);
667
- var msg = new proto.wechaty.puppet.TagContactRemoveResponse;
668
- return proto.wechaty.puppet.TagContactRemoveResponse.deserializeBinaryFromReader(msg, reader);
4177
+ var msg = new proto.wechaty.puppet.TagTagContactListResponse;
4178
+ return proto.wechaty.puppet.TagTagContactListResponse.deserializeBinaryFromReader(msg, reader);
669
4179
  };
670
4180
 
671
4181
 
672
4182
  /**
673
4183
  * Deserializes binary data (in protobuf wire format) from the
674
4184
  * given reader into the given message object.
675
- * @param {!proto.wechaty.puppet.TagContactRemoveResponse} msg The message object to deserialize into.
4185
+ * @param {!proto.wechaty.puppet.TagTagContactListResponse} msg The message object to deserialize into.
676
4186
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
677
- * @return {!proto.wechaty.puppet.TagContactRemoveResponse}
4187
+ * @return {!proto.wechaty.puppet.TagTagContactListResponse}
678
4188
  */
679
- proto.wechaty.puppet.TagContactRemoveResponse.deserializeBinaryFromReader = function(msg, reader) {
4189
+ proto.wechaty.puppet.TagTagContactListResponse.deserializeBinaryFromReader = function(msg, reader) {
680
4190
  while (reader.nextField()) {
681
4191
  if (reader.isEndGroup()) {
682
4192
  break;
683
4193
  }
684
4194
  var field = reader.getFieldNumber();
685
4195
  switch (field) {
4196
+ case 1:
4197
+ var value = /** @type {string} */ (reader.readString());
4198
+ msg.addContactIds(value);
4199
+ break;
686
4200
  default:
687
4201
  reader.skipField();
688
4202
  break;
@@ -696,9 +4210,9 @@ proto.wechaty.puppet.TagContactRemoveResponse.deserializeBinaryFromReader = func
696
4210
  * Serializes the message to binary data (in protobuf wire format).
697
4211
  * @return {!Uint8Array}
698
4212
  */
699
- proto.wechaty.puppet.TagContactRemoveResponse.prototype.serializeBinary = function() {
4213
+ proto.wechaty.puppet.TagTagContactListResponse.prototype.serializeBinary = function() {
700
4214
  var writer = new jspb.BinaryWriter();
701
- proto.wechaty.puppet.TagContactRemoveResponse.serializeBinaryToWriter(this, writer);
4215
+ proto.wechaty.puppet.TagTagContactListResponse.serializeBinaryToWriter(this, writer);
702
4216
  return writer.getResultBuffer();
703
4217
  };
704
4218
 
@@ -706,12 +4220,56 @@ proto.wechaty.puppet.TagContactRemoveResponse.prototype.serializeBinary = functi
706
4220
  /**
707
4221
  * Serializes the given message to binary data (in protobuf wire
708
4222
  * format), writing to the given BinaryWriter.
709
- * @param {!proto.wechaty.puppet.TagContactRemoveResponse} message
4223
+ * @param {!proto.wechaty.puppet.TagTagContactListResponse} message
710
4224
  * @param {!jspb.BinaryWriter} writer
711
4225
  * @suppress {unusedLocalVariables} f is only used for nested messages
712
4226
  */
713
- proto.wechaty.puppet.TagContactRemoveResponse.serializeBinaryToWriter = function(message, writer) {
4227
+ proto.wechaty.puppet.TagTagContactListResponse.serializeBinaryToWriter = function(message, writer) {
714
4228
  var f = undefined;
4229
+ f = message.getContactIdsList();
4230
+ if (f.length > 0) {
4231
+ writer.writeRepeatedString(
4232
+ 1,
4233
+ f
4234
+ );
4235
+ }
4236
+ };
4237
+
4238
+
4239
+ /**
4240
+ * repeated string contact_ids = 1;
4241
+ * @return {!Array<string>}
4242
+ */
4243
+ proto.wechaty.puppet.TagTagContactListResponse.prototype.getContactIdsList = function() {
4244
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
4245
+ };
4246
+
4247
+
4248
+ /**
4249
+ * @param {!Array<string>} value
4250
+ * @return {!proto.wechaty.puppet.TagTagContactListResponse} returns this
4251
+ */
4252
+ proto.wechaty.puppet.TagTagContactListResponse.prototype.setContactIdsList = function(value) {
4253
+ return jspb.Message.setField(this, 1, value || []);
4254
+ };
4255
+
4256
+
4257
+ /**
4258
+ * @param {string} value
4259
+ * @param {number=} opt_index
4260
+ * @return {!proto.wechaty.puppet.TagTagContactListResponse} returns this
4261
+ */
4262
+ proto.wechaty.puppet.TagTagContactListResponse.prototype.addContactIds = function(value, opt_index) {
4263
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
4264
+ };
4265
+
4266
+
4267
+ /**
4268
+ * Clears the list making it empty but non-null.
4269
+ * @return {!proto.wechaty.puppet.TagTagContactListResponse} returns this
4270
+ */
4271
+ proto.wechaty.puppet.TagTagContactListResponse.prototype.clearContactIdsList = function() {
4272
+ return this.setContactIdsList([]);
715
4273
  };
716
4274
 
717
4275
 
@@ -731,8 +4289,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
731
4289
  * http://goto/soy-param-migration
732
4290
  * @return {!Object}
733
4291
  */
734
- proto.wechaty.puppet.TagContactDeleteRequest.prototype.toObject = function(opt_includeInstance) {
735
- return proto.wechaty.puppet.TagContactDeleteRequest.toObject(opt_includeInstance, this);
4292
+ proto.wechaty.puppet.TagGroupPayloadRequest.prototype.toObject = function(opt_includeInstance) {
4293
+ return proto.wechaty.puppet.TagGroupPayloadRequest.toObject(opt_includeInstance, this);
736
4294
  };
737
4295
 
738
4296
 
@@ -741,13 +4299,13 @@ proto.wechaty.puppet.TagContactDeleteRequest.prototype.toObject = function(opt_i
741
4299
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
742
4300
  * the JSPB instance for transitional soy proto support:
743
4301
  * http://goto/soy-param-migration
744
- * @param {!proto.wechaty.puppet.TagContactDeleteRequest} msg The msg instance to transform.
4302
+ * @param {!proto.wechaty.puppet.TagGroupPayloadRequest} msg The msg instance to transform.
745
4303
  * @return {!Object}
746
4304
  * @suppress {unusedLocalVariables} f is only used for nested messages
747
4305
  */
748
- proto.wechaty.puppet.TagContactDeleteRequest.toObject = function(includeInstance, msg) {
4306
+ proto.wechaty.puppet.TagGroupPayloadRequest.toObject = function(includeInstance, msg) {
749
4307
  var f, obj = {
750
- id: jspb.Message.getFieldWithDefault(msg, 1, "")
4308
+ groupId: jspb.Message.getFieldWithDefault(msg, 1, "")
751
4309
  };
752
4310
 
753
4311
  if (includeInstance) {
@@ -761,23 +4319,23 @@ proto.wechaty.puppet.TagContactDeleteRequest.toObject = function(includeInstance
761
4319
  /**
762
4320
  * Deserializes binary data (in protobuf wire format).
763
4321
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
764
- * @return {!proto.wechaty.puppet.TagContactDeleteRequest}
4322
+ * @return {!proto.wechaty.puppet.TagGroupPayloadRequest}
765
4323
  */
766
- proto.wechaty.puppet.TagContactDeleteRequest.deserializeBinary = function(bytes) {
4324
+ proto.wechaty.puppet.TagGroupPayloadRequest.deserializeBinary = function(bytes) {
767
4325
  var reader = new jspb.BinaryReader(bytes);
768
- var msg = new proto.wechaty.puppet.TagContactDeleteRequest;
769
- return proto.wechaty.puppet.TagContactDeleteRequest.deserializeBinaryFromReader(msg, reader);
4326
+ var msg = new proto.wechaty.puppet.TagGroupPayloadRequest;
4327
+ return proto.wechaty.puppet.TagGroupPayloadRequest.deserializeBinaryFromReader(msg, reader);
770
4328
  };
771
4329
 
772
4330
 
773
4331
  /**
774
4332
  * Deserializes binary data (in protobuf wire format) from the
775
4333
  * given reader into the given message object.
776
- * @param {!proto.wechaty.puppet.TagContactDeleteRequest} msg The message object to deserialize into.
4334
+ * @param {!proto.wechaty.puppet.TagGroupPayloadRequest} msg The message object to deserialize into.
777
4335
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
778
- * @return {!proto.wechaty.puppet.TagContactDeleteRequest}
4336
+ * @return {!proto.wechaty.puppet.TagGroupPayloadRequest}
779
4337
  */
780
- proto.wechaty.puppet.TagContactDeleteRequest.deserializeBinaryFromReader = function(msg, reader) {
4338
+ proto.wechaty.puppet.TagGroupPayloadRequest.deserializeBinaryFromReader = function(msg, reader) {
781
4339
  while (reader.nextField()) {
782
4340
  if (reader.isEndGroup()) {
783
4341
  break;
@@ -786,7 +4344,7 @@ proto.wechaty.puppet.TagContactDeleteRequest.deserializeBinaryFromReader = funct
786
4344
  switch (field) {
787
4345
  case 1:
788
4346
  var value = /** @type {string} */ (reader.readString());
789
- msg.setId(value);
4347
+ msg.setGroupId(value);
790
4348
  break;
791
4349
  default:
792
4350
  reader.skipField();
@@ -801,9 +4359,9 @@ proto.wechaty.puppet.TagContactDeleteRequest.deserializeBinaryFromReader = funct
801
4359
  * Serializes the message to binary data (in protobuf wire format).
802
4360
  * @return {!Uint8Array}
803
4361
  */
804
- proto.wechaty.puppet.TagContactDeleteRequest.prototype.serializeBinary = function() {
4362
+ proto.wechaty.puppet.TagGroupPayloadRequest.prototype.serializeBinary = function() {
805
4363
  var writer = new jspb.BinaryWriter();
806
- proto.wechaty.puppet.TagContactDeleteRequest.serializeBinaryToWriter(this, writer);
4364
+ proto.wechaty.puppet.TagGroupPayloadRequest.serializeBinaryToWriter(this, writer);
807
4365
  return writer.getResultBuffer();
808
4366
  };
809
4367
 
@@ -811,13 +4369,13 @@ proto.wechaty.puppet.TagContactDeleteRequest.prototype.serializeBinary = functio
811
4369
  /**
812
4370
  * Serializes the given message to binary data (in protobuf wire
813
4371
  * format), writing to the given BinaryWriter.
814
- * @param {!proto.wechaty.puppet.TagContactDeleteRequest} message
4372
+ * @param {!proto.wechaty.puppet.TagGroupPayloadRequest} message
815
4373
  * @param {!jspb.BinaryWriter} writer
816
4374
  * @suppress {unusedLocalVariables} f is only used for nested messages
817
4375
  */
818
- proto.wechaty.puppet.TagContactDeleteRequest.serializeBinaryToWriter = function(message, writer) {
4376
+ proto.wechaty.puppet.TagGroupPayloadRequest.serializeBinaryToWriter = function(message, writer) {
819
4377
  var f = undefined;
820
- f = message.getId();
4378
+ f = message.getGroupId();
821
4379
  if (f.length > 0) {
822
4380
  writer.writeString(
823
4381
  1,
@@ -828,19 +4386,19 @@ proto.wechaty.puppet.TagContactDeleteRequest.serializeBinaryToWriter = function(
828
4386
 
829
4387
 
830
4388
  /**
831
- * optional string id = 1;
4389
+ * optional string group_id = 1;
832
4390
  * @return {string}
833
4391
  */
834
- proto.wechaty.puppet.TagContactDeleteRequest.prototype.getId = function() {
4392
+ proto.wechaty.puppet.TagGroupPayloadRequest.prototype.getGroupId = function() {
835
4393
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
836
4394
  };
837
4395
 
838
4396
 
839
4397
  /**
840
4398
  * @param {string} value
841
- * @return {!proto.wechaty.puppet.TagContactDeleteRequest} returns this
4399
+ * @return {!proto.wechaty.puppet.TagGroupPayloadRequest} returns this
842
4400
  */
843
- proto.wechaty.puppet.TagContactDeleteRequest.prototype.setId = function(value) {
4401
+ proto.wechaty.puppet.TagGroupPayloadRequest.prototype.setGroupId = function(value) {
844
4402
  return jspb.Message.setProto3StringField(this, 1, value);
845
4403
  };
846
4404
 
@@ -861,8 +4419,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
861
4419
  * http://goto/soy-param-migration
862
4420
  * @return {!Object}
863
4421
  */
864
- proto.wechaty.puppet.TagContactDeleteResponse.prototype.toObject = function(opt_includeInstance) {
865
- return proto.wechaty.puppet.TagContactDeleteResponse.toObject(opt_includeInstance, this);
4422
+ proto.wechaty.puppet.TagGroupPayloadResponse.prototype.toObject = function(opt_includeInstance) {
4423
+ return proto.wechaty.puppet.TagGroupPayloadResponse.toObject(opt_includeInstance, this);
866
4424
  };
867
4425
 
868
4426
 
@@ -871,13 +4429,13 @@ proto.wechaty.puppet.TagContactDeleteResponse.prototype.toObject = function(opt_
871
4429
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
872
4430
  * the JSPB instance for transitional soy proto support:
873
4431
  * http://goto/soy-param-migration
874
- * @param {!proto.wechaty.puppet.TagContactDeleteResponse} msg The msg instance to transform.
4432
+ * @param {!proto.wechaty.puppet.TagGroupPayloadResponse} msg The msg instance to transform.
875
4433
  * @return {!Object}
876
4434
  * @suppress {unusedLocalVariables} f is only used for nested messages
877
4435
  */
878
- proto.wechaty.puppet.TagContactDeleteResponse.toObject = function(includeInstance, msg) {
4436
+ proto.wechaty.puppet.TagGroupPayloadResponse.toObject = function(includeInstance, msg) {
879
4437
  var f, obj = {
880
-
4438
+ payload: (f = msg.getPayload()) && proto.wechaty.puppet.TagGroupPayload.toObject(includeInstance, f)
881
4439
  };
882
4440
 
883
4441
  if (includeInstance) {
@@ -891,29 +4449,34 @@ proto.wechaty.puppet.TagContactDeleteResponse.toObject = function(includeInstanc
891
4449
  /**
892
4450
  * Deserializes binary data (in protobuf wire format).
893
4451
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
894
- * @return {!proto.wechaty.puppet.TagContactDeleteResponse}
4452
+ * @return {!proto.wechaty.puppet.TagGroupPayloadResponse}
895
4453
  */
896
- proto.wechaty.puppet.TagContactDeleteResponse.deserializeBinary = function(bytes) {
4454
+ proto.wechaty.puppet.TagGroupPayloadResponse.deserializeBinary = function(bytes) {
897
4455
  var reader = new jspb.BinaryReader(bytes);
898
- var msg = new proto.wechaty.puppet.TagContactDeleteResponse;
899
- return proto.wechaty.puppet.TagContactDeleteResponse.deserializeBinaryFromReader(msg, reader);
4456
+ var msg = new proto.wechaty.puppet.TagGroupPayloadResponse;
4457
+ return proto.wechaty.puppet.TagGroupPayloadResponse.deserializeBinaryFromReader(msg, reader);
900
4458
  };
901
4459
 
902
4460
 
903
4461
  /**
904
4462
  * Deserializes binary data (in protobuf wire format) from the
905
4463
  * given reader into the given message object.
906
- * @param {!proto.wechaty.puppet.TagContactDeleteResponse} msg The message object to deserialize into.
4464
+ * @param {!proto.wechaty.puppet.TagGroupPayloadResponse} msg The message object to deserialize into.
907
4465
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
908
- * @return {!proto.wechaty.puppet.TagContactDeleteResponse}
4466
+ * @return {!proto.wechaty.puppet.TagGroupPayloadResponse}
909
4467
  */
910
- proto.wechaty.puppet.TagContactDeleteResponse.deserializeBinaryFromReader = function(msg, reader) {
4468
+ proto.wechaty.puppet.TagGroupPayloadResponse.deserializeBinaryFromReader = function(msg, reader) {
911
4469
  while (reader.nextField()) {
912
4470
  if (reader.isEndGroup()) {
913
4471
  break;
914
4472
  }
915
4473
  var field = reader.getFieldNumber();
916
4474
  switch (field) {
4475
+ case 1:
4476
+ var value = new proto.wechaty.puppet.TagGroupPayload;
4477
+ reader.readMessage(value,proto.wechaty.puppet.TagGroupPayload.deserializeBinaryFromReader);
4478
+ msg.setPayload(value);
4479
+ break;
917
4480
  default:
918
4481
  reader.skipField();
919
4482
  break;
@@ -927,9 +4490,9 @@ proto.wechaty.puppet.TagContactDeleteResponse.deserializeBinaryFromReader = func
927
4490
  * Serializes the message to binary data (in protobuf wire format).
928
4491
  * @return {!Uint8Array}
929
4492
  */
930
- proto.wechaty.puppet.TagContactDeleteResponse.prototype.serializeBinary = function() {
4493
+ proto.wechaty.puppet.TagGroupPayloadResponse.prototype.serializeBinary = function() {
931
4494
  var writer = new jspb.BinaryWriter();
932
- proto.wechaty.puppet.TagContactDeleteResponse.serializeBinaryToWriter(this, writer);
4495
+ proto.wechaty.puppet.TagGroupPayloadResponse.serializeBinaryToWriter(this, writer);
933
4496
  return writer.getResultBuffer();
934
4497
  };
935
4498
 
@@ -937,12 +4500,57 @@ proto.wechaty.puppet.TagContactDeleteResponse.prototype.serializeBinary = functi
937
4500
  /**
938
4501
  * Serializes the given message to binary data (in protobuf wire
939
4502
  * format), writing to the given BinaryWriter.
940
- * @param {!proto.wechaty.puppet.TagContactDeleteResponse} message
4503
+ * @param {!proto.wechaty.puppet.TagGroupPayloadResponse} message
941
4504
  * @param {!jspb.BinaryWriter} writer
942
4505
  * @suppress {unusedLocalVariables} f is only used for nested messages
943
4506
  */
944
- proto.wechaty.puppet.TagContactDeleteResponse.serializeBinaryToWriter = function(message, writer) {
4507
+ proto.wechaty.puppet.TagGroupPayloadResponse.serializeBinaryToWriter = function(message, writer) {
945
4508
  var f = undefined;
4509
+ f = message.getPayload();
4510
+ if (f != null) {
4511
+ writer.writeMessage(
4512
+ 1,
4513
+ f,
4514
+ proto.wechaty.puppet.TagGroupPayload.serializeBinaryToWriter
4515
+ );
4516
+ }
4517
+ };
4518
+
4519
+
4520
+ /**
4521
+ * optional TagGroupPayload payload = 1;
4522
+ * @return {?proto.wechaty.puppet.TagGroupPayload}
4523
+ */
4524
+ proto.wechaty.puppet.TagGroupPayloadResponse.prototype.getPayload = function() {
4525
+ return /** @type{?proto.wechaty.puppet.TagGroupPayload} */ (
4526
+ jspb.Message.getWrapperField(this, proto.wechaty.puppet.TagGroupPayload, 1));
4527
+ };
4528
+
4529
+
4530
+ /**
4531
+ * @param {?proto.wechaty.puppet.TagGroupPayload|undefined} value
4532
+ * @return {!proto.wechaty.puppet.TagGroupPayloadResponse} returns this
4533
+ */
4534
+ proto.wechaty.puppet.TagGroupPayloadResponse.prototype.setPayload = function(value) {
4535
+ return jspb.Message.setWrapperField(this, 1, value);
4536
+ };
4537
+
4538
+
4539
+ /**
4540
+ * Clears the message field making it undefined.
4541
+ * @return {!proto.wechaty.puppet.TagGroupPayloadResponse} returns this
4542
+ */
4543
+ proto.wechaty.puppet.TagGroupPayloadResponse.prototype.clearPayload = function() {
4544
+ return this.setPayload(undefined);
4545
+ };
4546
+
4547
+
4548
+ /**
4549
+ * Returns whether this field is set.
4550
+ * @return {boolean}
4551
+ */
4552
+ proto.wechaty.puppet.TagGroupPayloadResponse.prototype.hasPayload = function() {
4553
+ return jspb.Message.getField(this, 1) != null;
946
4554
  };
947
4555
 
948
4556
 
@@ -962,8 +4570,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
962
4570
  * http://goto/soy-param-migration
963
4571
  * @return {!Object}
964
4572
  */
965
- proto.wechaty.puppet.TagContactListRequest.prototype.toObject = function(opt_includeInstance) {
966
- return proto.wechaty.puppet.TagContactListRequest.toObject(opt_includeInstance, this);
4573
+ proto.wechaty.puppet.TagPayloadRequest.prototype.toObject = function(opt_includeInstance) {
4574
+ return proto.wechaty.puppet.TagPayloadRequest.toObject(opt_includeInstance, this);
967
4575
  };
968
4576
 
969
4577
 
@@ -972,14 +4580,13 @@ proto.wechaty.puppet.TagContactListRequest.prototype.toObject = function(opt_inc
972
4580
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
973
4581
  * the JSPB instance for transitional soy proto support:
974
4582
  * http://goto/soy-param-migration
975
- * @param {!proto.wechaty.puppet.TagContactListRequest} msg The msg instance to transform.
4583
+ * @param {!proto.wechaty.puppet.TagPayloadRequest} msg The msg instance to transform.
976
4584
  * @return {!Object}
977
4585
  * @suppress {unusedLocalVariables} f is only used for nested messages
978
4586
  */
979
- proto.wechaty.puppet.TagContactListRequest.toObject = function(includeInstance, msg) {
4587
+ proto.wechaty.puppet.TagPayloadRequest.toObject = function(includeInstance, msg) {
980
4588
  var f, obj = {
981
- contactIdStringValueDeprecated: (f = msg.getContactIdStringValueDeprecated()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
982
- contactId: jspb.Message.getFieldWithDefault(msg, 2, "")
4589
+ tag: (f = msg.getTag()) && proto.wechaty.puppet.TagIdentifier.toObject(includeInstance, f)
983
4590
  };
984
4591
 
985
4592
  if (includeInstance) {
@@ -993,23 +4600,23 @@ proto.wechaty.puppet.TagContactListRequest.toObject = function(includeInstance,
993
4600
  /**
994
4601
  * Deserializes binary data (in protobuf wire format).
995
4602
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
996
- * @return {!proto.wechaty.puppet.TagContactListRequest}
4603
+ * @return {!proto.wechaty.puppet.TagPayloadRequest}
997
4604
  */
998
- proto.wechaty.puppet.TagContactListRequest.deserializeBinary = function(bytes) {
4605
+ proto.wechaty.puppet.TagPayloadRequest.deserializeBinary = function(bytes) {
999
4606
  var reader = new jspb.BinaryReader(bytes);
1000
- var msg = new proto.wechaty.puppet.TagContactListRequest;
1001
- return proto.wechaty.puppet.TagContactListRequest.deserializeBinaryFromReader(msg, reader);
4607
+ var msg = new proto.wechaty.puppet.TagPayloadRequest;
4608
+ return proto.wechaty.puppet.TagPayloadRequest.deserializeBinaryFromReader(msg, reader);
1002
4609
  };
1003
4610
 
1004
4611
 
1005
4612
  /**
1006
4613
  * Deserializes binary data (in protobuf wire format) from the
1007
4614
  * given reader into the given message object.
1008
- * @param {!proto.wechaty.puppet.TagContactListRequest} msg The message object to deserialize into.
4615
+ * @param {!proto.wechaty.puppet.TagPayloadRequest} msg The message object to deserialize into.
1009
4616
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1010
- * @return {!proto.wechaty.puppet.TagContactListRequest}
4617
+ * @return {!proto.wechaty.puppet.TagPayloadRequest}
1011
4618
  */
1012
- proto.wechaty.puppet.TagContactListRequest.deserializeBinaryFromReader = function(msg, reader) {
4619
+ proto.wechaty.puppet.TagPayloadRequest.deserializeBinaryFromReader = function(msg, reader) {
1013
4620
  while (reader.nextField()) {
1014
4621
  if (reader.isEndGroup()) {
1015
4622
  break;
@@ -1017,13 +4624,9 @@ proto.wechaty.puppet.TagContactListRequest.deserializeBinaryFromReader = functio
1017
4624
  var field = reader.getFieldNumber();
1018
4625
  switch (field) {
1019
4626
  case 1:
1020
- var value = new google_protobuf_wrappers_pb.StringValue;
1021
- reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
1022
- msg.setContactIdStringValueDeprecated(value);
1023
- break;
1024
- case 2:
1025
- var value = /** @type {string} */ (reader.readString());
1026
- msg.setContactId(value);
4627
+ var value = new proto.wechaty.puppet.TagIdentifier;
4628
+ reader.readMessage(value,proto.wechaty.puppet.TagIdentifier.deserializeBinaryFromReader);
4629
+ msg.setTag(value);
1027
4630
  break;
1028
4631
  default:
1029
4632
  reader.skipField();
@@ -1038,9 +4641,9 @@ proto.wechaty.puppet.TagContactListRequest.deserializeBinaryFromReader = functio
1038
4641
  * Serializes the message to binary data (in protobuf wire format).
1039
4642
  * @return {!Uint8Array}
1040
4643
  */
1041
- proto.wechaty.puppet.TagContactListRequest.prototype.serializeBinary = function() {
4644
+ proto.wechaty.puppet.TagPayloadRequest.prototype.serializeBinary = function() {
1042
4645
  var writer = new jspb.BinaryWriter();
1043
- proto.wechaty.puppet.TagContactListRequest.serializeBinaryToWriter(this, writer);
4646
+ proto.wechaty.puppet.TagPayloadRequest.serializeBinaryToWriter(this, writer);
1044
4647
  return writer.getResultBuffer();
1045
4648
  };
1046
4649
 
@@ -1048,55 +4651,48 @@ proto.wechaty.puppet.TagContactListRequest.prototype.serializeBinary = function(
1048
4651
  /**
1049
4652
  * Serializes the given message to binary data (in protobuf wire
1050
4653
  * format), writing to the given BinaryWriter.
1051
- * @param {!proto.wechaty.puppet.TagContactListRequest} message
4654
+ * @param {!proto.wechaty.puppet.TagPayloadRequest} message
1052
4655
  * @param {!jspb.BinaryWriter} writer
1053
4656
  * @suppress {unusedLocalVariables} f is only used for nested messages
1054
4657
  */
1055
- proto.wechaty.puppet.TagContactListRequest.serializeBinaryToWriter = function(message, writer) {
4658
+ proto.wechaty.puppet.TagPayloadRequest.serializeBinaryToWriter = function(message, writer) {
1056
4659
  var f = undefined;
1057
- f = message.getContactIdStringValueDeprecated();
4660
+ f = message.getTag();
1058
4661
  if (f != null) {
1059
4662
  writer.writeMessage(
1060
4663
  1,
1061
4664
  f,
1062
- google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
1063
- );
1064
- }
1065
- f = message.getContactId();
1066
- if (f.length > 0) {
1067
- writer.writeString(
1068
- 2,
1069
- f
4665
+ proto.wechaty.puppet.TagIdentifier.serializeBinaryToWriter
1070
4666
  );
1071
4667
  }
1072
4668
  };
1073
4669
 
1074
4670
 
1075
4671
  /**
1076
- * optional google.protobuf.StringValue contact_id_string_value_deprecated = 1;
1077
- * @return {?proto.google.protobuf.StringValue}
4672
+ * optional TagIdentifier tag = 1;
4673
+ * @return {?proto.wechaty.puppet.TagIdentifier}
1078
4674
  */
1079
- proto.wechaty.puppet.TagContactListRequest.prototype.getContactIdStringValueDeprecated = function() {
1080
- return /** @type{?proto.google.protobuf.StringValue} */ (
1081
- jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 1));
4675
+ proto.wechaty.puppet.TagPayloadRequest.prototype.getTag = function() {
4676
+ return /** @type{?proto.wechaty.puppet.TagIdentifier} */ (
4677
+ jspb.Message.getWrapperField(this, proto.wechaty.puppet.TagIdentifier, 1));
1082
4678
  };
1083
4679
 
1084
4680
 
1085
4681
  /**
1086
- * @param {?proto.google.protobuf.StringValue|undefined} value
1087
- * @return {!proto.wechaty.puppet.TagContactListRequest} returns this
4682
+ * @param {?proto.wechaty.puppet.TagIdentifier|undefined} value
4683
+ * @return {!proto.wechaty.puppet.TagPayloadRequest} returns this
1088
4684
  */
1089
- proto.wechaty.puppet.TagContactListRequest.prototype.setContactIdStringValueDeprecated = function(value) {
4685
+ proto.wechaty.puppet.TagPayloadRequest.prototype.setTag = function(value) {
1090
4686
  return jspb.Message.setWrapperField(this, 1, value);
1091
4687
  };
1092
4688
 
1093
4689
 
1094
4690
  /**
1095
4691
  * Clears the message field making it undefined.
1096
- * @return {!proto.wechaty.puppet.TagContactListRequest} returns this
4692
+ * @return {!proto.wechaty.puppet.TagPayloadRequest} returns this
1097
4693
  */
1098
- proto.wechaty.puppet.TagContactListRequest.prototype.clearContactIdStringValueDeprecated = function() {
1099
- return this.setContactIdStringValueDeprecated(undefined);
4694
+ proto.wechaty.puppet.TagPayloadRequest.prototype.clearTag = function() {
4695
+ return this.setTag(undefined);
1100
4696
  };
1101
4697
 
1102
4698
 
@@ -1104,36 +4700,11 @@ proto.wechaty.puppet.TagContactListRequest.prototype.clearContactIdStringValueDe
1104
4700
  * Returns whether this field is set.
1105
4701
  * @return {boolean}
1106
4702
  */
1107
- proto.wechaty.puppet.TagContactListRequest.prototype.hasContactIdStringValueDeprecated = function() {
4703
+ proto.wechaty.puppet.TagPayloadRequest.prototype.hasTag = function() {
1108
4704
  return jspb.Message.getField(this, 1) != null;
1109
4705
  };
1110
4706
 
1111
4707
 
1112
- /**
1113
- * optional string contact_id = 2;
1114
- * @return {string}
1115
- */
1116
- proto.wechaty.puppet.TagContactListRequest.prototype.getContactId = function() {
1117
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1118
- };
1119
-
1120
-
1121
- /**
1122
- * @param {string} value
1123
- * @return {!proto.wechaty.puppet.TagContactListRequest} returns this
1124
- */
1125
- proto.wechaty.puppet.TagContactListRequest.prototype.setContactId = function(value) {
1126
- return jspb.Message.setProto3StringField(this, 2, value);
1127
- };
1128
-
1129
-
1130
-
1131
- /**
1132
- * List of repeated fields within this message type.
1133
- * @private {!Array<number>}
1134
- * @const
1135
- */
1136
- proto.wechaty.puppet.TagContactListResponse.repeatedFields_ = [1];
1137
4708
 
1138
4709
 
1139
4710
 
@@ -1150,8 +4721,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
1150
4721
  * http://goto/soy-param-migration
1151
4722
  * @return {!Object}
1152
4723
  */
1153
- proto.wechaty.puppet.TagContactListResponse.prototype.toObject = function(opt_includeInstance) {
1154
- return proto.wechaty.puppet.TagContactListResponse.toObject(opt_includeInstance, this);
4724
+ proto.wechaty.puppet.TagPayloadResponse.prototype.toObject = function(opt_includeInstance) {
4725
+ return proto.wechaty.puppet.TagPayloadResponse.toObject(opt_includeInstance, this);
1155
4726
  };
1156
4727
 
1157
4728
 
@@ -1160,13 +4731,13 @@ proto.wechaty.puppet.TagContactListResponse.prototype.toObject = function(opt_in
1160
4731
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1161
4732
  * the JSPB instance for transitional soy proto support:
1162
4733
  * http://goto/soy-param-migration
1163
- * @param {!proto.wechaty.puppet.TagContactListResponse} msg The msg instance to transform.
4734
+ * @param {!proto.wechaty.puppet.TagPayloadResponse} msg The msg instance to transform.
1164
4735
  * @return {!Object}
1165
4736
  * @suppress {unusedLocalVariables} f is only used for nested messages
1166
4737
  */
1167
- proto.wechaty.puppet.TagContactListResponse.toObject = function(includeInstance, msg) {
4738
+ proto.wechaty.puppet.TagPayloadResponse.toObject = function(includeInstance, msg) {
1168
4739
  var f, obj = {
1169
- idsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
4740
+ payload: (f = msg.getPayload()) && proto.wechaty.puppet.TagPayload.toObject(includeInstance, f)
1170
4741
  };
1171
4742
 
1172
4743
  if (includeInstance) {
@@ -1180,23 +4751,23 @@ proto.wechaty.puppet.TagContactListResponse.toObject = function(includeInstance,
1180
4751
  /**
1181
4752
  * Deserializes binary data (in protobuf wire format).
1182
4753
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
1183
- * @return {!proto.wechaty.puppet.TagContactListResponse}
4754
+ * @return {!proto.wechaty.puppet.TagPayloadResponse}
1184
4755
  */
1185
- proto.wechaty.puppet.TagContactListResponse.deserializeBinary = function(bytes) {
4756
+ proto.wechaty.puppet.TagPayloadResponse.deserializeBinary = function(bytes) {
1186
4757
  var reader = new jspb.BinaryReader(bytes);
1187
- var msg = new proto.wechaty.puppet.TagContactListResponse;
1188
- return proto.wechaty.puppet.TagContactListResponse.deserializeBinaryFromReader(msg, reader);
4758
+ var msg = new proto.wechaty.puppet.TagPayloadResponse;
4759
+ return proto.wechaty.puppet.TagPayloadResponse.deserializeBinaryFromReader(msg, reader);
1189
4760
  };
1190
4761
 
1191
4762
 
1192
4763
  /**
1193
4764
  * Deserializes binary data (in protobuf wire format) from the
1194
4765
  * given reader into the given message object.
1195
- * @param {!proto.wechaty.puppet.TagContactListResponse} msg The message object to deserialize into.
4766
+ * @param {!proto.wechaty.puppet.TagPayloadResponse} msg The message object to deserialize into.
1196
4767
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1197
- * @return {!proto.wechaty.puppet.TagContactListResponse}
4768
+ * @return {!proto.wechaty.puppet.TagPayloadResponse}
1198
4769
  */
1199
- proto.wechaty.puppet.TagContactListResponse.deserializeBinaryFromReader = function(msg, reader) {
4770
+ proto.wechaty.puppet.TagPayloadResponse.deserializeBinaryFromReader = function(msg, reader) {
1200
4771
  while (reader.nextField()) {
1201
4772
  if (reader.isEndGroup()) {
1202
4773
  break;
@@ -1204,8 +4775,9 @@ proto.wechaty.puppet.TagContactListResponse.deserializeBinaryFromReader = functi
1204
4775
  var field = reader.getFieldNumber();
1205
4776
  switch (field) {
1206
4777
  case 1:
1207
- var value = /** @type {string} */ (reader.readString());
1208
- msg.addIds(value);
4778
+ var value = new proto.wechaty.puppet.TagPayload;
4779
+ reader.readMessage(value,proto.wechaty.puppet.TagPayload.deserializeBinaryFromReader);
4780
+ msg.setPayload(value);
1209
4781
  break;
1210
4782
  default:
1211
4783
  reader.skipField();
@@ -1220,9 +4792,9 @@ proto.wechaty.puppet.TagContactListResponse.deserializeBinaryFromReader = functi
1220
4792
  * Serializes the message to binary data (in protobuf wire format).
1221
4793
  * @return {!Uint8Array}
1222
4794
  */
1223
- proto.wechaty.puppet.TagContactListResponse.prototype.serializeBinary = function() {
4795
+ proto.wechaty.puppet.TagPayloadResponse.prototype.serializeBinary = function() {
1224
4796
  var writer = new jspb.BinaryWriter();
1225
- proto.wechaty.puppet.TagContactListResponse.serializeBinaryToWriter(this, writer);
4797
+ proto.wechaty.puppet.TagPayloadResponse.serializeBinaryToWriter(this, writer);
1226
4798
  return writer.getResultBuffer();
1227
4799
  };
1228
4800
 
@@ -1230,57 +4802,66 @@ proto.wechaty.puppet.TagContactListResponse.prototype.serializeBinary = function
1230
4802
  /**
1231
4803
  * Serializes the given message to binary data (in protobuf wire
1232
4804
  * format), writing to the given BinaryWriter.
1233
- * @param {!proto.wechaty.puppet.TagContactListResponse} message
4805
+ * @param {!proto.wechaty.puppet.TagPayloadResponse} message
1234
4806
  * @param {!jspb.BinaryWriter} writer
1235
4807
  * @suppress {unusedLocalVariables} f is only used for nested messages
1236
4808
  */
1237
- proto.wechaty.puppet.TagContactListResponse.serializeBinaryToWriter = function(message, writer) {
4809
+ proto.wechaty.puppet.TagPayloadResponse.serializeBinaryToWriter = function(message, writer) {
1238
4810
  var f = undefined;
1239
- f = message.getIdsList();
1240
- if (f.length > 0) {
1241
- writer.writeRepeatedString(
4811
+ f = message.getPayload();
4812
+ if (f != null) {
4813
+ writer.writeMessage(
1242
4814
  1,
1243
- f
4815
+ f,
4816
+ proto.wechaty.puppet.TagPayload.serializeBinaryToWriter
1244
4817
  );
1245
4818
  }
1246
4819
  };
1247
4820
 
1248
4821
 
1249
4822
  /**
1250
- * repeated string ids = 1;
1251
- * @return {!Array<string>}
4823
+ * optional TagPayload payload = 1;
4824
+ * @return {?proto.wechaty.puppet.TagPayload}
1252
4825
  */
1253
- proto.wechaty.puppet.TagContactListResponse.prototype.getIdsList = function() {
1254
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
4826
+ proto.wechaty.puppet.TagPayloadResponse.prototype.getPayload = function() {
4827
+ return /** @type{?proto.wechaty.puppet.TagPayload} */ (
4828
+ jspb.Message.getWrapperField(this, proto.wechaty.puppet.TagPayload, 1));
1255
4829
  };
1256
4830
 
1257
4831
 
1258
4832
  /**
1259
- * @param {!Array<string>} value
1260
- * @return {!proto.wechaty.puppet.TagContactListResponse} returns this
1261
- */
1262
- proto.wechaty.puppet.TagContactListResponse.prototype.setIdsList = function(value) {
1263
- return jspb.Message.setField(this, 1, value || []);
4833
+ * @param {?proto.wechaty.puppet.TagPayload|undefined} value
4834
+ * @return {!proto.wechaty.puppet.TagPayloadResponse} returns this
4835
+ */
4836
+ proto.wechaty.puppet.TagPayloadResponse.prototype.setPayload = function(value) {
4837
+ return jspb.Message.setWrapperField(this, 1, value);
1264
4838
  };
1265
4839
 
1266
4840
 
1267
4841
  /**
1268
- * @param {string} value
1269
- * @param {number=} opt_index
1270
- * @return {!proto.wechaty.puppet.TagContactListResponse} returns this
4842
+ * Clears the message field making it undefined.
4843
+ * @return {!proto.wechaty.puppet.TagPayloadResponse} returns this
1271
4844
  */
1272
- proto.wechaty.puppet.TagContactListResponse.prototype.addIds = function(value, opt_index) {
1273
- return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
4845
+ proto.wechaty.puppet.TagPayloadResponse.prototype.clearPayload = function() {
4846
+ return this.setPayload(undefined);
1274
4847
  };
1275
4848
 
1276
4849
 
1277
4850
  /**
1278
- * Clears the list making it empty but non-null.
1279
- * @return {!proto.wechaty.puppet.TagContactListResponse} returns this
4851
+ * Returns whether this field is set.
4852
+ * @return {boolean}
1280
4853
  */
1281
- proto.wechaty.puppet.TagContactListResponse.prototype.clearIdsList = function() {
1282
- return this.setIdsList([]);
4854
+ proto.wechaty.puppet.TagPayloadResponse.prototype.hasPayload = function() {
4855
+ return jspb.Message.getField(this, 1) != null;
1283
4856
  };
1284
4857
 
1285
4858
 
4859
+ /**
4860
+ * @enum {number}
4861
+ */
4862
+ proto.wechaty.puppet.TagType = {
4863
+ PERSONAL: 0,
4864
+ CORPORATION: 1
4865
+ };
4866
+
1286
4867
  goog.object.extend(exports, proto.wechaty.puppet);