@juzi/wechaty-grpc 1.0.98 → 1.0.99

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/dist/cjs/out/wechaty/puppet/room_pb.d.ts +130 -0
  2. package/dist/cjs/out/wechaty/puppet/room_pb.js +1047 -0
  3. package/dist/cjs/out/wechaty/puppet.openapi.yaml +94 -1
  4. package/dist/cjs/out/wechaty/puppet.swagger.json +143 -1
  5. package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +34 -0
  6. package/dist/cjs/out/wechaty/puppet_grpc_pb.js +66 -0
  7. package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +38 -0
  8. package/dist/cjs/out/wechaty/puppet_pb_service.js +80 -0
  9. package/dist/cjs/proto/wechaty/puppet/room.proto +22 -0
  10. package/dist/cjs/proto/wechaty/puppet.proto +13 -0
  11. package/dist/cjs/src/package-json.js +1 -1
  12. package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
  13. package/dist/cjs/tests/puppet-server-impl.js +10 -0
  14. package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
  15. package/dist/esm/out/wechaty/puppet/room_pb.d.ts +130 -0
  16. package/dist/esm/out/wechaty/puppet/room_pb.js +1047 -0
  17. package/dist/esm/out/wechaty/puppet.openapi.yaml +94 -1
  18. package/dist/esm/out/wechaty/puppet.swagger.json +143 -1
  19. package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +34 -0
  20. package/dist/esm/out/wechaty/puppet_grpc_pb.js +66 -0
  21. package/dist/esm/out/wechaty/puppet_pb_service.d.ts +38 -0
  22. package/dist/esm/out/wechaty/puppet_pb_service.js +80 -0
  23. package/dist/esm/proto/wechaty/puppet/room.proto +22 -0
  24. package/dist/esm/proto/wechaty/puppet.proto +13 -0
  25. package/dist/esm/src/package-json.js +1 -1
  26. package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
  27. package/dist/esm/tests/puppet-server-impl.js +10 -0
  28. package/dist/esm/tests/puppet-server-impl.js.map +1 -1
  29. package/out/wechaty/puppet/room_pb.d.ts +130 -0
  30. package/out/wechaty/puppet/room_pb.js +1047 -0
  31. package/out/wechaty/puppet.openapi.yaml +94 -1
  32. package/out/wechaty/puppet.swagger.json +143 -1
  33. package/out/wechaty/puppet_grpc_pb.d.ts +34 -0
  34. package/out/wechaty/puppet_grpc_pb.js +66 -0
  35. package/out/wechaty/puppet_pb_service.d.ts +38 -0
  36. package/out/wechaty/puppet_pb_service.js +80 -0
  37. package/package.json +1 -1
  38. package/src/package-json.ts +1 -1
@@ -23,6 +23,8 @@ var wechaty_puppet_util_pb = require('../../wechaty/puppet/util_pb.js');
23
23
  goog.object.extend(proto, wechaty_puppet_util_pb);
24
24
  goog.exportSymbol('proto.wechaty.puppet.RoomAddRequest', null, global);
25
25
  goog.exportSymbol('proto.wechaty.puppet.RoomAddResponse', null, global);
26
+ goog.exportSymbol('proto.wechaty.puppet.RoomAddV2Request', null, global);
27
+ goog.exportSymbol('proto.wechaty.puppet.RoomAddV2Response', null, global);
26
28
  goog.exportSymbol('proto.wechaty.puppet.RoomAdminsRequest', null, global);
27
29
  goog.exportSymbol('proto.wechaty.puppet.RoomAdminsResponse', null, global);
28
30
  goog.exportSymbol('proto.wechaty.puppet.RoomAnnounceRequest', null, global);
@@ -33,6 +35,8 @@ goog.exportSymbol('proto.wechaty.puppet.RoomCreateRequest', null, global);
33
35
  goog.exportSymbol('proto.wechaty.puppet.RoomCreateResponse', null, global);
34
36
  goog.exportSymbol('proto.wechaty.puppet.RoomDelRequest', null, global);
35
37
  goog.exportSymbol('proto.wechaty.puppet.RoomDelResponse', null, global);
38
+ goog.exportSymbol('proto.wechaty.puppet.RoomDelV2Request', null, global);
39
+ goog.exportSymbol('proto.wechaty.puppet.RoomDelV2Response', null, global);
36
40
  goog.exportSymbol('proto.wechaty.puppet.RoomDismissRequest', null, global);
37
41
  goog.exportSymbol('proto.wechaty.puppet.RoomDismissResponse', null, global);
38
42
  goog.exportSymbol('proto.wechaty.puppet.RoomListRequest', null, global);
@@ -179,6 +183,90 @@ if (goog.DEBUG && !COMPILED) {
179
183
  */
180
184
  proto.wechaty.puppet.RoomAddResponse.displayName = 'proto.wechaty.puppet.RoomAddResponse';
181
185
  }
