@juzi/wechaty-grpc 1.0.108 → 1.0.109
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/out/wechaty/puppet/event_pb.d.ts +2 -0
- package/dist/cjs/out/wechaty/puppet/event_pb.js +3 -1
- package/dist/cjs/out/wechaty/puppet/wecom_pb.d.ts +174 -0
- package/dist/cjs/out/wechaty/puppet/wecom_pb.js +1257 -4
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +132 -1
- package/dist/cjs/out/wechaty/puppet.swagger.json +178 -3
- package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +34 -0
- package/dist/cjs/out/wechaty/puppet_grpc_pb.js +66 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +38 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.js +80 -0
- package/dist/cjs/proto/wechaty/puppet/event.proto +4 -0
- package/dist/cjs/proto/wechaty/puppet/wecom.proto +47 -0
- package/dist/cjs/proto/wechaty/puppet.proto +13 -0
- package/dist/cjs/src/package-json.js +1 -1
- package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
- package/dist/cjs/tests/puppet-server-impl.js +10 -0
- package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
- package/dist/esm/out/wechaty/puppet/event_pb.d.ts +2 -0
- package/dist/esm/out/wechaty/puppet/event_pb.js +3 -1
- package/dist/esm/out/wechaty/puppet/wecom_pb.d.ts +174 -0
- package/dist/esm/out/wechaty/puppet/wecom_pb.js +1257 -4
- package/dist/esm/out/wechaty/puppet.openapi.yaml +132 -1
- package/dist/esm/out/wechaty/puppet.swagger.json +178 -3
- package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +34 -0
- package/dist/esm/out/wechaty/puppet_grpc_pb.js +66 -0
- package/dist/esm/out/wechaty/puppet_pb_service.d.ts +38 -0
- package/dist/esm/out/wechaty/puppet_pb_service.js +80 -0
- package/dist/esm/proto/wechaty/puppet/event.proto +4 -0
- package/dist/esm/proto/wechaty/puppet/wecom.proto +47 -0
- package/dist/esm/proto/wechaty/puppet.proto +13 -0
- package/dist/esm/src/package-json.js +1 -1
- package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
- package/dist/esm/tests/puppet-server-impl.js +10 -0
- package/dist/esm/tests/puppet-server-impl.js.map +1 -1
- package/out/wechaty/puppet/event_pb.d.ts +2 -0
- package/out/wechaty/puppet/event_pb.js +3 -1
- package/out/wechaty/puppet/wecom_pb.d.ts +174 -0
- package/out/wechaty/puppet/wecom_pb.js +1257 -4
- package/out/wechaty/puppet.openapi.yaml +132 -1
- package/out/wechaty/puppet.swagger.json +178 -3
- package/out/wechaty/puppet_grpc_pb.d.ts +34 -0
- package/out/wechaty/puppet_grpc_pb.js +66 -0
- package/out/wechaty/puppet_pb_service.d.ts +38 -0
- package/out/wechaty/puppet_pb_service.js +80 -0
- package/package.json +1 -1
- package/src/package-json.ts +1 -1
|
@@ -28,6 +28,12 @@ goog.exportSymbol('proto.wechaty.puppet.GetRoomAntiSpamStrategyEffectRoomListReq
|
|
|
28
28
|
goog.exportSymbol('proto.wechaty.puppet.GetRoomAntiSpamStrategyEffectRoomListResponse', null, global);
|
|
29
29
|
goog.exportSymbol('proto.wechaty.puppet.GetRoomAntiSpamStrategyListRequest', null, global);
|
|
30
30
|
goog.exportSymbol('proto.wechaty.puppet.GetRoomAntiSpamStrategyListResponse', null, global);
|
|
31
|
+
goog.exportSymbol('proto.wechaty.puppet.OrgBroadcastExecuteRequest', null, global);
|
|
32
|
+
goog.exportSymbol('proto.wechaty.puppet.OrgBroadcastExecuteResponse', null, global);
|
|
33
|
+
goog.exportSymbol('proto.wechaty.puppet.OrgBroadcastPayloadRequest', null, global);
|
|
34
|
+
goog.exportSymbol('proto.wechaty.puppet.OrgBroadcastPayloadResponse', null, global);
|
|
35
|
+
goog.exportSymbol('proto.wechaty.puppet.OrgBroadcastTarget', null, global);
|
|
36
|
+
goog.exportSymbol('proto.wechaty.puppet.OrgBroadcastTargetStatus', null, global);
|
|
31
37
|
goog.exportSymbol('proto.wechaty.puppet.RoomAntiSpamStrategy', null, global);
|
|
32
38
|
/**
|
|
33
39
|
* Generated by JsPbCodeGenerator.
|
|
@@ -302,6 +308,111 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
302
308
|
*/
|
|
303
309
|
proto.wechaty.puppet.GetCorpMessageInterceptionStrategiesResponse.displayName = 'proto.wechaty.puppet.GetCorpMessageInterceptionStrategiesResponse';
|
|
304
310
|
}
|
|
311
|
+
/**
|
|
312
|
+
* Generated by JsPbCodeGenerator.
|
|
313
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
314
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
315
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
316
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
317
|
+
* valid.
|
|
318
|
+
* @extends {jspb.Message}
|
|
319
|
+
* @constructor
|
|
320
|
+
*/
|
|
321
|
+
proto.wechaty.puppet.OrgBroadcastTarget = function(opt_data) {
|
|
322
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
323
|
+
};
|
|
324
|
+
goog.inherits(proto.wechaty.puppet.OrgBroadcastTarget, jspb.Message);
|
|
325
|
+
if (goog.DEBUG && !COMPILED) {
|
|
326
|
+
/**
|
|
327
|
+
* @public
|
|
328
|
+
* @override
|
|
329
|
+
*/
|
|
330
|
+
proto.wechaty.puppet.OrgBroadcastTarget.displayName = 'proto.wechaty.puppet.OrgBroadcastTarget';
|
|
331
|
+
}
|
|
332
|
+
/**
|
|
333
|
+
* Generated by JsPbCodeGenerator.
|
|
334
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
335
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
336
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
337
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
338
|
+
* valid.
|
|
339
|
+
* @extends {jspb.Message}
|
|
340
|
+
* @constructor
|
|
341
|
+
*/
|
|
342
|
+
proto.wechaty.puppet.OrgBroadcastPayloadRequest = function(opt_data) {
|
|
343
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
344
|
+
};
|
|
345
|
+
goog.inherits(proto.wechaty.puppet.OrgBroadcastPayloadRequest, jspb.Message);
|
|
346
|
+
if (goog.DEBUG && !COMPILED) {
|
|
347
|
+
/**
|
|
348
|
+
* @public
|
|
349
|
+
* @override
|
|
350
|
+
*/
|
|
351
|
+
proto.wechaty.puppet.OrgBroadcastPayloadRequest.displayName = 'proto.wechaty.puppet.OrgBroadcastPayloadRequest';
|
|
352
|
+
}
|
|
353
|
+
/**
|
|
354
|
+
* Generated by JsPbCodeGenerator.
|
|
355
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
356
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
357
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
358
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
359
|
+
* valid.
|
|
360
|
+
* @extends {jspb.Message}
|
|
361
|
+
* @constructor
|
|
362
|
+
*/
|
|
363
|
+
proto.wechaty.puppet.OrgBroadcastPayloadResponse = function(opt_data) {
|
|
364
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.wechaty.puppet.OrgBroadcastPayloadResponse.repeatedFields_, null);
|
|
365
|
+
};
|
|
366
|
+
goog.inherits(proto.wechaty.puppet.OrgBroadcastPayloadResponse, jspb.Message);
|
|
367
|
+
if (goog.DEBUG && !COMPILED) {
|
|
368
|
+
/**
|
|
369
|
+
* @public
|
|
370
|
+
* @override
|
|
371
|
+
*/
|
|
372
|
+
proto.wechaty.puppet.OrgBroadcastPayloadResponse.displayName = 'proto.wechaty.puppet.OrgBroadcastPayloadResponse';
|
|
373
|
+
}
|
|
374
|
+
/**
|
|
375
|
+
* Generated by JsPbCodeGenerator.
|
|
376
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
377
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
378
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
379
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
380
|
+
* valid.
|
|
381
|
+
* @extends {jspb.Message}
|
|
382
|
+
* @constructor
|
|
383
|
+
*/
|
|
384
|
+
proto.wechaty.puppet.OrgBroadcastExecuteRequest = function(opt_data) {
|
|
385
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.wechaty.puppet.OrgBroadcastExecuteRequest.repeatedFields_, null);
|
|
386
|
+
};
|
|
387
|
+
goog.inherits(proto.wechaty.puppet.OrgBroadcastExecuteRequest, jspb.Message);
|
|
388
|
+
if (goog.DEBUG && !COMPILED) {
|
|
389
|
+
/**
|
|
390
|
+
* @public
|
|
391
|
+
* @override
|
|
392
|
+
*/
|
|
393
|
+
proto.wechaty.puppet.OrgBroadcastExecuteRequest.displayName = 'proto.wechaty.puppet.OrgBroadcastExecuteRequest';
|
|
394
|
+
}
|
|
395
|
+
/**
|
|
396
|
+
* Generated by JsPbCodeGenerator.
|
|
397
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
398
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
399
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
400
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
401
|
+
* valid.
|
|
402
|
+
* @extends {jspb.Message}
|
|
403
|
+
* @constructor
|
|
404
|
+
*/
|
|
405
|
+
proto.wechaty.puppet.OrgBroadcastExecuteResponse = function(opt_data) {
|
|
406
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
407
|
+
};
|
|
408
|
+
goog.inherits(proto.wechaty.puppet.OrgBroadcastExecuteResponse, jspb.Message);
|
|
409
|
+
if (goog.DEBUG && !COMPILED) {
|
|
410
|
+
/**
|
|
411
|
+
* @public
|
|
412
|
+
* @override
|
|
413
|
+
*/
|
|
414
|
+
proto.wechaty.puppet.OrgBroadcastExecuteResponse.displayName = 'proto.wechaty.puppet.OrgBroadcastExecuteResponse';
|
|
415
|
+
}
|
|
305
416
|
|
|
306
417
|
|
|
307
418
|
|
|
@@ -2399,12 +2510,1154 @@ proto.wechaty.puppet.GetCorpMessageInterceptionStrategiesResponse.prototype.clea
|
|
|
2399
2510
|
};
|
|
2400
2511
|
|
|
2401
2512
|
|
|
2513
|
+
|
|
2514
|
+
|
|
2515
|
+
|
|
2516
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2402
2517
|
/**
|
|
2403
|
-
*
|
|
2518
|
+
* Creates an object representation of this proto.
|
|
2519
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2520
|
+
* Optional fields that are not set will be set to undefined.
|
|
2521
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2522
|
+
* For the list of reserved names please see:
|
|
2523
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2524
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2525
|
+
* JSPB instance for transitional soy proto support:
|
|
2526
|
+
* http://goto/soy-param-migration
|
|
2527
|
+
* @return {!Object}
|
|
2404
2528
|
*/
|
|
2405
|
-
proto.wechaty.puppet.
|
|
2406
|
-
|
|
2407
|
-
|
|
2529
|
+
proto.wechaty.puppet.OrgBroadcastTarget.prototype.toObject = function(opt_includeInstance) {
|
|
2530
|
+
return proto.wechaty.puppet.OrgBroadcastTarget.toObject(opt_includeInstance, this);
|
|
2531
|
+
};
|
|
2532
|
+
|
|
2533
|
+
|
|
2534
|
+
/**
|
|
2535
|
+
* Static version of the {@see toObject} method.
|
|
2536
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2537
|
+
* the JSPB instance for transitional soy proto support:
|
|
2538
|
+
* http://goto/soy-param-migration
|
|
2539
|
+
* @param {!proto.wechaty.puppet.OrgBroadcastTarget} msg The msg instance to transform.
|
|
2540
|
+
* @return {!Object}
|
|
2541
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2542
|
+
*/
|
|
2543
|
+
proto.wechaty.puppet.OrgBroadcastTarget.toObject = function(includeInstance, msg) {
|
|
2544
|
+
var f, obj = {
|
|
2545
|
+
contactId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
2546
|
+
roomId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
2547
|
+
status: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
2548
|
+
};
|
|
2549
|
+
|
|
2550
|
+
if (includeInstance) {
|
|
2551
|
+
obj.$jspbMessageInstance = msg;
|
|
2552
|
+
}
|
|
2553
|
+
return obj;
|
|
2554
|
+
};
|
|
2555
|
+
}
|
|
2556
|
+
|
|
2557
|
+
|
|
2558
|
+
/**
|
|
2559
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2560
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2561
|
+
* @return {!proto.wechaty.puppet.OrgBroadcastTarget}
|
|
2562
|
+
*/
|
|
2563
|
+
proto.wechaty.puppet.OrgBroadcastTarget.deserializeBinary = function(bytes) {
|
|
2564
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2565
|
+
var msg = new proto.wechaty.puppet.OrgBroadcastTarget;
|
|
2566
|
+
return proto.wechaty.puppet.OrgBroadcastTarget.deserializeBinaryFromReader(msg, reader);
|
|
2567
|
+
};
|
|
2568
|
+
|
|
2569
|
+
|
|
2570
|
+
/**
|
|
2571
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2572
|
+
* given reader into the given message object.
|
|
2573
|
+
* @param {!proto.wechaty.puppet.OrgBroadcastTarget} msg The message object to deserialize into.
|
|
2574
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2575
|
+
* @return {!proto.wechaty.puppet.OrgBroadcastTarget}
|
|
2576
|
+
*/
|
|
2577
|
+
proto.wechaty.puppet.OrgBroadcastTarget.deserializeBinaryFromReader = function(msg, reader) {
|
|
2578
|
+
while (reader.nextField()) {
|
|
2579
|
+
if (reader.isEndGroup()) {
|
|
2580
|
+
break;
|
|
2581
|
+
}
|
|
2582
|
+
var field = reader.getFieldNumber();
|
|
2583
|
+
switch (field) {
|
|
2584
|
+
case 1:
|
|
2585
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2586
|
+
msg.setContactId(value);
|
|
2587
|
+
break;
|
|
2588
|
+
case 2:
|
|
2589
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2590
|
+
msg.setRoomId(value);
|
|
2591
|
+
break;
|
|
2592
|
+
case 3:
|
|
2593
|
+
var value = /** @type {!proto.wechaty.puppet.OrgBroadcastTargetStatus} */ (reader.readEnum());
|
|
2594
|
+
msg.setStatus(value);
|
|
2595
|
+
break;
|
|
2596
|
+
default:
|
|
2597
|
+
reader.skipField();
|
|
2598
|
+
break;
|
|
2599
|
+
}
|
|
2600
|
+
}
|
|
2601
|
+
return msg;
|
|
2602
|
+
};
|
|
2603
|
+
|
|
2604
|
+
|
|
2605
|
+
/**
|
|
2606
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2607
|
+
* @return {!Uint8Array}
|
|
2608
|
+
*/
|
|
2609
|
+
proto.wechaty.puppet.OrgBroadcastTarget.prototype.serializeBinary = function() {
|
|
2610
|
+
var writer = new jspb.BinaryWriter();
|
|
2611
|
+
proto.wechaty.puppet.OrgBroadcastTarget.serializeBinaryToWriter(this, writer);
|
|
2612
|
+
return writer.getResultBuffer();
|
|
2613
|
+
};
|
|
2614
|
+
|
|
2615
|
+
|
|
2616
|
+
/**
|
|
2617
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2618
|
+
* format), writing to the given BinaryWriter.
|
|
2619
|
+
* @param {!proto.wechaty.puppet.OrgBroadcastTarget} message
|
|
2620
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2621
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2622
|
+
*/
|
|
2623
|
+
proto.wechaty.puppet.OrgBroadcastTarget.serializeBinaryToWriter = function(message, writer) {
|
|
2624
|
+
var f = undefined;
|
|
2625
|
+
f = message.getContactId();
|
|
2626
|
+
if (f.length > 0) {
|
|
2627
|
+
writer.writeString(
|
|
2628
|
+
1,
|
|
2629
|
+
f
|
|
2630
|
+
);
|
|
2631
|
+
}
|
|
2632
|
+
f = message.getRoomId();
|
|
2633
|
+
if (f.length > 0) {
|
|
2634
|
+
writer.writeString(
|
|
2635
|
+
2,
|
|
2636
|
+
f
|
|
2637
|
+
);
|
|
2638
|
+
}
|
|
2639
|
+
f = message.getStatus();
|
|
2640
|
+
if (f !== 0.0) {
|
|
2641
|
+
writer.writeEnum(
|
|
2642
|
+
3,
|
|
2643
|
+
f
|
|
2644
|
+
);
|
|
2645
|
+
}
|
|
2646
|
+
};
|
|
2647
|
+
|
|
2648
|
+
|
|
2649
|
+
/**
|
|
2650
|
+
* optional string contact_id = 1;
|
|
2651
|
+
* @return {string}
|
|
2652
|
+
*/
|
|
2653
|
+
proto.wechaty.puppet.OrgBroadcastTarget.prototype.getContactId = function() {
|
|
2654
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
2655
|
+
};
|
|
2656
|
+
|
|
2657
|
+
|
|
2658
|
+
/**
|
|
2659
|
+
* @param {string} value
|
|
2660
|
+
* @return {!proto.wechaty.puppet.OrgBroadcastTarget} returns this
|
|
2661
|
+
*/
|
|
2662
|
+
proto.wechaty.puppet.OrgBroadcastTarget.prototype.setContactId = function(value) {
|
|
2663
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
2664
|
+
};
|
|
2665
|
+
|
|
2666
|
+
|
|
2667
|
+
/**
|
|
2668
|
+
* optional string room_id = 2;
|
|
2669
|
+
* @return {string}
|
|
2670
|
+
*/
|
|
2671
|
+
proto.wechaty.puppet.OrgBroadcastTarget.prototype.getRoomId = function() {
|
|
2672
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
2673
|
+
};
|
|
2674
|
+
|
|
2675
|
+
|
|
2676
|
+
/**
|
|
2677
|
+
* @param {string} value
|
|
2678
|
+
* @return {!proto.wechaty.puppet.OrgBroadcastTarget} returns this
|
|
2679
|
+
*/
|
|
2680
|
+
proto.wechaty.puppet.OrgBroadcastTarget.prototype.setRoomId = function(value) {
|
|
2681
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
2682
|
+
};
|
|
2683
|
+
|
|
2684
|
+
|
|
2685
|
+
/**
|
|
2686
|
+
* optional OrgBroadcastTargetStatus status = 3;
|
|
2687
|
+
* @return {!proto.wechaty.puppet.OrgBroadcastTargetStatus}
|
|
2688
|
+
*/
|
|
2689
|
+
proto.wechaty.puppet.OrgBroadcastTarget.prototype.getStatus = function() {
|
|
2690
|
+
return /** @type {!proto.wechaty.puppet.OrgBroadcastTargetStatus} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
2691
|
+
};
|
|
2692
|
+
|
|
2693
|
+
|
|
2694
|
+
/**
|
|
2695
|
+
* @param {!proto.wechaty.puppet.OrgBroadcastTargetStatus} value
|
|
2696
|
+
* @return {!proto.wechaty.puppet.OrgBroadcastTarget} returns this
|
|
2697
|
+
*/
|
|
2698
|
+
proto.wechaty.puppet.OrgBroadcastTarget.prototype.setStatus = function(value) {
|
|
2699
|
+
return jspb.Message.setProto3EnumField(this, 3, value);
|
|
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.OrgBroadcastPayloadRequest.prototype.toObject = function(opt_includeInstance) {
|
|
2720
|
+
return proto.wechaty.puppet.OrgBroadcastPayloadRequest.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.OrgBroadcastPayloadRequest} msg The msg instance to transform.
|
|
2730
|
+
* @return {!Object}
|
|
2731
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2732
|
+
*/
|
|
2733
|
+
proto.wechaty.puppet.OrgBroadcastPayloadRequest.toObject = function(includeInstance, msg) {
|
|
2734
|
+
var f, obj = {
|
|
2735
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
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.OrgBroadcastPayloadRequest}
|
|
2750
|
+
*/
|
|
2751
|
+
proto.wechaty.puppet.OrgBroadcastPayloadRequest.deserializeBinary = function(bytes) {
|
|
2752
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2753
|
+
var msg = new proto.wechaty.puppet.OrgBroadcastPayloadRequest;
|
|
2754
|
+
return proto.wechaty.puppet.OrgBroadcastPayloadRequest.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.OrgBroadcastPayloadRequest} msg The message object to deserialize into.
|
|
2762
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2763
|
+
* @return {!proto.wechaty.puppet.OrgBroadcastPayloadRequest}
|
|
2764
|
+
*/
|
|
2765
|
+
proto.wechaty.puppet.OrgBroadcastPayloadRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
2766
|
+
while (reader.nextField()) {
|
|
2767
|
+
if (reader.isEndGroup()) {
|
|
2768
|
+
break;
|
|
2769
|
+
}
|
|
2770
|
+
var field = reader.getFieldNumber();
|
|
2771
|
+
switch (field) {
|
|
2772
|
+
case 1:
|
|
2773
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2774
|
+
msg.setId(value);
|
|
2775
|
+
break;
|
|
2776
|
+
default:
|
|
2777
|
+
reader.skipField();
|
|
2778
|
+
break;
|
|
2779
|
+
}
|
|
2780
|
+
}
|
|
2781
|
+
return msg;
|
|
2782
|
+
};
|
|
2783
|
+
|
|
2784
|
+
|
|
2785
|
+
/**
|
|
2786
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2787
|
+
* @return {!Uint8Array}
|
|
2788
|
+
*/
|
|
2789
|
+
proto.wechaty.puppet.OrgBroadcastPayloadRequest.prototype.serializeBinary = function() {
|
|
2790
|
+
var writer = new jspb.BinaryWriter();
|
|
2791
|
+
proto.wechaty.puppet.OrgBroadcastPayloadRequest.serializeBinaryToWriter(this, writer);
|
|
2792
|
+
return writer.getResultBuffer();
|
|
2793
|
+
};
|
|
2794
|
+
|
|
2795
|
+
|
|
2796
|
+
/**
|
|
2797
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2798
|
+
* format), writing to the given BinaryWriter.
|
|
2799
|
+
* @param {!proto.wechaty.puppet.OrgBroadcastPayloadRequest} message
|
|
2800
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2801
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2802
|
+
*/
|
|
2803
|
+
proto.wechaty.puppet.OrgBroadcastPayloadRequest.serializeBinaryToWriter = function(message, writer) {
|
|
2804
|
+
var f = undefined;
|
|
2805
|
+
f = message.getId();
|
|
2806
|
+
if (f.length > 0) {
|
|
2807
|
+
writer.writeString(
|
|
2808
|
+
1,
|
|
2809
|
+
f
|
|
2810
|
+
);
|
|
2811
|
+
}
|
|
2812
|
+
};
|
|
2813
|
+
|
|
2814
|
+
|
|
2815
|
+
/**
|
|
2816
|
+
* optional string id = 1;
|
|
2817
|
+
* @return {string}
|
|
2818
|
+
*/
|
|
2819
|
+
proto.wechaty.puppet.OrgBroadcastPayloadRequest.prototype.getId = function() {
|
|
2820
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
2821
|
+
};
|
|
2822
|
+
|
|
2823
|
+
|
|
2824
|
+
/**
|
|
2825
|
+
* @param {string} value
|
|
2826
|
+
* @return {!proto.wechaty.puppet.OrgBroadcastPayloadRequest} returns this
|
|
2827
|
+
*/
|
|
2828
|
+
proto.wechaty.puppet.OrgBroadcastPayloadRequest.prototype.setId = function(value) {
|
|
2829
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
2830
|
+
};
|
|
2831
|
+
|
|
2832
|
+
|
|
2833
|
+
|
|
2834
|
+
/**
|
|
2835
|
+
* List of repeated fields within this message type.
|
|
2836
|
+
* @private {!Array<number>}
|
|
2837
|
+
* @const
|
|
2838
|
+
*/
|
|
2839
|
+
proto.wechaty.puppet.OrgBroadcastPayloadResponse.repeatedFields_ = [13];
|
|
2840
|
+
|
|
2841
|
+
|
|
2842
|
+
|
|
2843
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2844
|
+
/**
|
|
2845
|
+
* Creates an object representation of this proto.
|
|
2846
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2847
|
+
* Optional fields that are not set will be set to undefined.
|
|
2848
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2849
|
+
* For the list of reserved names please see:
|
|
2850
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2851
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2852
|
+
* JSPB instance for transitional soy proto support:
|
|
2853
|
+
* http://goto/soy-param-migration
|
|
2854
|
+
* @return {!Object}
|
|
2855
|
+
*/
|
|
2856
|
+
proto.wechaty.puppet.OrgBroadcastPayloadResponse.prototype.toObject = function(opt_includeInstance) {
|
|
2857
|
+
return proto.wechaty.puppet.OrgBroadcastPayloadResponse.toObject(opt_includeInstance, this);
|
|
2858
|
+
};
|
|
2859
|
+
|
|
2860
|
+
|
|
2861
|
+
/**
|
|
2862
|
+
* Static version of the {@see toObject} method.
|
|
2863
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2864
|
+
* the JSPB instance for transitional soy proto support:
|
|
2865
|
+
* http://goto/soy-param-migration
|
|
2866
|
+
* @param {!proto.wechaty.puppet.OrgBroadcastPayloadResponse} msg The msg instance to transform.
|
|
2867
|
+
* @return {!Object}
|
|
2868
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2869
|
+
*/
|
|
2870
|
+
proto.wechaty.puppet.OrgBroadcastPayloadResponse.toObject = function(includeInstance, msg) {
|
|
2871
|
+
var f, obj = {
|
|
2872
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
2873
|
+
sendType: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
2874
|
+
conversationType: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
2875
|
+
creatorId: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
2876
|
+
execTime: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
2877
|
+
status: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
2878
|
+
canCancel: jspb.Message.getBooleanFieldWithDefault(msg, 7, false),
|
|
2879
|
+
allowSelect: jspb.Message.getBooleanFieldWithDefault(msg, 8, false),
|
|
2880
|
+
sent: jspb.Message.getBooleanFieldWithDefault(msg, 9, false),
|
|
2881
|
+
totalCount: jspb.Message.getFieldWithDefault(msg, 10, 0),
|
|
2882
|
+
sentCount: jspb.Message.getFieldWithDefault(msg, 11, 0),
|
|
2883
|
+
contentListJson: jspb.Message.getFieldWithDefault(msg, 12, ""),
|
|
2884
|
+
targetsList: jspb.Message.toObjectList(msg.getTargetsList(),
|
|
2885
|
+
proto.wechaty.puppet.OrgBroadcastTarget.toObject, includeInstance)
|
|
2886
|
+
};
|
|
2887
|
+
|
|
2888
|
+
if (includeInstance) {
|
|
2889
|
+
obj.$jspbMessageInstance = msg;
|
|
2890
|
+
}
|
|
2891
|
+
return obj;
|
|
2892
|
+
};
|
|
2893
|
+
}
|
|
2894
|
+
|
|
2895
|
+
|
|
2896
|
+
/**
|
|
2897
|
+
* Deserializes binary data (in protobuf wire format).
|
|
2898
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2899
|
+
* @return {!proto.wechaty.puppet.OrgBroadcastPayloadResponse}
|
|
2900
|
+
*/
|
|
2901
|
+
proto.wechaty.puppet.OrgBroadcastPayloadResponse.deserializeBinary = function(bytes) {
|
|
2902
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
2903
|
+
var msg = new proto.wechaty.puppet.OrgBroadcastPayloadResponse;
|
|
2904
|
+
return proto.wechaty.puppet.OrgBroadcastPayloadResponse.deserializeBinaryFromReader(msg, reader);
|
|
2905
|
+
};
|
|
2906
|
+
|
|
2907
|
+
|
|
2908
|
+
/**
|
|
2909
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
2910
|
+
* given reader into the given message object.
|
|
2911
|
+
* @param {!proto.wechaty.puppet.OrgBroadcastPayloadResponse} msg The message object to deserialize into.
|
|
2912
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2913
|
+
* @return {!proto.wechaty.puppet.OrgBroadcastPayloadResponse}
|
|
2914
|
+
*/
|
|
2915
|
+
proto.wechaty.puppet.OrgBroadcastPayloadResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
2916
|
+
while (reader.nextField()) {
|
|
2917
|
+
if (reader.isEndGroup()) {
|
|
2918
|
+
break;
|
|
2919
|
+
}
|
|
2920
|
+
var field = reader.getFieldNumber();
|
|
2921
|
+
switch (field) {
|
|
2922
|
+
case 1:
|
|
2923
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2924
|
+
msg.setId(value);
|
|
2925
|
+
break;
|
|
2926
|
+
case 2:
|
|
2927
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
2928
|
+
msg.setSendType(value);
|
|
2929
|
+
break;
|
|
2930
|
+
case 3:
|
|
2931
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
2932
|
+
msg.setConversationType(value);
|
|
2933
|
+
break;
|
|
2934
|
+
case 4:
|
|
2935
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2936
|
+
msg.setCreatorId(value);
|
|
2937
|
+
break;
|
|
2938
|
+
case 5:
|
|
2939
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
2940
|
+
msg.setExecTime(value);
|
|
2941
|
+
break;
|
|
2942
|
+
case 6:
|
|
2943
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
2944
|
+
msg.setStatus(value);
|
|
2945
|
+
break;
|
|
2946
|
+
case 7:
|
|
2947
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
2948
|
+
msg.setCanCancel(value);
|
|
2949
|
+
break;
|
|
2950
|
+
case 8:
|
|
2951
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
2952
|
+
msg.setAllowSelect(value);
|
|
2953
|
+
break;
|
|
2954
|
+
case 9:
|
|
2955
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
2956
|
+
msg.setSent(value);
|
|
2957
|
+
break;
|
|
2958
|
+
case 10:
|
|
2959
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
2960
|
+
msg.setTotalCount(value);
|
|
2961
|
+
break;
|
|
2962
|
+
case 11:
|
|
2963
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
2964
|
+
msg.setSentCount(value);
|
|
2965
|
+
break;
|
|
2966
|
+
case 12:
|
|
2967
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2968
|
+
msg.setContentListJson(value);
|
|
2969
|
+
break;
|
|
2970
|
+
case 13:
|
|
2971
|
+
var value = new proto.wechaty.puppet.OrgBroadcastTarget;
|
|
2972
|
+
reader.readMessage(value,proto.wechaty.puppet.OrgBroadcastTarget.deserializeBinaryFromReader);
|
|
2973
|
+
msg.addTargets(value);
|
|
2974
|
+
break;
|
|
2975
|
+
default:
|
|
2976
|
+
reader.skipField();
|
|
2977
|
+
break;
|
|
2978
|
+
}
|
|
2979
|
+
}
|
|
2980
|
+
return msg;
|
|
2981
|
+
};
|
|
2982
|
+
|
|
2983
|
+
|
|
2984
|
+
/**
|
|
2985
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2986
|
+
* @return {!Uint8Array}
|
|
2987
|
+
*/
|
|
2988
|
+
proto.wechaty.puppet.OrgBroadcastPayloadResponse.prototype.serializeBinary = function() {
|
|
2989
|
+
var writer = new jspb.BinaryWriter();
|
|
2990
|
+
proto.wechaty.puppet.OrgBroadcastPayloadResponse.serializeBinaryToWriter(this, writer);
|
|
2991
|
+
return writer.getResultBuffer();
|
|
2992
|
+
};
|
|
2993
|
+
|
|
2994
|
+
|
|
2995
|
+
/**
|
|
2996
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2997
|
+
* format), writing to the given BinaryWriter.
|
|
2998
|
+
* @param {!proto.wechaty.puppet.OrgBroadcastPayloadResponse} message
|
|
2999
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3000
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3001
|
+
*/
|
|
3002
|
+
proto.wechaty.puppet.OrgBroadcastPayloadResponse.serializeBinaryToWriter = function(message, writer) {
|
|
3003
|
+
var f = undefined;
|
|
3004
|
+
f = message.getId();
|
|
3005
|
+
if (f.length > 0) {
|
|
3006
|
+
writer.writeString(
|
|
3007
|
+
1,
|
|
3008
|
+
f
|
|
3009
|
+
);
|
|
3010
|
+
}
|
|
3011
|
+
f = message.getSendType();
|
|
3012
|
+
if (f !== 0) {
|
|
3013
|
+
writer.writeInt32(
|
|
3014
|
+
2,
|
|
3015
|
+
f
|
|
3016
|
+
);
|
|
3017
|
+
}
|
|
3018
|
+
f = message.getConversationType();
|
|
3019
|
+
if (f !== 0) {
|
|
3020
|
+
writer.writeInt32(
|
|
3021
|
+
3,
|
|
3022
|
+
f
|
|
3023
|
+
);
|
|
3024
|
+
}
|
|
3025
|
+
f = message.getCreatorId();
|
|
3026
|
+
if (f.length > 0) {
|
|
3027
|
+
writer.writeString(
|
|
3028
|
+
4,
|
|
3029
|
+
f
|
|
3030
|
+
);
|
|
3031
|
+
}
|
|
3032
|
+
f = message.getExecTime();
|
|
3033
|
+
if (f !== 0) {
|
|
3034
|
+
writer.writeInt64(
|
|
3035
|
+
5,
|
|
3036
|
+
f
|
|
3037
|
+
);
|
|
3038
|
+
}
|
|
3039
|
+
f = message.getStatus();
|
|
3040
|
+
if (f !== 0) {
|
|
3041
|
+
writer.writeInt32(
|
|
3042
|
+
6,
|
|
3043
|
+
f
|
|
3044
|
+
);
|
|
3045
|
+
}
|
|
3046
|
+
f = message.getCanCancel();
|
|
3047
|
+
if (f) {
|
|
3048
|
+
writer.writeBool(
|
|
3049
|
+
7,
|
|
3050
|
+
f
|
|
3051
|
+
);
|
|
3052
|
+
}
|
|
3053
|
+
f = message.getAllowSelect();
|
|
3054
|
+
if (f) {
|
|
3055
|
+
writer.writeBool(
|
|
3056
|
+
8,
|
|
3057
|
+
f
|
|
3058
|
+
);
|
|
3059
|
+
}
|
|
3060
|
+
f = message.getSent();
|
|
3061
|
+
if (f) {
|
|
3062
|
+
writer.writeBool(
|
|
3063
|
+
9,
|
|
3064
|
+
f
|
|
3065
|
+
);
|
|
3066
|
+
}
|
|
3067
|
+
f = message.getTotalCount();
|
|
3068
|
+
if (f !== 0) {
|
|
3069
|
+
writer.writeInt32(
|
|
3070
|
+
10,
|
|
3071
|
+
f
|
|
3072
|
+
);
|
|
3073
|
+
}
|
|
3074
|
+
f = message.getSentCount();
|
|
3075
|
+
if (f !== 0) {
|
|
3076
|
+
writer.writeInt32(
|
|
3077
|
+
11,
|
|
3078
|
+
f
|
|
3079
|
+
);
|
|
3080
|
+
}
|
|
3081
|
+
f = message.getContentListJson();
|
|
3082
|
+
if (f.length > 0) {
|
|
3083
|
+
writer.writeString(
|
|
3084
|
+
12,
|
|
3085
|
+
f
|
|
3086
|
+
);
|
|
3087
|
+
}
|
|
3088
|
+
f = message.getTargetsList();
|
|
3089
|
+
if (f.length > 0) {
|
|
3090
|
+
writer.writeRepeatedMessage(
|
|
3091
|
+
13,
|
|
3092
|
+
f,
|
|
3093
|
+
proto.wechaty.puppet.OrgBroadcastTarget.serializeBinaryToWriter
|
|
3094
|
+
);
|
|
3095
|
+
}
|
|
3096
|
+
};
|
|
3097
|
+
|
|
3098
|
+
|
|
3099
|
+
/**
|
|
3100
|
+
* optional string id = 1;
|
|
3101
|
+
* @return {string}
|
|
3102
|
+
*/
|
|
3103
|
+
proto.wechaty.puppet.OrgBroadcastPayloadResponse.prototype.getId = function() {
|
|
3104
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
3105
|
+
};
|
|
3106
|
+
|
|
3107
|
+
|
|
3108
|
+
/**
|
|
3109
|
+
* @param {string} value
|
|
3110
|
+
* @return {!proto.wechaty.puppet.OrgBroadcastPayloadResponse} returns this
|
|
3111
|
+
*/
|
|
3112
|
+
proto.wechaty.puppet.OrgBroadcastPayloadResponse.prototype.setId = function(value) {
|
|
3113
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
3114
|
+
};
|
|
3115
|
+
|
|
3116
|
+
|
|
3117
|
+
/**
|
|
3118
|
+
* optional int32 send_type = 2;
|
|
3119
|
+
* @return {number}
|
|
3120
|
+
*/
|
|
3121
|
+
proto.wechaty.puppet.OrgBroadcastPayloadResponse.prototype.getSendType = function() {
|
|
3122
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
3123
|
+
};
|
|
3124
|
+
|
|
3125
|
+
|
|
3126
|
+
/**
|
|
3127
|
+
* @param {number} value
|
|
3128
|
+
* @return {!proto.wechaty.puppet.OrgBroadcastPayloadResponse} returns this
|
|
3129
|
+
*/
|
|
3130
|
+
proto.wechaty.puppet.OrgBroadcastPayloadResponse.prototype.setSendType = function(value) {
|
|
3131
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
3132
|
+
};
|
|
3133
|
+
|
|
3134
|
+
|
|
3135
|
+
/**
|
|
3136
|
+
* optional int32 conversation_type = 3;
|
|
3137
|
+
* @return {number}
|
|
3138
|
+
*/
|
|
3139
|
+
proto.wechaty.puppet.OrgBroadcastPayloadResponse.prototype.getConversationType = function() {
|
|
3140
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
3141
|
+
};
|
|
3142
|
+
|
|
3143
|
+
|
|
3144
|
+
/**
|
|
3145
|
+
* @param {number} value
|
|
3146
|
+
* @return {!proto.wechaty.puppet.OrgBroadcastPayloadResponse} returns this
|
|
3147
|
+
*/
|
|
3148
|
+
proto.wechaty.puppet.OrgBroadcastPayloadResponse.prototype.setConversationType = function(value) {
|
|
3149
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
3150
|
+
};
|
|
3151
|
+
|
|
3152
|
+
|
|
3153
|
+
/**
|
|
3154
|
+
* optional string creator_id = 4;
|
|
3155
|
+
* @return {string}
|
|
3156
|
+
*/
|
|
3157
|
+
proto.wechaty.puppet.OrgBroadcastPayloadResponse.prototype.getCreatorId = function() {
|
|
3158
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
3159
|
+
};
|
|
3160
|
+
|
|
3161
|
+
|
|
3162
|
+
/**
|
|
3163
|
+
* @param {string} value
|
|
3164
|
+
* @return {!proto.wechaty.puppet.OrgBroadcastPayloadResponse} returns this
|
|
3165
|
+
*/
|
|
3166
|
+
proto.wechaty.puppet.OrgBroadcastPayloadResponse.prototype.setCreatorId = function(value) {
|
|
3167
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
3168
|
+
};
|
|
3169
|
+
|
|
3170
|
+
|
|
3171
|
+
/**
|
|
3172
|
+
* optional int64 exec_time = 5;
|
|
3173
|
+
* @return {number}
|
|
3174
|
+
*/
|
|
3175
|
+
proto.wechaty.puppet.OrgBroadcastPayloadResponse.prototype.getExecTime = function() {
|
|
3176
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
3177
|
+
};
|
|
3178
|
+
|
|
3179
|
+
|
|
3180
|
+
/**
|
|
3181
|
+
* @param {number} value
|
|
3182
|
+
* @return {!proto.wechaty.puppet.OrgBroadcastPayloadResponse} returns this
|
|
3183
|
+
*/
|
|
3184
|
+
proto.wechaty.puppet.OrgBroadcastPayloadResponse.prototype.setExecTime = function(value) {
|
|
3185
|
+
return jspb.Message.setProto3IntField(this, 5, value);
|
|
3186
|
+
};
|
|
3187
|
+
|
|
3188
|
+
|
|
3189
|
+
/**
|
|
3190
|
+
* optional int32 status = 6;
|
|
3191
|
+
* @return {number}
|
|
3192
|
+
*/
|
|
3193
|
+
proto.wechaty.puppet.OrgBroadcastPayloadResponse.prototype.getStatus = function() {
|
|
3194
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
|
3195
|
+
};
|
|
3196
|
+
|
|
3197
|
+
|
|
3198
|
+
/**
|
|
3199
|
+
* @param {number} value
|
|
3200
|
+
* @return {!proto.wechaty.puppet.OrgBroadcastPayloadResponse} returns this
|
|
3201
|
+
*/
|
|
3202
|
+
proto.wechaty.puppet.OrgBroadcastPayloadResponse.prototype.setStatus = function(value) {
|
|
3203
|
+
return jspb.Message.setProto3IntField(this, 6, value);
|
|
3204
|
+
};
|
|
3205
|
+
|
|
3206
|
+
|
|
3207
|
+
/**
|
|
3208
|
+
* optional bool can_cancel = 7;
|
|
3209
|
+
* @return {boolean}
|
|
3210
|
+
*/
|
|
3211
|
+
proto.wechaty.puppet.OrgBroadcastPayloadResponse.prototype.getCanCancel = function() {
|
|
3212
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false));
|
|
3213
|
+
};
|
|
3214
|
+
|
|
3215
|
+
|
|
3216
|
+
/**
|
|
3217
|
+
* @param {boolean} value
|
|
3218
|
+
* @return {!proto.wechaty.puppet.OrgBroadcastPayloadResponse} returns this
|
|
3219
|
+
*/
|
|
3220
|
+
proto.wechaty.puppet.OrgBroadcastPayloadResponse.prototype.setCanCancel = function(value) {
|
|
3221
|
+
return jspb.Message.setProto3BooleanField(this, 7, value);
|
|
3222
|
+
};
|
|
3223
|
+
|
|
3224
|
+
|
|
3225
|
+
/**
|
|
3226
|
+
* optional bool allow_select = 8;
|
|
3227
|
+
* @return {boolean}
|
|
3228
|
+
*/
|
|
3229
|
+
proto.wechaty.puppet.OrgBroadcastPayloadResponse.prototype.getAllowSelect = function() {
|
|
3230
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false));
|
|
3231
|
+
};
|
|
3232
|
+
|
|
3233
|
+
|
|
3234
|
+
/**
|
|
3235
|
+
* @param {boolean} value
|
|
3236
|
+
* @return {!proto.wechaty.puppet.OrgBroadcastPayloadResponse} returns this
|
|
3237
|
+
*/
|
|
3238
|
+
proto.wechaty.puppet.OrgBroadcastPayloadResponse.prototype.setAllowSelect = function(value) {
|
|
3239
|
+
return jspb.Message.setProto3BooleanField(this, 8, value);
|
|
3240
|
+
};
|
|
3241
|
+
|
|
3242
|
+
|
|
3243
|
+
/**
|
|
3244
|
+
* optional bool sent = 9;
|
|
3245
|
+
* @return {boolean}
|
|
3246
|
+
*/
|
|
3247
|
+
proto.wechaty.puppet.OrgBroadcastPayloadResponse.prototype.getSent = function() {
|
|
3248
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false));
|
|
3249
|
+
};
|
|
3250
|
+
|
|
3251
|
+
|
|
3252
|
+
/**
|
|
3253
|
+
* @param {boolean} value
|
|
3254
|
+
* @return {!proto.wechaty.puppet.OrgBroadcastPayloadResponse} returns this
|
|
3255
|
+
*/
|
|
3256
|
+
proto.wechaty.puppet.OrgBroadcastPayloadResponse.prototype.setSent = function(value) {
|
|
3257
|
+
return jspb.Message.setProto3BooleanField(this, 9, value);
|
|
3258
|
+
};
|
|
3259
|
+
|
|
3260
|
+
|
|
3261
|
+
/**
|
|
3262
|
+
* optional int32 total_count = 10;
|
|
3263
|
+
* @return {number}
|
|
3264
|
+
*/
|
|
3265
|
+
proto.wechaty.puppet.OrgBroadcastPayloadResponse.prototype.getTotalCount = function() {
|
|
3266
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
|
|
3267
|
+
};
|
|
3268
|
+
|
|
3269
|
+
|
|
3270
|
+
/**
|
|
3271
|
+
* @param {number} value
|
|
3272
|
+
* @return {!proto.wechaty.puppet.OrgBroadcastPayloadResponse} returns this
|
|
3273
|
+
*/
|
|
3274
|
+
proto.wechaty.puppet.OrgBroadcastPayloadResponse.prototype.setTotalCount = function(value) {
|
|
3275
|
+
return jspb.Message.setProto3IntField(this, 10, value);
|
|
3276
|
+
};
|
|
3277
|
+
|
|
3278
|
+
|
|
3279
|
+
/**
|
|
3280
|
+
* optional int32 sent_count = 11;
|
|
3281
|
+
* @return {number}
|
|
3282
|
+
*/
|
|
3283
|
+
proto.wechaty.puppet.OrgBroadcastPayloadResponse.prototype.getSentCount = function() {
|
|
3284
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0));
|
|
3285
|
+
};
|
|
3286
|
+
|
|
3287
|
+
|
|
3288
|
+
/**
|
|
3289
|
+
* @param {number} value
|
|
3290
|
+
* @return {!proto.wechaty.puppet.OrgBroadcastPayloadResponse} returns this
|
|
3291
|
+
*/
|
|
3292
|
+
proto.wechaty.puppet.OrgBroadcastPayloadResponse.prototype.setSentCount = function(value) {
|
|
3293
|
+
return jspb.Message.setProto3IntField(this, 11, value);
|
|
3294
|
+
};
|
|
3295
|
+
|
|
3296
|
+
|
|
3297
|
+
/**
|
|
3298
|
+
* optional string content_list_json = 12;
|
|
3299
|
+
* @return {string}
|
|
3300
|
+
*/
|
|
3301
|
+
proto.wechaty.puppet.OrgBroadcastPayloadResponse.prototype.getContentListJson = function() {
|
|
3302
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
|
|
3303
|
+
};
|
|
3304
|
+
|
|
3305
|
+
|
|
3306
|
+
/**
|
|
3307
|
+
* @param {string} value
|
|
3308
|
+
* @return {!proto.wechaty.puppet.OrgBroadcastPayloadResponse} returns this
|
|
3309
|
+
*/
|
|
3310
|
+
proto.wechaty.puppet.OrgBroadcastPayloadResponse.prototype.setContentListJson = function(value) {
|
|
3311
|
+
return jspb.Message.setProto3StringField(this, 12, value);
|
|
3312
|
+
};
|
|
3313
|
+
|
|
3314
|
+
|
|
3315
|
+
/**
|
|
3316
|
+
* repeated OrgBroadcastTarget targets = 13;
|
|
3317
|
+
* @return {!Array<!proto.wechaty.puppet.OrgBroadcastTarget>}
|
|
3318
|
+
*/
|
|
3319
|
+
proto.wechaty.puppet.OrgBroadcastPayloadResponse.prototype.getTargetsList = function() {
|
|
3320
|
+
return /** @type{!Array<!proto.wechaty.puppet.OrgBroadcastTarget>} */ (
|
|
3321
|
+
jspb.Message.getRepeatedWrapperField(this, proto.wechaty.puppet.OrgBroadcastTarget, 13));
|
|
3322
|
+
};
|
|
3323
|
+
|
|
3324
|
+
|
|
3325
|
+
/**
|
|
3326
|
+
* @param {!Array<!proto.wechaty.puppet.OrgBroadcastTarget>} value
|
|
3327
|
+
* @return {!proto.wechaty.puppet.OrgBroadcastPayloadResponse} returns this
|
|
3328
|
+
*/
|
|
3329
|
+
proto.wechaty.puppet.OrgBroadcastPayloadResponse.prototype.setTargetsList = function(value) {
|
|
3330
|
+
return jspb.Message.setRepeatedWrapperField(this, 13, value);
|
|
3331
|
+
};
|
|
3332
|
+
|
|
3333
|
+
|
|
3334
|
+
/**
|
|
3335
|
+
* @param {!proto.wechaty.puppet.OrgBroadcastTarget=} opt_value
|
|
3336
|
+
* @param {number=} opt_index
|
|
3337
|
+
* @return {!proto.wechaty.puppet.OrgBroadcastTarget}
|
|
3338
|
+
*/
|
|
3339
|
+
proto.wechaty.puppet.OrgBroadcastPayloadResponse.prototype.addTargets = function(opt_value, opt_index) {
|
|
3340
|
+
return jspb.Message.addToRepeatedWrapperField(this, 13, opt_value, proto.wechaty.puppet.OrgBroadcastTarget, opt_index);
|
|
3341
|
+
};
|
|
3342
|
+
|
|
3343
|
+
|
|
3344
|
+
/**
|
|
3345
|
+
* Clears the list making it empty but non-null.
|
|
3346
|
+
* @return {!proto.wechaty.puppet.OrgBroadcastPayloadResponse} returns this
|
|
3347
|
+
*/
|
|
3348
|
+
proto.wechaty.puppet.OrgBroadcastPayloadResponse.prototype.clearTargetsList = function() {
|
|
3349
|
+
return this.setTargetsList([]);
|
|
3350
|
+
};
|
|
3351
|
+
|
|
3352
|
+
|
|
3353
|
+
|
|
3354
|
+
/**
|
|
3355
|
+
* List of repeated fields within this message type.
|
|
3356
|
+
* @private {!Array<number>}
|
|
3357
|
+
* @const
|
|
3358
|
+
*/
|
|
3359
|
+
proto.wechaty.puppet.OrgBroadcastExecuteRequest.repeatedFields_ = [2];
|
|
3360
|
+
|
|
3361
|
+
|
|
3362
|
+
|
|
3363
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3364
|
+
/**
|
|
3365
|
+
* Creates an object representation of this proto.
|
|
3366
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3367
|
+
* Optional fields that are not set will be set to undefined.
|
|
3368
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3369
|
+
* For the list of reserved names please see:
|
|
3370
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3371
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3372
|
+
* JSPB instance for transitional soy proto support:
|
|
3373
|
+
* http://goto/soy-param-migration
|
|
3374
|
+
* @return {!Object}
|
|
3375
|
+
*/
|
|
3376
|
+
proto.wechaty.puppet.OrgBroadcastExecuteRequest.prototype.toObject = function(opt_includeInstance) {
|
|
3377
|
+
return proto.wechaty.puppet.OrgBroadcastExecuteRequest.toObject(opt_includeInstance, this);
|
|
3378
|
+
};
|
|
3379
|
+
|
|
3380
|
+
|
|
3381
|
+
/**
|
|
3382
|
+
* Static version of the {@see toObject} method.
|
|
3383
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3384
|
+
* the JSPB instance for transitional soy proto support:
|
|
3385
|
+
* http://goto/soy-param-migration
|
|
3386
|
+
* @param {!proto.wechaty.puppet.OrgBroadcastExecuteRequest} msg The msg instance to transform.
|
|
3387
|
+
* @return {!Object}
|
|
3388
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3389
|
+
*/
|
|
3390
|
+
proto.wechaty.puppet.OrgBroadcastExecuteRequest.toObject = function(includeInstance, msg) {
|
|
3391
|
+
var f, obj = {
|
|
3392
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
3393
|
+
targetIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
|
|
3394
|
+
};
|
|
3395
|
+
|
|
3396
|
+
if (includeInstance) {
|
|
3397
|
+
obj.$jspbMessageInstance = msg;
|
|
3398
|
+
}
|
|
3399
|
+
return obj;
|
|
3400
|
+
};
|
|
3401
|
+
}
|
|
3402
|
+
|
|
3403
|
+
|
|
3404
|
+
/**
|
|
3405
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3406
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3407
|
+
* @return {!proto.wechaty.puppet.OrgBroadcastExecuteRequest}
|
|
3408
|
+
*/
|
|
3409
|
+
proto.wechaty.puppet.OrgBroadcastExecuteRequest.deserializeBinary = function(bytes) {
|
|
3410
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3411
|
+
var msg = new proto.wechaty.puppet.OrgBroadcastExecuteRequest;
|
|
3412
|
+
return proto.wechaty.puppet.OrgBroadcastExecuteRequest.deserializeBinaryFromReader(msg, reader);
|
|
3413
|
+
};
|
|
3414
|
+
|
|
3415
|
+
|
|
3416
|
+
/**
|
|
3417
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3418
|
+
* given reader into the given message object.
|
|
3419
|
+
* @param {!proto.wechaty.puppet.OrgBroadcastExecuteRequest} msg The message object to deserialize into.
|
|
3420
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3421
|
+
* @return {!proto.wechaty.puppet.OrgBroadcastExecuteRequest}
|
|
3422
|
+
*/
|
|
3423
|
+
proto.wechaty.puppet.OrgBroadcastExecuteRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
3424
|
+
while (reader.nextField()) {
|
|
3425
|
+
if (reader.isEndGroup()) {
|
|
3426
|
+
break;
|
|
3427
|
+
}
|
|
3428
|
+
var field = reader.getFieldNumber();
|
|
3429
|
+
switch (field) {
|
|
3430
|
+
case 1:
|
|
3431
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3432
|
+
msg.setId(value);
|
|
3433
|
+
break;
|
|
3434
|
+
case 2:
|
|
3435
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3436
|
+
msg.addTargetIds(value);
|
|
3437
|
+
break;
|
|
3438
|
+
default:
|
|
3439
|
+
reader.skipField();
|
|
3440
|
+
break;
|
|
3441
|
+
}
|
|
3442
|
+
}
|
|
3443
|
+
return msg;
|
|
3444
|
+
};
|
|
3445
|
+
|
|
3446
|
+
|
|
3447
|
+
/**
|
|
3448
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3449
|
+
* @return {!Uint8Array}
|
|
3450
|
+
*/
|
|
3451
|
+
proto.wechaty.puppet.OrgBroadcastExecuteRequest.prototype.serializeBinary = function() {
|
|
3452
|
+
var writer = new jspb.BinaryWriter();
|
|
3453
|
+
proto.wechaty.puppet.OrgBroadcastExecuteRequest.serializeBinaryToWriter(this, writer);
|
|
3454
|
+
return writer.getResultBuffer();
|
|
3455
|
+
};
|
|
3456
|
+
|
|
3457
|
+
|
|
3458
|
+
/**
|
|
3459
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3460
|
+
* format), writing to the given BinaryWriter.
|
|
3461
|
+
* @param {!proto.wechaty.puppet.OrgBroadcastExecuteRequest} message
|
|
3462
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3463
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3464
|
+
*/
|
|
3465
|
+
proto.wechaty.puppet.OrgBroadcastExecuteRequest.serializeBinaryToWriter = function(message, writer) {
|
|
3466
|
+
var f = undefined;
|
|
3467
|
+
f = message.getId();
|
|
3468
|
+
if (f.length > 0) {
|
|
3469
|
+
writer.writeString(
|
|
3470
|
+
1,
|
|
3471
|
+
f
|
|
3472
|
+
);
|
|
3473
|
+
}
|
|
3474
|
+
f = message.getTargetIdsList();
|
|
3475
|
+
if (f.length > 0) {
|
|
3476
|
+
writer.writeRepeatedString(
|
|
3477
|
+
2,
|
|
3478
|
+
f
|
|
3479
|
+
);
|
|
3480
|
+
}
|
|
3481
|
+
};
|
|
3482
|
+
|
|
3483
|
+
|
|
3484
|
+
/**
|
|
3485
|
+
* optional string id = 1;
|
|
3486
|
+
* @return {string}
|
|
3487
|
+
*/
|
|
3488
|
+
proto.wechaty.puppet.OrgBroadcastExecuteRequest.prototype.getId = function() {
|
|
3489
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
3490
|
+
};
|
|
3491
|
+
|
|
3492
|
+
|
|
3493
|
+
/**
|
|
3494
|
+
* @param {string} value
|
|
3495
|
+
* @return {!proto.wechaty.puppet.OrgBroadcastExecuteRequest} returns this
|
|
3496
|
+
*/
|
|
3497
|
+
proto.wechaty.puppet.OrgBroadcastExecuteRequest.prototype.setId = function(value) {
|
|
3498
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
3499
|
+
};
|
|
3500
|
+
|
|
3501
|
+
|
|
3502
|
+
/**
|
|
3503
|
+
* repeated string target_ids = 2;
|
|
3504
|
+
* @return {!Array<string>}
|
|
3505
|
+
*/
|
|
3506
|
+
proto.wechaty.puppet.OrgBroadcastExecuteRequest.prototype.getTargetIdsList = function() {
|
|
3507
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
|
|
3508
|
+
};
|
|
3509
|
+
|
|
3510
|
+
|
|
3511
|
+
/**
|
|
3512
|
+
* @param {!Array<string>} value
|
|
3513
|
+
* @return {!proto.wechaty.puppet.OrgBroadcastExecuteRequest} returns this
|
|
3514
|
+
*/
|
|
3515
|
+
proto.wechaty.puppet.OrgBroadcastExecuteRequest.prototype.setTargetIdsList = function(value) {
|
|
3516
|
+
return jspb.Message.setField(this, 2, value || []);
|
|
3517
|
+
};
|
|
3518
|
+
|
|
3519
|
+
|
|
3520
|
+
/**
|
|
3521
|
+
* @param {string} value
|
|
3522
|
+
* @param {number=} opt_index
|
|
3523
|
+
* @return {!proto.wechaty.puppet.OrgBroadcastExecuteRequest} returns this
|
|
3524
|
+
*/
|
|
3525
|
+
proto.wechaty.puppet.OrgBroadcastExecuteRequest.prototype.addTargetIds = function(value, opt_index) {
|
|
3526
|
+
return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
|
|
3527
|
+
};
|
|
3528
|
+
|
|
3529
|
+
|
|
3530
|
+
/**
|
|
3531
|
+
* Clears the list making it empty but non-null.
|
|
3532
|
+
* @return {!proto.wechaty.puppet.OrgBroadcastExecuteRequest} returns this
|
|
3533
|
+
*/
|
|
3534
|
+
proto.wechaty.puppet.OrgBroadcastExecuteRequest.prototype.clearTargetIdsList = function() {
|
|
3535
|
+
return this.setTargetIdsList([]);
|
|
3536
|
+
};
|
|
3537
|
+
|
|
3538
|
+
|
|
3539
|
+
|
|
3540
|
+
|
|
3541
|
+
|
|
3542
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3543
|
+
/**
|
|
3544
|
+
* Creates an object representation of this proto.
|
|
3545
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
3546
|
+
* Optional fields that are not set will be set to undefined.
|
|
3547
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3548
|
+
* For the list of reserved names please see:
|
|
3549
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3550
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3551
|
+
* JSPB instance for transitional soy proto support:
|
|
3552
|
+
* http://goto/soy-param-migration
|
|
3553
|
+
* @return {!Object}
|
|
3554
|
+
*/
|
|
3555
|
+
proto.wechaty.puppet.OrgBroadcastExecuteResponse.prototype.toObject = function(opt_includeInstance) {
|
|
3556
|
+
return proto.wechaty.puppet.OrgBroadcastExecuteResponse.toObject(opt_includeInstance, this);
|
|
3557
|
+
};
|
|
3558
|
+
|
|
3559
|
+
|
|
3560
|
+
/**
|
|
3561
|
+
* Static version of the {@see toObject} method.
|
|
3562
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3563
|
+
* the JSPB instance for transitional soy proto support:
|
|
3564
|
+
* http://goto/soy-param-migration
|
|
3565
|
+
* @param {!proto.wechaty.puppet.OrgBroadcastExecuteResponse} msg The msg instance to transform.
|
|
3566
|
+
* @return {!Object}
|
|
3567
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3568
|
+
*/
|
|
3569
|
+
proto.wechaty.puppet.OrgBroadcastExecuteResponse.toObject = function(includeInstance, msg) {
|
|
3570
|
+
var f, obj = {
|
|
3571
|
+
|
|
3572
|
+
};
|
|
3573
|
+
|
|
3574
|
+
if (includeInstance) {
|
|
3575
|
+
obj.$jspbMessageInstance = msg;
|
|
3576
|
+
}
|
|
3577
|
+
return obj;
|
|
3578
|
+
};
|
|
3579
|
+
}
|
|
3580
|
+
|
|
3581
|
+
|
|
3582
|
+
/**
|
|
3583
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3584
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3585
|
+
* @return {!proto.wechaty.puppet.OrgBroadcastExecuteResponse}
|
|
3586
|
+
*/
|
|
3587
|
+
proto.wechaty.puppet.OrgBroadcastExecuteResponse.deserializeBinary = function(bytes) {
|
|
3588
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3589
|
+
var msg = new proto.wechaty.puppet.OrgBroadcastExecuteResponse;
|
|
3590
|
+
return proto.wechaty.puppet.OrgBroadcastExecuteResponse.deserializeBinaryFromReader(msg, reader);
|
|
3591
|
+
};
|
|
3592
|
+
|
|
3593
|
+
|
|
3594
|
+
/**
|
|
3595
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3596
|
+
* given reader into the given message object.
|
|
3597
|
+
* @param {!proto.wechaty.puppet.OrgBroadcastExecuteResponse} msg The message object to deserialize into.
|
|
3598
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3599
|
+
* @return {!proto.wechaty.puppet.OrgBroadcastExecuteResponse}
|
|
3600
|
+
*/
|
|
3601
|
+
proto.wechaty.puppet.OrgBroadcastExecuteResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
3602
|
+
while (reader.nextField()) {
|
|
3603
|
+
if (reader.isEndGroup()) {
|
|
3604
|
+
break;
|
|
3605
|
+
}
|
|
3606
|
+
var field = reader.getFieldNumber();
|
|
3607
|
+
switch (field) {
|
|
3608
|
+
default:
|
|
3609
|
+
reader.skipField();
|
|
3610
|
+
break;
|
|
3611
|
+
}
|
|
3612
|
+
}
|
|
3613
|
+
return msg;
|
|
3614
|
+
};
|
|
3615
|
+
|
|
3616
|
+
|
|
3617
|
+
/**
|
|
3618
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3619
|
+
* @return {!Uint8Array}
|
|
3620
|
+
*/
|
|
3621
|
+
proto.wechaty.puppet.OrgBroadcastExecuteResponse.prototype.serializeBinary = function() {
|
|
3622
|
+
var writer = new jspb.BinaryWriter();
|
|
3623
|
+
proto.wechaty.puppet.OrgBroadcastExecuteResponse.serializeBinaryToWriter(this, writer);
|
|
3624
|
+
return writer.getResultBuffer();
|
|
3625
|
+
};
|
|
3626
|
+
|
|
3627
|
+
|
|
3628
|
+
/**
|
|
3629
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3630
|
+
* format), writing to the given BinaryWriter.
|
|
3631
|
+
* @param {!proto.wechaty.puppet.OrgBroadcastExecuteResponse} message
|
|
3632
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3633
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3634
|
+
*/
|
|
3635
|
+
proto.wechaty.puppet.OrgBroadcastExecuteResponse.serializeBinaryToWriter = function(message, writer) {
|
|
3636
|
+
var f = undefined;
|
|
3637
|
+
};
|
|
3638
|
+
|
|
3639
|
+
|
|
3640
|
+
/**
|
|
3641
|
+
* @enum {number}
|
|
3642
|
+
*/
|
|
3643
|
+
proto.wechaty.puppet.CorpMessageInterceptionType = {
|
|
3644
|
+
INTERCEPTION_TYPE_HARD: 0,
|
|
3645
|
+
INTERCEPTION_TYPE_SOFT: 1
|
|
3646
|
+
};
|
|
3647
|
+
|
|
3648
|
+
/**
|
|
3649
|
+
* @enum {number}
|
|
3650
|
+
*/
|
|
3651
|
+
proto.wechaty.puppet.OrgBroadcastTargetStatus = {
|
|
3652
|
+
ORG_BROADCAST_TARGET_STATUS_UNSENT: 0,
|
|
3653
|
+
ORG_BROADCAST_TARGET_STATUS_SENT: 1,
|
|
3654
|
+
ORG_BROADCAST_TARGET_STATUS_NOT_FRIEND: 2,
|
|
3655
|
+
ORG_BROADCAST_TARGET_STATUS_OCCUPIED: 3,
|
|
3656
|
+
ORG_BROADCAST_TARGET_STATUS_UNCONFIRMED: 4,
|
|
3657
|
+
ORG_BROADCAST_TARGET_STATUS_CONFIRMED: 5,
|
|
3658
|
+
ORG_BROADCAST_TARGET_STATUS_EXPIRED: 6,
|
|
3659
|
+
ORG_BROADCAST_TARGET_STATUS_CANCELED: 7,
|
|
3660
|
+
ORG_BROADCAST_TARGET_STATUS_NEW_UNSENT: 8
|
|
2408
3661
|
};
|
|
2409
3662
|
|
|
2410
3663
|
goog.object.extend(exports, proto.wechaty.puppet);
|