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