186
+ /**
187
+ * Generated by JsPbCodeGenerator.
188
+ * @param {Array=} opt_data Optional initial data array, typically from a
189
+ * server response, or constructed directly in Javascript. The array is used
190
+ * in place and becomes part of the constructed object. It is not cloned.
191
+ * If no data is provided, the constructed object will be empty, but still
192
+ * valid.
193
+ * @extends {jspb.Message}
194
+ * @constructor
195
+ */
196
+ proto.wechaty.puppet.RoomAddV2Request = function(opt_data) {
197
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.wechaty.puppet.RoomAddV2Request.repeatedFields_, null);
198
+ };
199
+ goog.inherits(proto.wechaty.puppet.RoomAddV2Request, jspb.Message);
200
+ if (goog.DEBUG && !COMPILED) {
201
+ /**
202
+ * @public
203
+ * @override
204
+ */
205
+ proto.wechaty.puppet.RoomAddV2Request.displayName = 'proto.wechaty.puppet.RoomAddV2Request';
206
+ }
207
+ /**
208
+ * Generated by JsPbCodeGenerator.
209
+ * @param {Array=} opt_data Optional initial data array, typically from a
210
+ * server response, or constructed directly in Javascript. The array is used
211
+ * in place and becomes part of the constructed object. It is not cloned.
212
+ * If no data is provided, the constructed object will be empty, but still
213
+ * valid.
214
+ * @extends {jspb.Message}
215
+ * @constructor
216
+ */
217
+ proto.wechaty.puppet.RoomAddV2Response = function(opt_data) {
218
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.wechaty.puppet.RoomAddV2Response.repeatedFields_, null);
219
+ };
220
+ goog.inherits(proto.wechaty.puppet.RoomAddV2Response, jspb.Message);
221
+ if (goog.DEBUG && !COMPILED) {
222
+ /**
223
+ * @public
224
+ * @override
225
+ */
226
+ proto.wechaty.puppet.RoomAddV2Response.displayName = 'proto.wechaty.puppet.RoomAddV2Response';
227
+ }
228
+ /**
229
+ * Generated by JsPbCodeGenerator.
230
+ * @param {Array=} opt_data Optional initial data array, typically from a
231
+ * server response, or constructed directly in Javascript. The array is used
232
+ * in place and becomes part of the constructed object. It is not cloned.
233
+ * If no data is provided, the constructed object will be empty, but still
234
+ * valid.
235
+ * @extends {jspb.Message}
236
+ * @constructor
237
+ */
238
+ proto.wechaty.puppet.RoomDelV2Request = function(opt_data) {
239
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.wechaty.puppet.RoomDelV2Request.repeatedFields_, null);
240
+ };
241
+ goog.inherits(proto.wechaty.puppet.RoomDelV2Request, jspb.Message);
242
+ if (goog.DEBUG && !COMPILED) {
243
+ /**
244
+ * @public
245
+ * @override
246
+ */
247
+ proto.wechaty.puppet.RoomDelV2Request.displayName = 'proto.wechaty.puppet.RoomDelV2Request';
248
+ }
249
+ /**
250
+ * Generated by JsPbCodeGenerator.
251
+ * @param {Array=} opt_data Optional initial data array, typically from a
252
+ * server response, or constructed directly in Javascript. The array is used
253
+ * in place and becomes part of the constructed object. It is not cloned.
254
+ * If no data is provided, the constructed object will be empty, but still
255
+ * valid.
256
+ * @extends {jspb.Message}
257
+ * @constructor
258
+ */
259
+ proto.wechaty.puppet.RoomDelV2Response = function(opt_data) {
260
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.wechaty.puppet.RoomDelV2Response.repeatedFields_, null);
261
+ };
262
+ goog.inherits(proto.wechaty.puppet.RoomDelV2Response, jspb.Message);
263
+ if (goog.DEBUG && !COMPILED) {
264
+ /**
265
+ * @public
266
+ * @override
267
+ */
268
+ proto.wechaty.puppet.RoomDelV2Response.displayName = 'proto.wechaty.puppet.RoomDelV2Response';
269
+ }
182
270
  /**
183
271
  * Generated by JsPbCodeGenerator.
184
272
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -2005,6 +2093,965 @@ proto.wechaty.puppet.RoomAddResponse.serializeBinaryToWriter = function(message,
2005
2093
 
2006
2094
 
2007
2095
 
2096
+ /**
2097
+ * List of repeated fields within this message type.
2098
+ * @private {!Array<number>}
2099
+ * @const
2100
+ */
2101
+ proto.wechaty.puppet.RoomAddV2Request.repeatedFields_ = [2,4];
2102
+
2103
+
2104
+
2105
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2106
+ /**
2107
+ * Creates an object representation of this proto.
2108
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2109
+ * Optional fields that are not set will be set to undefined.
2110
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2111
+ * For the list of reserved names please see:
2112
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2113
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2114
+ * JSPB instance for transitional soy proto support:
2115
+ * http://goto/soy-param-migration
2116
+ * @return {!Object}
2117
+ */
2118
+ proto.wechaty.puppet.RoomAddV2Request.prototype.toObject = function(opt_includeInstance) {
2119
+ return proto.wechaty.puppet.RoomAddV2Request.toObject(opt_includeInstance, this);
2120
+ };
2121
+
2122
+
2123
+ /**
2124
+ * Static version of the {@see toObject} method.
2125
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2126
+ * the JSPB instance for transitional soy proto support:
2127
+ * http://goto/soy-param-migration
2128
+ * @param {!proto.wechaty.puppet.RoomAddV2Request} msg The msg instance to transform.
2129
+ * @return {!Object}
2130
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2131
+ */
2132
+ proto.wechaty.puppet.RoomAddV2Request.toObject = function(includeInstance, msg) {
2133
+ var f, obj = {
2134
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
2135
+ contactIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
2136
+ inviteOnly: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
2137
+ quoteIdsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f
2138
+ };
2139
+
2140
+ if (includeInstance) {
2141
+ obj.$jspbMessageInstance = msg;
2142
+ }
2143
+ return obj;
2144
+ };
2145
+ }
2146
+
2147
+
2148
+ /**
2149
+ * Deserializes binary data (in protobuf wire format).
2150
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2151
+ * @return {!proto.wechaty.puppet.RoomAddV2Request}
2152
+ */
2153
+ proto.wechaty.puppet.RoomAddV2Request.deserializeBinary = function(bytes) {
2154
+ var reader = new jspb.BinaryReader(bytes);
2155
+ var msg = new proto.wechaty.puppet.RoomAddV2Request;
2156
+ return proto.wechaty.puppet.RoomAddV2Request.deserializeBinaryFromReader(msg, reader);
2157
+ };
2158
+
2159
+
2160
+ /**
2161
+ * Deserializes binary data (in protobuf wire format) from the
2162
+ * given reader into the given message object.
2163
+ * @param {!proto.wechaty.puppet.RoomAddV2Request} msg The message object to deserialize into.
2164
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2165
+ * @return {!proto.wechaty.puppet.RoomAddV2Request}
2166
+ */
2167
+ proto.wechaty.puppet.RoomAddV2Request.deserializeBinaryFromReader = function(msg, reader) {
2168
+ while (reader.nextField()) {
2169
+ if (reader.isEndGroup()) {
2170
+ break;
2171
+ }
2172
+ var field = reader.getFieldNumber();
2173
+ switch (field) {
2174
+ case 1:
2175
+ var value = /** @type {string} */ (reader.readString());
2176
+ msg.setId(value);
2177
+ break;
2178
+ case 2:
2179
+ var value = /** @type {string} */ (reader.readString());
2180
+ msg.addContactIds(value);
2181
+ break;
2182
+ case 3:
2183
+ var value = /** @type {boolean} */ (reader.readBool());
2184
+ msg.setInviteOnly(value);
2185
+ break;
2186
+ case 4:
2187
+ var value = /** @type {string} */ (reader.readString());
2188
+ msg.addQuoteIds(value);
2189
+ break;
2190
+ default:
2191
+ reader.skipField();
2192
+ break;
2193
+ }
2194
+ }
2195
+ return msg;
2196
+ };
2197
+
2198
+
2199
+ /**
2200
+ * Serializes the message to binary data (in protobuf wire format).
2201
+ * @return {!Uint8Array}
2202
+ */
2203
+ proto.wechaty.puppet.RoomAddV2Request.prototype.serializeBinary = function() {
2204
+ var writer = new jspb.BinaryWriter();
2205
+ proto.wechaty.puppet.RoomAddV2Request.serializeBinaryToWriter(this, writer);
2206
+ return writer.getResultBuffer();
2207
+ };
2208
+
2209
+
2210
+ /**
2211
+ * Serializes the given message to binary data (in protobuf wire
2212
+ * format), writing to the given BinaryWriter.
2213
+ * @param {!proto.wechaty.puppet.RoomAddV2Request} message
2214
+ * @param {!jspb.BinaryWriter} writer
2215
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2216
+ */
2217
+ proto.wechaty.puppet.RoomAddV2Request.serializeBinaryToWriter = function(message, writer) {
2218
+ var f = undefined;
2219
+ f = message.getId();
2220
+ if (f.length > 0) {
2221
+ writer.writeString(
2222
+ 1,
2223
+ f
2224
+ );
2225
+ }
2226
+ f = message.getContactIdsList();
2227
+ if (f.length > 0) {
2228
+ writer.writeRepeatedString(
2229
+ 2,
2230
+ f
2231
+ );
2232
+ }
2233
+ f = message.getInviteOnly();
2234
+ if (f) {
2235
+ writer.writeBool(
2236
+ 3,
2237
+ f
2238
+ );
2239
+ }
2240
+ f = message.getQuoteIdsList();
2241
+ if (f.length > 0) {
2242
+ writer.writeRepeatedString(
2243
+ 4,
2244
+ f
2245
+ );
2246
+ }
2247
+ };
2248
+
2249
+
2250
+ /**
2251
+ * optional string id = 1;
2252
+ * @return {string}
2253
+ */
2254
+ proto.wechaty.puppet.RoomAddV2Request.prototype.getId = function() {
2255
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2256
+ };
2257
+
2258
+
2259
+ /**
2260
+ * @param {string} value
2261
+ * @return {!proto.wechaty.puppet.RoomAddV2Request} returns this
2262
+ */
2263
+ proto.wechaty.puppet.RoomAddV2Request.prototype.setId = function(value) {
2264
+ return jspb.Message.setProto3StringField(this, 1, value);
2265
+ };
2266
+
2267
+
2268
+ /**
2269
+ * repeated string contact_ids = 2;
2270
+ * @return {!Array<string>}
2271
+ */
2272
+ proto.wechaty.puppet.RoomAddV2Request.prototype.getContactIdsList = function() {
2273
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
2274
+ };
2275
+
2276
+
2277
+ /**
2278
+ * @param {!Array<string>} value
2279
+ * @return {!proto.wechaty.puppet.RoomAddV2Request} returns this
2280
+ */
2281
+ proto.wechaty.puppet.RoomAddV2Request.prototype.setContactIdsList = function(value) {
2282
+ return jspb.Message.setField(this, 2, value || []);
2283
+ };
2284
+
2285
+
2286
+ /**
2287
+ * @param {string} value
2288
+ * @param {number=} opt_index
2289
+ * @return {!proto.wechaty.puppet.RoomAddV2Request} returns this
2290
+ */
2291
+ proto.wechaty.puppet.RoomAddV2Request.prototype.addContactIds = function(value, opt_index) {
2292
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
2293
+ };
2294
+
2295
+
2296
+ /**
2297
+ * Clears the list making it empty but non-null.
2298
+ * @return {!proto.wechaty.puppet.RoomAddV2Request} returns this
2299
+ */
2300
+ proto.wechaty.puppet.RoomAddV2Request.prototype.clearContactIdsList = function() {
2301
+ return this.setContactIdsList([]);
2302
+ };
2303
+
2304
+
2305
+ /**
2306
+ * optional bool invite_only = 3;
2307
+ * @return {boolean}
2308
+ */
2309
+ proto.wechaty.puppet.RoomAddV2Request.prototype.getInviteOnly = function() {
2310
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
2311
+ };
2312
+
2313
+
2314
+ /**
2315
+ * @param {boolean} value
2316
+ * @return {!proto.wechaty.puppet.RoomAddV2Request} returns this
2317
+ */
2318
+ proto.wechaty.puppet.RoomAddV2Request.prototype.setInviteOnly = function(value) {
2319
+ return jspb.Message.setProto3BooleanField(this, 3, value);
2320
+ };
2321
+
2322
+
2323
+ /**
2324
+ * repeated string quote_ids = 4;
2325
+ * @return {!Array<string>}
2326
+ */
2327
+ proto.wechaty.puppet.RoomAddV2Request.prototype.getQuoteIdsList = function() {
2328
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 4));
2329
+ };
2330
+
2331
+
2332
+ /**
2333
+ * @param {!Array<string>} value
2334
+ * @return {!proto.wechaty.puppet.RoomAddV2Request} returns this
2335
+ */
2336
+ proto.wechaty.puppet.RoomAddV2Request.prototype.setQuoteIdsList = function(value) {
2337
+ return jspb.Message.setField(this, 4, value || []);
2338
+ };
2339
+
2340
+
2341
+ /**
2342
+ * @param {string} value
2343
+ * @param {number=} opt_index
2344
+ * @return {!proto.wechaty.puppet.RoomAddV2Request} returns this
2345
+ */
2346
+ proto.wechaty.puppet.RoomAddV2Request.prototype.addQuoteIds = function(value, opt_index) {
2347
+ return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
2348
+ };
2349
+
2350
+
2351
+ /**
2352
+ * Clears the list making it empty but non-null.
2353
+ * @return {!proto.wechaty.puppet.RoomAddV2Request} returns this
2354
+ */
2355
+ proto.wechaty.puppet.RoomAddV2Request.prototype.clearQuoteIdsList = function() {
2356
+ return this.setQuoteIdsList([]);
2357
+ };
2358
+
2359
+
2360
+
2361
+ /**
2362
+ * List of repeated fields within this message type.
2363
+ * @private {!Array<number>}
2364
+ * @const
2365
+ */
2366
+ proto.wechaty.puppet.RoomAddV2Response.repeatedFields_ = [1,2,3];
2367
+
2368
+
2369
+
2370
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2371
+ /**
2372
+ * Creates an object representation of this proto.
2373
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2374
+ * Optional fields that are not set will be set to undefined.
2375
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2376
+ * For the list of reserved names please see:
2377
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2378
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2379
+ * JSPB instance for transitional soy proto support:
2380
+ * http://goto/soy-param-migration
2381
+ * @return {!Object}
2382
+ */
2383
+ proto.wechaty.puppet.RoomAddV2Response.prototype.toObject = function(opt_includeInstance) {
2384
+ return proto.wechaty.puppet.RoomAddV2Response.toObject(opt_includeInstance, this);
2385
+ };
2386
+
2387
+
2388
+ /**
2389
+ * Static version of the {@see toObject} method.
2390
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2391
+ * the JSPB instance for transitional soy proto support:
2392
+ * http://goto/soy-param-migration
2393
+ * @param {!proto.wechaty.puppet.RoomAddV2Response} msg The msg instance to transform.
2394
+ * @return {!Object}
2395
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2396
+ */
2397
+ proto.wechaty.puppet.RoomAddV2Response.toObject = function(includeInstance, msg) {
2398
+ var f, obj = {
2399
+ successIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
2400
+ failedIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
2401
+ failedReasonsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
2402
+ };
2403
+
2404
+ if (includeInstance) {
2405
+ obj.$jspbMessageInstance = msg;
2406
+ }
2407
+ return obj;
2408
+ };
2409
+ }
2410
+
2411
+
2412
+ /**
2413
+ * Deserializes binary data (in protobuf wire format).
2414
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2415
+ * @return {!proto.wechaty.puppet.RoomAddV2Response}
2416
+ */
2417
+ proto.wechaty.puppet.RoomAddV2Response.deserializeBinary = function(bytes) {
2418
+ var reader = new jspb.BinaryReader(bytes);
2419
+ var msg = new proto.wechaty.puppet.RoomAddV2Response;
2420
+ return proto.wechaty.puppet.RoomAddV2Response.deserializeBinaryFromReader(msg, reader);
2421
+ };
2422
+
2423
+
2424
+ /**
2425
+ * Deserializes binary data (in protobuf wire format) from the
2426
+ * given reader into the given message object.
2427
+ * @param {!proto.wechaty.puppet.RoomAddV2Response} msg The message object to deserialize into.
2428
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2429
+ * @return {!proto.wechaty.puppet.RoomAddV2Response}
2430
+ */
2431
+ proto.wechaty.puppet.RoomAddV2Response.deserializeBinaryFromReader = function(msg, reader) {
2432
+ while (reader.nextField()) {
2433
+ if (reader.isEndGroup()) {
2434
+ break;
2435
+ }
2436
+ var field = reader.getFieldNumber();
2437
+ switch (field) {
2438
+ case 1:
2439
+ var value = /** @type {string} */ (reader.readString());
2440
+ msg.addSuccessIds(value);
2441
+ break;
2442
+ case 2:
2443
+ var value = /** @type {string} */ (reader.readString());
2444
+ msg.addFailedIds(value);
2445
+ break;
2446
+ case 3:
2447
+ var value = /** @type {string} */ (reader.readString());
2448
+ msg.addFailedReasons(value);
2449
+ break;
2450
+ default:
2451
+ reader.skipField();
2452
+ break;
2453
+ }
2454
+ }
2455
+ return msg;
2456
+ };
2457
+
2458
+
2459
+ /**
2460
+ * Serializes the message to binary data (in protobuf wire format).
2461
+ * @return {!Uint8Array}
2462
+ */
2463
+ proto.wechaty.puppet.RoomAddV2Response.prototype.serializeBinary = function() {
2464
+ var writer = new jspb.BinaryWriter();
2465
+ proto.wechaty.puppet.RoomAddV2Response.serializeBinaryToWriter(this, writer);
2466
+ return writer.getResultBuffer();
2467
+ };
2468
+
2469
+
2470
+ /**
2471
+ * Serializes the given message to binary data (in protobuf wire
2472
+ * format), writing to the given BinaryWriter.
2473
+ * @param {!proto.wechaty.puppet.RoomAddV2Response} message
2474
+ * @param {!jspb.BinaryWriter} writer
2475
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2476
+ */
2477
+ proto.wechaty.puppet.RoomAddV2Response.serializeBinaryToWriter = function(message, writer) {
2478
+ var f = undefined;
2479
+ f = message.getSuccessIdsList();
2480
+ if (f.length > 0) {
2481
+ writer.writeRepeatedString(
2482
+ 1,
2483
+ f
2484
+ );
2485
+ }
2486
+ f = message.getFailedIdsList();
2487
+ if (f.length > 0) {
2488
+ writer.writeRepeatedString(
2489
+ 2,
2490
+ f
2491
+ );
2492
+ }
2493
+ f = message.getFailedReasonsList();
2494
+ if (f.length > 0) {
2495
+ writer.writeRepeatedString(
2496
+ 3,
2497
+ f
2498
+ );
2499
+ }
2500
+ };
2501
+
2502
+
2503
+ /**
2504
+ * repeated string success_ids = 1;
2505
+ * @return {!Array<string>}
2506
+ */
2507
+ proto.wechaty.puppet.RoomAddV2Response.prototype.getSuccessIdsList = function() {
2508
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
2509
+ };
2510
+
2511
+
2512
+ /**
2513
+ * @param {!Array<string>} value
2514
+ * @return {!proto.wechaty.puppet.RoomAddV2Response} returns this
2515
+ */
2516
+ proto.wechaty.puppet.RoomAddV2Response.prototype.setSuccessIdsList = function(value) {
2517
+ return jspb.Message.setField(this, 1, value || []);
2518
+ };
2519
+
2520
+
2521
+ /**
2522
+ * @param {string} value
2523
+ * @param {number=} opt_index
2524
+ * @return {!proto.wechaty.puppet.RoomAddV2Response} returns this
2525
+ */
2526
+ proto.wechaty.puppet.RoomAddV2Response.prototype.addSuccessIds = function(value, opt_index) {
2527
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
2528
+ };
2529
+
2530
+
2531
+ /**
2532
+ * Clears the list making it empty but non-null.
2533
+ * @return {!proto.wechaty.puppet.RoomAddV2Response} returns this
2534
+ */
2535
+ proto.wechaty.puppet.RoomAddV2Response.prototype.clearSuccessIdsList = function() {
2536
+ return this.setSuccessIdsList([]);
2537
+ };
2538
+
2539
+
2540
+ /**
2541
+ * repeated string failed_ids = 2;
2542
+ * @return {!Array<string>}
2543
+ */
2544
+ proto.wechaty.puppet.RoomAddV2Response.prototype.getFailedIdsList = function() {
2545
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
2546
+ };
2547
+
2548
+
2549
+ /**
2550
+ * @param {!Array<string>} value
2551
+ * @return {!proto.wechaty.puppet.RoomAddV2Response} returns this
2552
+ */
2553
+ proto.wechaty.puppet.RoomAddV2Response.prototype.setFailedIdsList = function(value) {
2554
+ return jspb.Message.setField(this, 2, value || []);
2555
+ };
2556
+
2557
+
2558
+ /**
2559
+ * @param {string} value
2560
+ * @param {number=} opt_index
2561
+ * @return {!proto.wechaty.puppet.RoomAddV2Response} returns this
2562
+ */
2563
+ proto.wechaty.puppet.RoomAddV2Response.prototype.addFailedIds = function(value, opt_index) {
2564
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
2565
+ };
2566
+
2567
+
2568
+ /**
2569
+ * Clears the list making it empty but non-null.
2570
+ * @return {!proto.wechaty.puppet.RoomAddV2Response} returns this
2571
+ */
2572
+ proto.wechaty.puppet.RoomAddV2Response.prototype.clearFailedIdsList = function() {
2573
+ return this.setFailedIdsList([]);
2574
+ };
2575
+
2576
+
2577
+ /**
2578
+ * repeated string failed_reasons = 3;
2579
+ * @return {!Array<string>}
2580
+ */
2581
+ proto.wechaty.puppet.RoomAddV2Response.prototype.getFailedReasonsList = function() {
2582
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
2583
+ };
2584
+
2585
+
2586
+ /**
2587
+ * @param {!Array<string>} value
2588
+ * @return {!proto.wechaty.puppet.RoomAddV2Response} returns this
2589
+ */
2590
+ proto.wechaty.puppet.RoomAddV2Response.prototype.setFailedReasonsList = function(value) {
2591
+ return jspb.Message.setField(this, 3, value || []);
2592
+ };
2593
+
2594
+
2595
+ /**
2596
+ * @param {string} value
2597
+ * @param {number=} opt_index
2598
+ * @return {!proto.wechaty.puppet.RoomAddV2Response} returns this
2599
+ */
2600
+ proto.wechaty.puppet.RoomAddV2Response.prototype.addFailedReasons = function(value, opt_index) {
2601
+ return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
2602
+ };
2603
+
2604
+
2605
+ /**
2606
+ * Clears the list making it empty but non-null.
2607
+ * @return {!proto.wechaty.puppet.RoomAddV2Response} returns this
2608
+ */
2609
+ proto.wechaty.puppet.RoomAddV2Response.prototype.clearFailedReasonsList = function() {
2610
+ return this.setFailedReasonsList([]);
2611
+ };
2612
+
2613
+
2614
+
2615
+ /**
2616
+ * List of repeated fields within this message type.
2617
+ * @private {!Array<number>}
2618
+ * @const
2619
+ */
2620
+ proto.wechaty.puppet.RoomDelV2Request.repeatedFields_ = [2];
2621
+
2622
+
2623
+
2624
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2625
+ /**
2626
+ * Creates an object representation of this proto.
2627
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2628
+ * Optional fields that are not set will be set to undefined.
2629
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2630
+ * For the list of reserved names please see:
2631
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2632
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2633
+ * JSPB instance for transitional soy proto support:
2634
+ * http://goto/soy-param-migration
2635
+ * @return {!Object}
2636
+ */
2637
+ proto.wechaty.puppet.RoomDelV2Request.prototype.toObject = function(opt_includeInstance) {
2638
+ return proto.wechaty.puppet.RoomDelV2Request.toObject(opt_includeInstance, this);
2639
+ };
2640
+
2641
+
2642
+ /**
2643
+ * Static version of the {@see toObject} method.
2644
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2645
+ * the JSPB instance for transitional soy proto support:
2646
+ * http://goto/soy-param-migration
2647
+ * @param {!proto.wechaty.puppet.RoomDelV2Request} msg The msg instance to transform.
2648
+ * @return {!Object}
2649
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2650
+ */
2651
+ proto.wechaty.puppet.RoomDelV2Request.toObject = function(includeInstance, msg) {
2652
+ var f, obj = {
2653
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
2654
+ contactIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
2655
+ };
2656
+
2657
+ if (includeInstance) {
2658
+ obj.$jspbMessageInstance = msg;
2659
+ }
2660
+ return obj;
2661
+ };
2662
+ }
2663
+
2664
+
2665
+ /**
2666
+ * Deserializes binary data (in protobuf wire format).
2667
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2668
+ * @return {!proto.wechaty.puppet.RoomDelV2Request}
2669
+ */
2670
+ proto.wechaty.puppet.RoomDelV2Request.deserializeBinary = function(bytes) {
2671
+ var reader = new jspb.BinaryReader(bytes);
2672
+ var msg = new proto.wechaty.puppet.RoomDelV2Request;
2673
+ return proto.wechaty.puppet.RoomDelV2Request.deserializeBinaryFromReader(msg, reader);
2674
+ };
2675
+
2676
+
2677
+ /**
2678
+ * Deserializes binary data (in protobuf wire format) from the
2679
+ * given reader into the given message object.
2680
+ * @param {!proto.wechaty.puppet.RoomDelV2Request} msg The message object to deserialize into.
2681
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2682
+ * @return {!proto.wechaty.puppet.RoomDelV2Request}
2683
+ */
2684
+ proto.wechaty.puppet.RoomDelV2Request.deserializeBinaryFromReader = function(msg, reader) {
2685
+ while (reader.nextField()) {
2686
+ if (reader.isEndGroup()) {
2687
+ break;
2688
+ }
2689
+ var field = reader.getFieldNumber();
2690
+ switch (field) {
2691
+ case 1:
2692
+ var value = /** @type {string} */ (reader.readString());
2693
+ msg.setId(value);
2694
+ break;
2695
+ case 2:
2696
+ var value = /** @type {string} */ (reader.readString());
2697
+ msg.addContactIds(value);
2698
+ break;
2699
+ default:
2700
+ reader.skipField();
2701
+ break;
2702
+ }
2703
+ }
2704
+ return msg;
2705
+ };
2706
+
2707
+
2708
+ /**
2709
+ * Serializes the message to binary data (in protobuf wire format).
2710
+ * @return {!Uint8Array}
2711
+ */
2712
+ proto.wechaty.puppet.RoomDelV2Request.prototype.serializeBinary = function() {
2713
+ var writer = new jspb.BinaryWriter();
2714
+ proto.wechaty.puppet.RoomDelV2Request.serializeBinaryToWriter(this, writer);
2715
+ return writer.getResultBuffer();
2716
+ };
2717
+
2718
+
2719
+ /**
2720
+ * Serializes the given message to binary data (in protobuf wire
2721
+ * format), writing to the given BinaryWriter.
2722
+ * @param {!proto.wechaty.puppet.RoomDelV2Request} message
2723
+ * @param {!jspb.BinaryWriter} writer
2724
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2725
+ */
2726
+ proto.wechaty.puppet.RoomDelV2Request.serializeBinaryToWriter = function(message, writer) {
2727
+ var f = undefined;
2728
+ f = message.getId();
2729
+ if (f.length > 0) {
2730
+ writer.writeString(
2731
+ 1,
2732
+ f
2733
+ );
2734
+ }
2735
+ f = message.getContactIdsList();
2736
+ if (f.length > 0) {
2737
+ writer.writeRepeatedString(
2738
+ 2,
2739
+ f
2740
+ );
2741
+ }
2742
+ };
2743
+
2744
+
2745
+ /**
2746
+ * optional string id = 1;
2747
+ * @return {string}
2748
+ */
2749
+ proto.wechaty.puppet.RoomDelV2Request.prototype.getId = function() {
2750
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2751
+ };
2752
+
2753
+
2754
+ /**
2755
+ * @param {string} value
2756
+ * @return {!proto.wechaty.puppet.RoomDelV2Request} returns this
2757
+ */
2758
+ proto.wechaty.puppet.RoomDelV2Request.prototype.setId = function(value) {
2759
+ return jspb.Message.setProto3StringField(this, 1, value);
2760
+ };
2761
+
2762
+
2763
+ /**
2764
+ * repeated string contact_ids = 2;
2765
+ * @return {!Array<string>}
2766
+ */
2767
+ proto.wechaty.puppet.RoomDelV2Request.prototype.getContactIdsList = function() {
2768
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
2769
+ };
2770
+
2771
+
2772
+ /**
2773
+ * @param {!Array<string>} value
2774
+ * @return {!proto.wechaty.puppet.RoomDelV2Request} returns this
2775
+ */
2776
+ proto.wechaty.puppet.RoomDelV2Request.prototype.setContactIdsList = function(value) {
2777
+ return jspb.Message.setField(this, 2, value || []);
2778
+ };
2779
+
2780
+
2781
+ /**
2782
+ * @param {string} value
2783
+ * @param {number=} opt_index
2784
+ * @return {!proto.wechaty.puppet.RoomDelV2Request} returns this
2785
+ */
2786
+ proto.wechaty.puppet.RoomDelV2Request.prototype.addContactIds = function(value, opt_index) {
2787
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
2788
+ };
2789
+
2790
+
2791
+ /**
2792
+ * Clears the list making it empty but non-null.
2793
+ * @return {!proto.wechaty.puppet.RoomDelV2Request} returns this
2794
+ */
2795
+ proto.wechaty.puppet.RoomDelV2Request.prototype.clearContactIdsList = function() {
2796
+ return this.setContactIdsList([]);
2797
+ };
2798
+
2799
+
2800
+
2801
+ /**
2802
+ * List of repeated fields within this message type.
2803
+ * @private {!Array<number>}
2804
+ * @const
2805
+ */
2806
+ proto.wechaty.puppet.RoomDelV2Response.repeatedFields_ = [1,2,3];
2807
+
2808
+
2809
+
2810
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2811
+ /**
2812
+ * Creates an object representation of this proto.
2813
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2814
+ * Optional fields that are not set will be set to undefined.
2815
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2816
+ * For the list of reserved names please see:
2817
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2818
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2819
+ * JSPB instance for transitional soy proto support:
2820
+ * http://goto/soy-param-migration
2821
+ * @return {!Object}
2822
+ */
2823
+ proto.wechaty.puppet.RoomDelV2Response.prototype.toObject = function(opt_includeInstance) {
2824
+ return proto.wechaty.puppet.RoomDelV2Response.toObject(opt_includeInstance, this);
2825
+ };
2826
+
2827
+
2828
+ /**
2829
+ * Static version of the {@see toObject} method.
2830
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2831
+ * the JSPB instance for transitional soy proto support:
2832
+ * http://goto/soy-param-migration
2833
+ * @param {!proto.wechaty.puppet.RoomDelV2Response} msg The msg instance to transform.
2834
+ * @return {!Object}
2835
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2836
+ */
2837
+ proto.wechaty.puppet.RoomDelV2Response.toObject = function(includeInstance, msg) {
2838
+ var f, obj = {
2839
+ successIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
2840
+ failedIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
2841
+ failedReasonsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
2842
+ };
2843
+
2844
+ if (includeInstance) {
2845
+ obj.$jspbMessageInstance = msg;
2846
+ }
2847
+ return obj;
2848
+ };
2849
+ }
2850
+
2851
+
2852
+ /**
2853
+ * Deserializes binary data (in protobuf wire format).
2854
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2855
+ * @return {!proto.wechaty.puppet.RoomDelV2Response}
2856
+ */
2857
+ proto.wechaty.puppet.RoomDelV2Response.deserializeBinary = function(bytes) {
2858
+ var reader = new jspb.BinaryReader(bytes);
2859
+ var msg = new proto.wechaty.puppet.RoomDelV2Response;
2860
+ return proto.wechaty.puppet.RoomDelV2Response.deserializeBinaryFromReader(msg, reader);
2861
+ };
2862
+
2863
+
2864
+ /**
2865
+ * Deserializes binary data (in protobuf wire format) from the
2866
+ * given reader into the given message object.
2867
+ * @param {!proto.wechaty.puppet.RoomDelV2Response} msg The message object to deserialize into.
2868
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2869
+ * @return {!proto.wechaty.puppet.RoomDelV2Response}
2870
+ */
2871
+ proto.wechaty.puppet.RoomDelV2Response.deserializeBinaryFromReader = function(msg, reader) {
2872
+ while (reader.nextField()) {
2873
+ if (reader.isEndGroup()) {
2874
+ break;
2875
+ }
2876
+ var field = reader.getFieldNumber();
2877
+ switch (field) {
2878
+ case 1:
2879
+ var value = /** @type {string} */ (reader.readString());
2880
+ msg.addSuccessIds(value);
2881
+ break;
2882
+ case 2:
2883
+ var value = /** @type {string} */ (reader.readString());
2884
+ msg.addFailedIds(value);
2885
+ break;
2886
+ case 3:
2887
+ var value = /** @type {string} */ (reader.readString());
2888
+ msg.addFailedReasons(value);
2889
+ break;
2890
+ default:
2891
+ reader.skipField();
2892
+ break;
2893
+ }
2894
+ }
2895
+ return msg;
2896
+ };
2897
+
2898
+
2899
+ /**
2900
+ * Serializes the message to binary data (in protobuf wire format).
2901
+ * @return {!Uint8Array}
2902
+ */
2903
+ proto.wechaty.puppet.RoomDelV2Response.prototype.serializeBinary = function() {
2904
+ var writer = new jspb.BinaryWriter();
2905
+ proto.wechaty.puppet.RoomDelV2Response.serializeBinaryToWriter(this, writer);
2906
+ return writer.getResultBuffer();
2907
+ };
2908
+
2909
+
2910
+ /**
2911
+ * Serializes the given message to binary data (in protobuf wire
2912
+ * format), writing to the given BinaryWriter.
2913
+ * @param {!proto.wechaty.puppet.RoomDelV2Response} message
2914
+ * @param {!jspb.BinaryWriter} writer
2915
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2916
+ */
2917
+ proto.wechaty.puppet.RoomDelV2Response.serializeBinaryToWriter = function(message, writer) {
2918
+ var f = undefined;
2919
+ f = message.getSuccessIdsList();
2920
+ if (f.length > 0) {
2921
+ writer.writeRepeatedString(
2922
+ 1,
2923
+ f
2924
+ );
2925
+ }
2926
+ f = message.getFailedIdsList();
2927
+ if (f.length > 0) {
2928
+ writer.writeRepeatedString(
2929
+ 2,
2930
+ f
2931
+ );
2932
+ }
2933
+ f = message.getFailedReasonsList();
2934
+ if (f.length > 0) {
2935
+ writer.writeRepeatedString(
2936
+ 3,
2937
+ f
2938
+ );
2939
+ }
2940
+ };
2941
+
2942
+
2943
+ /**
2944
+ * repeated string success_ids = 1;
2945
+ * @return {!Array<string>}
2946
+ */
2947
+ proto.wechaty.puppet.RoomDelV2Response.prototype.getSuccessIdsList = function() {
2948
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
2949
+ };
2950
+
2951
+
2952
+ /**
2953
+ * @param {!Array<string>} value
2954
+ * @return {!proto.wechaty.puppet.RoomDelV2Response} returns this
2955
+ */
2956
+ proto.wechaty.puppet.RoomDelV2Response.prototype.setSuccessIdsList = function(value) {
2957
+ return jspb.Message.setField(this, 1, value || []);
2958
+ };
2959
+
2960
+
2961
+ /**
2962
+ * @param {string} value
2963
+ * @param {number=} opt_index
2964
+ * @return {!proto.wechaty.puppet.RoomDelV2Response} returns this
2965
+ */
2966
+ proto.wechaty.puppet.RoomDelV2Response.prototype.addSuccessIds = function(value, opt_index) {
2967
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
2968
+ };
2969
+
2970
+
2971
+ /**
2972
+ * Clears the list making it empty but non-null.
2973
+ * @return {!proto.wechaty.puppet.RoomDelV2Response} returns this
2974
+ */
2975
+ proto.wechaty.puppet.RoomDelV2Response.prototype.clearSuccessIdsList = function() {
2976
+ return this.setSuccessIdsList([]);
2977
+ };
2978
+
2979
+
2980
+ /**
2981
+ * repeated string failed_ids = 2;
2982
+ * @return {!Array<string>}
2983
+ */
2984
+ proto.wechaty.puppet.RoomDelV2Response.prototype.getFailedIdsList = function() {
2985
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
2986
+ };
2987
+
2988
+
2989
+ /**
2990
+ * @param {!Array<string>} value
2991
+ * @return {!proto.wechaty.puppet.RoomDelV2Response} returns this
2992
+ */
2993
+ proto.wechaty.puppet.RoomDelV2Response.prototype.setFailedIdsList = function(value) {
2994
+ return jspb.Message.setField(this, 2, value || []);
2995
+ };
2996
+
2997
+
2998
+ /**
2999
+ * @param {string} value
3000
+ * @param {number=} opt_index
3001
+ * @return {!proto.wechaty.puppet.RoomDelV2Response} returns this
3002
+ */
3003
+ proto.wechaty.puppet.RoomDelV2Response.prototype.addFailedIds = function(value, opt_index) {
3004
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
3005
+ };
3006
+
3007
+
3008
+ /**
3009
+ * Clears the list making it empty but non-null.
3010
+ * @return {!proto.wechaty.puppet.RoomDelV2Response} returns this
3011
+ */
3012
+ proto.wechaty.puppet.RoomDelV2Response.prototype.clearFailedIdsList = function() {
3013
+ return this.setFailedIdsList([]);
3014
+ };
3015
+
3016
+
3017
+ /**
3018
+ * repeated string failed_reasons = 3;
3019
+ * @return {!Array<string>}
3020
+ */
3021
+ proto.wechaty.puppet.RoomDelV2Response.prototype.getFailedReasonsList = function() {
3022
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
3023
+ };
3024
+
3025
+
3026
+ /**
3027
+ * @param {!Array<string>} value
3028
+ * @return {!proto.wechaty.puppet.RoomDelV2Response} returns this
3029
+ */
3030
+ proto.wechaty.puppet.RoomDelV2Response.prototype.setFailedReasonsList = function(value) {
3031
+ return jspb.Message.setField(this, 3, value || []);
3032
+ };
3033
+
3034
+
3035
+ /**
3036
+ * @param {string} value
3037
+ * @param {number=} opt_index
3038
+ * @return {!proto.wechaty.puppet.RoomDelV2Response} returns this
3039
+ */
3040
+ proto.wechaty.puppet.RoomDelV2Response.prototype.addFailedReasons = function(value, opt_index) {
3041
+ return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
3042
+ };
3043
+
3044
+
3045
+ /**
3046
+ * Clears the list making it empty but non-null.
3047
+ * @return {!proto.wechaty.puppet.RoomDelV2Response} returns this
3048
+ */
3049
+ proto.wechaty.puppet.RoomDelV2Response.prototype.clearFailedReasonsList = function() {
3050
+ return this.setFailedReasonsList([]);
3051
+ };
3052
+
3053
+
3054
+
2008
3055
 
2009
3056
 
2010
3057
  if (jspb.Message.GENERATE_TO_OBJECT) {