@juzi/wechaty-grpc 1.0.8 → 1.0.11

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