@juzi/wechaty-grpc 1.0.66 → 1.0.68

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 (67) hide show
  1. package/dist/cjs/commonjs/generated/puppet.cjs +1 -0
  2. package/dist/cjs/commonjs/generated/puppet.cjs.d.ts +1 -0
  3. package/dist/cjs/out/wechaty/puppet/call_pb.d.ts +3 -2
  4. package/dist/cjs/out/wechaty/puppet/call_pb.js +3 -2
  5. package/dist/cjs/out/wechaty/puppet/chat-history_grpc_pb.js +1 -0
  6. package/dist/cjs/out/wechaty/puppet/chat-history_pb.d.ts +121 -0
  7. package/dist/cjs/out/wechaty/puppet/chat-history_pb.js +839 -0
  8. package/dist/cjs/out/wechaty/puppet/chat-history_pb_service.d.ts +3 -0
  9. package/dist/cjs/out/wechaty/puppet/chat-history_pb_service.js +3 -0
  10. package/dist/cjs/out/wechaty/puppet/message_pb.d.ts +49 -0
  11. package/dist/cjs/out/wechaty/puppet/message_pb.js +394 -2
  12. package/dist/cjs/out/wechaty/puppet.openapi.yaml +103 -3
  13. package/dist/cjs/out/wechaty/puppet.swagger.json +139 -4
  14. package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +17 -0
  15. package/dist/cjs/out/wechaty/puppet_grpc_pb.js +33 -0
  16. package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +19 -0
  17. package/dist/cjs/out/wechaty/puppet_pb_service.js +40 -0
  18. package/dist/cjs/proto/wechaty/puppet/call.proto +3 -2
  19. package/dist/cjs/proto/wechaty/puppet/chat-history.proto +42 -0
  20. package/dist/cjs/proto/wechaty/puppet/message.proto +11 -1
  21. package/dist/cjs/proto/wechaty/puppet.proto +5 -0
  22. package/dist/cjs/src/package-json.js +1 -1
  23. package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
  24. package/dist/cjs/tests/puppet-server-impl.js +5 -0
  25. package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
  26. package/dist/esm/commonjs/generated/puppet.cjs +1 -0
  27. package/dist/esm/commonjs/generated/puppet.cjs.d.ts +1 -0
  28. package/dist/esm/out/wechaty/puppet/call_pb.d.ts +3 -2
  29. package/dist/esm/out/wechaty/puppet/call_pb.js +3 -2
  30. package/dist/esm/out/wechaty/puppet/chat-history_grpc_pb.js +1 -0
  31. package/dist/esm/out/wechaty/puppet/chat-history_pb.d.ts +121 -0
  32. package/dist/esm/out/wechaty/puppet/chat-history_pb.js +839 -0
  33. package/dist/esm/out/wechaty/puppet/chat-history_pb_service.d.ts +3 -0
  34. package/dist/esm/out/wechaty/puppet/chat-history_pb_service.js +3 -0
  35. package/dist/esm/out/wechaty/puppet/message_pb.d.ts +49 -0
  36. package/dist/esm/out/wechaty/puppet/message_pb.js +394 -2
  37. package/dist/esm/out/wechaty/puppet.openapi.yaml +103 -3
  38. package/dist/esm/out/wechaty/puppet.swagger.json +139 -4
  39. package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +17 -0
  40. package/dist/esm/out/wechaty/puppet_grpc_pb.js +33 -0
  41. package/dist/esm/out/wechaty/puppet_pb_service.d.ts +19 -0
  42. package/dist/esm/out/wechaty/puppet_pb_service.js +40 -0
  43. package/dist/esm/proto/wechaty/puppet/call.proto +3 -2
  44. package/dist/esm/proto/wechaty/puppet/chat-history.proto +42 -0
  45. package/dist/esm/proto/wechaty/puppet/message.proto +11 -1
  46. package/dist/esm/proto/wechaty/puppet.proto +5 -0
  47. package/dist/esm/src/package-json.js +1 -1
  48. package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
  49. package/dist/esm/tests/puppet-server-impl.js +5 -0
  50. package/dist/esm/tests/puppet-server-impl.js.map +1 -1
  51. package/out/wechaty/puppet/call_pb.d.ts +3 -2
  52. package/out/wechaty/puppet/call_pb.js +3 -2
  53. package/out/wechaty/puppet/chat-history_grpc_pb.js +1 -0
  54. package/out/wechaty/puppet/chat-history_pb.d.ts +121 -0
  55. package/out/wechaty/puppet/chat-history_pb.js +839 -0
  56. package/out/wechaty/puppet/chat-history_pb_service.d.ts +3 -0
  57. package/out/wechaty/puppet/chat-history_pb_service.js +3 -0
  58. package/out/wechaty/puppet/message_pb.d.ts +49 -0
  59. package/out/wechaty/puppet/message_pb.js +394 -2
  60. package/out/wechaty/puppet.openapi.yaml +103 -3
  61. package/out/wechaty/puppet.swagger.json +139 -4
  62. package/out/wechaty/puppet_grpc_pb.d.ts +17 -0
  63. package/out/wechaty/puppet_grpc_pb.js +33 -0
  64. package/out/wechaty/puppet_pb_service.d.ts +19 -0
  65. package/out/wechaty/puppet_pb_service.js +40 -0
  66. package/package.json +1 -1
  67. package/src/package-json.ts +1 -1
@@ -0,0 +1,3 @@
1
+ // package: wechaty.puppet
2
+ // file: wechaty/puppet/chat-history.proto
3
+
@@ -0,0 +1,3 @@
1
+ // package: wechaty.puppet
2
+ // file: wechaty/puppet/chat-history.proto
3
+
@@ -11,6 +11,7 @@ import * as wechaty_puppet_url_link_pb from "../../wechaty/puppet/url-link_pb";
11
11
  import * as wechaty_puppet_channel_pb from "../../wechaty/puppet/channel_pb";
12
12
  import * as wechaty_puppet_post_pb from "../../wechaty/puppet/post_pb";
13
13
  import * as wechaty_puppet_call_pb from "../../wechaty/puppet/call_pb";
14
+ import * as wechaty_puppet_chat_history_pb from "../../wechaty/puppet/chat-history_pb";
14
15
 
15
16
  export class MessagePayloadRequest extends jspb.Message {
16
17
  getId(): string;
@@ -404,6 +405,48 @@ export namespace MessageCallRecordResponse {
404
405
  }
405
406
  }
406
407
 
408
+ export class MessageChatHistoryRequest extends jspb.Message {
409
+ getId(): string;
410
+ setId(value: string): void;
411
+
412
+ serializeBinary(): Uint8Array;
413
+ toObject(includeInstance?: boolean): MessageChatHistoryRequest.AsObject;
414
+ static toObject(includeInstance: boolean, msg: MessageChatHistoryRequest): MessageChatHistoryRequest.AsObject;
415
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
416
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
417
+ static serializeBinaryToWriter(message: MessageChatHistoryRequest, writer: jspb.BinaryWriter): void;
418
+ static deserializeBinary(bytes: Uint8Array): MessageChatHistoryRequest;
419
+ static deserializeBinaryFromReader(message: MessageChatHistoryRequest, reader: jspb.BinaryReader): MessageChatHistoryRequest;
420
+ }
421
+
422
+ export namespace MessageChatHistoryRequest {
423
+ export type AsObject = {
424
+ id: string,
425
+ }
426
+ }
427
+
428
+ export class MessageChatHistoryResponse extends jspb.Message {
429
+ clearChatHistoryListList(): void;
430
+ getChatHistoryListList(): Array<wechaty_puppet_chat_history_pb.ChatHistoryPayload>;
431
+ setChatHistoryListList(value: Array<wechaty_puppet_chat_history_pb.ChatHistoryPayload>): void;
432
+ addChatHistoryList(value?: wechaty_puppet_chat_history_pb.ChatHistoryPayload, index?: number): wechaty_puppet_chat_history_pb.ChatHistoryPayload;
433
+
434
+ serializeBinary(): Uint8Array;
435
+ toObject(includeInstance?: boolean): MessageChatHistoryResponse.AsObject;
436
+ static toObject(includeInstance: boolean, msg: MessageChatHistoryResponse): MessageChatHistoryResponse.AsObject;
437
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
438
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
439
+ static serializeBinaryToWriter(message: MessageChatHistoryResponse, writer: jspb.BinaryWriter): void;
440
+ static deserializeBinary(bytes: Uint8Array): MessageChatHistoryResponse;
441
+ static deserializeBinaryFromReader(message: MessageChatHistoryResponse, reader: jspb.BinaryReader): MessageChatHistoryResponse;
442
+ }
443
+
444
+ export namespace MessageChatHistoryResponse {
445
+ export type AsObject = {
446
+ chatHistoryListList: Array<wechaty_puppet_chat_history_pb.ChatHistoryPayload.AsObject>,
447
+ }
448
+ }
449
+
407
450
  export class MessageSendContactRequest extends jspb.Message {
408
451
  getConversationId(): string;
409
452
  setConversationId(value: string): void;
@@ -725,6 +768,11 @@ export class MessageForwardRequest extends jspb.Message {
725
768
  getConversationId(): string;
726
769
  setConversationId(value: string): void;
727
770
 
771
+ clearMessageIdsList(): void;
772
+ getMessageIdsList(): Array<string>;
773
+ setMessageIdsList(value: Array<string>): void;
774
+ addMessageIds(value: string, index?: number): string;
775
+
728
776
  serializeBinary(): Uint8Array;
729
777
  toObject(includeInstance?: boolean): MessageForwardRequest.AsObject;
730
778
  static toObject(includeInstance: boolean, msg: MessageForwardRequest): MessageForwardRequest.AsObject;
@@ -739,6 +787,7 @@ export namespace MessageForwardRequest {
739
787
  export type AsObject = {
740
788
  messageId: string,
741
789
  conversationId: string,
790
+ messageIdsList: Array<string>,
742
791
  }
743
792
  }
744
793
 
@@ -33,6 +33,8 @@ var wechaty_puppet_post_pb = require('../../wechaty/puppet/post_pb.js');
33
33
  goog.object.extend(proto, wechaty_puppet_post_pb);
34
34
  var wechaty_puppet_call_pb = require('../../wechaty/puppet/call_pb.js');
35
35
  goog.object.extend(proto, wechaty_puppet_call_pb);
36
+ var wechaty_puppet_chat$history_pb = require('../../wechaty/puppet/chat-history_pb.js');
37
+ goog.object.extend(proto, wechaty_puppet_chat$history_pb);
36
38
  goog.exportSymbol('proto.wechaty.puppet.BroadcastStatus', null, global);
37
39
  goog.exportSymbol('proto.wechaty.puppet.BroadcastTarget', null, global);
38
40
  goog.exportSymbol('proto.wechaty.puppet.BroadcastTargetStatus', null, global);
@@ -46,6 +48,8 @@ goog.exportSymbol('proto.wechaty.puppet.MessageCallRecordRequest', null, global)
46
48
  goog.exportSymbol('proto.wechaty.puppet.MessageCallRecordResponse', null, global);
47
49
  goog.exportSymbol('proto.wechaty.puppet.MessageChannelRequest', null, global);
48
50
  goog.exportSymbol('proto.wechaty.puppet.MessageChannelResponse', null, global);
51
+ goog.exportSymbol('proto.wechaty.puppet.MessageChatHistoryRequest', null, global);
52
+ goog.exportSymbol('proto.wechaty.puppet.MessageChatHistoryResponse', null, global);
49
53
  goog.exportSymbol('proto.wechaty.puppet.MessageContactRequest', null, global);
50
54
  goog.exportSymbol('proto.wechaty.puppet.MessageContactResponse', null, global);
51
55
  goog.exportSymbol('proto.wechaty.puppet.MessageFileRequest', null, global);
@@ -417,6 +421,48 @@ if (goog.DEBUG && !COMPILED) {
417
421
  */
418
422
  proto.wechaty.puppet.MessageCallRecordResponse.displayName = 'proto.wechaty.puppet.MessageCallRecordResponse';
419
423
  }
424
+ /**
425
+ * Generated by JsPbCodeGenerator.
426
+ * @param {Array=} opt_data Optional initial data array, typically from a
427
+ * server response, or constructed directly in Javascript. The array is used
428
+ * in place and becomes part of the constructed object. It is not cloned.
429
+ * If no data is provided, the constructed object will be empty, but still
430
+ * valid.
431
+ * @extends {jspb.Message}
432
+ * @constructor
433
+ */
434
+ proto.wechaty.puppet.MessageChatHistoryRequest = function(opt_data) {
435
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
436
+ };
437
+ goog.inherits(proto.wechaty.puppet.MessageChatHistoryRequest, jspb.Message);
438
+ if (goog.DEBUG && !COMPILED) {
439
+ /**
440
+ * @public
441
+ * @override
442
+ */
443
+ proto.wechaty.puppet.MessageChatHistoryRequest.displayName = 'proto.wechaty.puppet.MessageChatHistoryRequest';
444
+ }
445
+ /**
446
+ * Generated by JsPbCodeGenerator.
447
+ * @param {Array=} opt_data Optional initial data array, typically from a
448
+ * server response, or constructed directly in Javascript. The array is used
449
+ * in place and becomes part of the constructed object. It is not cloned.
450
+ * If no data is provided, the constructed object will be empty, but still
451
+ * valid.
452
+ * @extends {jspb.Message}
453
+ * @constructor
454
+ */
455
+ proto.wechaty.puppet.MessageChatHistoryResponse = function(opt_data) {
456
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.wechaty.puppet.MessageChatHistoryResponse.repeatedFields_, null);
457
+ };
458
+ goog.inherits(proto.wechaty.puppet.MessageChatHistoryResponse, jspb.Message);
459
+ if (goog.DEBUG && !COMPILED) {
460
+ /**
461
+ * @public
462
+ * @override
463
+ */
464
+ proto.wechaty.puppet.MessageChatHistoryResponse.displayName = 'proto.wechaty.puppet.MessageChatHistoryResponse';
465
+ }
420
466
  /**
421
467
  * Generated by JsPbCodeGenerator.
422
468
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -680,7 +726,7 @@ if (goog.DEBUG && !COMPILED) {
680
726
  * @constructor
681
727
  */
682
728
  proto.wechaty.puppet.MessageForwardRequest = function(opt_data) {
683
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
729
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.wechaty.puppet.MessageForwardRequest.repeatedFields_, null);
684
730
  };
685
731
  goog.inherits(proto.wechaty.puppet.MessageForwardRequest, jspb.Message);
686
732
  if (goog.DEBUG && !COMPILED) {
@@ -3696,6 +3742,296 @@ proto.wechaty.puppet.MessageCallRecordResponse.prototype.hasCallRecord = functio
3696
3742
 
3697
3743
 
3698
3744
 
3745
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3746
+ /**
3747
+ * Creates an object representation of this proto.
3748
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3749
+ * Optional fields that are not set will be set to undefined.
3750
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3751
+ * For the list of reserved names please see:
3752
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3753
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3754
+ * JSPB instance for transitional soy proto support:
3755
+ * http://goto/soy-param-migration
3756
+ * @return {!Object}
3757
+ */
3758
+ proto.wechaty.puppet.MessageChatHistoryRequest.prototype.toObject = function(opt_includeInstance) {
3759
+ return proto.wechaty.puppet.MessageChatHistoryRequest.toObject(opt_includeInstance, this);
3760
+ };
3761
+
3762
+
3763
+ /**
3764
+ * Static version of the {@see toObject} method.
3765
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3766
+ * the JSPB instance for transitional soy proto support:
3767
+ * http://goto/soy-param-migration
3768
+ * @param {!proto.wechaty.puppet.MessageChatHistoryRequest} msg The msg instance to transform.
3769
+ * @return {!Object}
3770
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3771
+ */
3772
+ proto.wechaty.puppet.MessageChatHistoryRequest.toObject = function(includeInstance, msg) {
3773
+ var f, obj = {
3774
+ id: jspb.Message.getFieldWithDefault(msg, 1, "")
3775
+ };
3776
+
3777
+ if (includeInstance) {
3778
+ obj.$jspbMessageInstance = msg;
3779
+ }
3780
+ return obj;
3781
+ };
3782
+ }
3783
+
3784
+
3785
+ /**
3786
+ * Deserializes binary data (in protobuf wire format).
3787
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3788
+ * @return {!proto.wechaty.puppet.MessageChatHistoryRequest}
3789
+ */
3790
+ proto.wechaty.puppet.MessageChatHistoryRequest.deserializeBinary = function(bytes) {
3791
+ var reader = new jspb.BinaryReader(bytes);
3792
+ var msg = new proto.wechaty.puppet.MessageChatHistoryRequest;
3793
+ return proto.wechaty.puppet.MessageChatHistoryRequest.deserializeBinaryFromReader(msg, reader);
3794
+ };
3795
+
3796
+
3797
+ /**
3798
+ * Deserializes binary data (in protobuf wire format) from the
3799
+ * given reader into the given message object.
3800
+ * @param {!proto.wechaty.puppet.MessageChatHistoryRequest} msg The message object to deserialize into.
3801
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3802
+ * @return {!proto.wechaty.puppet.MessageChatHistoryRequest}
3803
+ */
3804
+ proto.wechaty.puppet.MessageChatHistoryRequest.deserializeBinaryFromReader = function(msg, reader) {
3805
+ while (reader.nextField()) {
3806
+ if (reader.isEndGroup()) {
3807
+ break;
3808
+ }
3809
+ var field = reader.getFieldNumber();
3810
+ switch (field) {
3811
+ case 1:
3812
+ var value = /** @type {string} */ (reader.readString());
3813
+ msg.setId(value);
3814
+ break;
3815
+ default:
3816
+ reader.skipField();
3817
+ break;
3818
+ }
3819
+ }
3820
+ return msg;
3821
+ };
3822
+
3823
+
3824
+ /**
3825
+ * Serializes the message to binary data (in protobuf wire format).
3826
+ * @return {!Uint8Array}
3827
+ */
3828
+ proto.wechaty.puppet.MessageChatHistoryRequest.prototype.serializeBinary = function() {
3829
+ var writer = new jspb.BinaryWriter();
3830
+ proto.wechaty.puppet.MessageChatHistoryRequest.serializeBinaryToWriter(this, writer);
3831
+ return writer.getResultBuffer();
3832
+ };
3833
+
3834
+
3835
+ /**
3836
+ * Serializes the given message to binary data (in protobuf wire
3837
+ * format), writing to the given BinaryWriter.
3838
+ * @param {!proto.wechaty.puppet.MessageChatHistoryRequest} message
3839
+ * @param {!jspb.BinaryWriter} writer
3840
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3841
+ */
3842
+ proto.wechaty.puppet.MessageChatHistoryRequest.serializeBinaryToWriter = function(message, writer) {
3843
+ var f = undefined;
3844
+ f = message.getId();
3845
+ if (f.length > 0) {
3846
+ writer.writeString(
3847
+ 1,
3848
+ f
3849
+ );
3850
+ }
3851
+ };
3852
+
3853
+
3854
+ /**
3855
+ * optional string id = 1;
3856
+ * @return {string}
3857
+ */
3858
+ proto.wechaty.puppet.MessageChatHistoryRequest.prototype.getId = function() {
3859
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3860
+ };
3861
+
3862
+
3863
+ /**
3864
+ * @param {string} value
3865
+ * @return {!proto.wechaty.puppet.MessageChatHistoryRequest} returns this
3866
+ */
3867
+ proto.wechaty.puppet.MessageChatHistoryRequest.prototype.setId = function(value) {
3868
+ return jspb.Message.setProto3StringField(this, 1, value);
3869
+ };
3870
+
3871
+
3872
+
3873
+ /**
3874
+ * List of repeated fields within this message type.
3875
+ * @private {!Array<number>}
3876
+ * @const
3877
+ */
3878
+ proto.wechaty.puppet.MessageChatHistoryResponse.repeatedFields_ = [1];
3879
+
3880
+
3881
+
3882
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3883
+ /**
3884
+ * Creates an object representation of this proto.
3885
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3886
+ * Optional fields that are not set will be set to undefined.
3887
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3888
+ * For the list of reserved names please see:
3889
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3890
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3891
+ * JSPB instance for transitional soy proto support:
3892
+ * http://goto/soy-param-migration
3893
+ * @return {!Object}
3894
+ */
3895
+ proto.wechaty.puppet.MessageChatHistoryResponse.prototype.toObject = function(opt_includeInstance) {
3896
+ return proto.wechaty.puppet.MessageChatHistoryResponse.toObject(opt_includeInstance, this);
3897
+ };
3898
+
3899
+
3900
+ /**
3901
+ * Static version of the {@see toObject} method.
3902
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3903
+ * the JSPB instance for transitional soy proto support:
3904
+ * http://goto/soy-param-migration
3905
+ * @param {!proto.wechaty.puppet.MessageChatHistoryResponse} msg The msg instance to transform.
3906
+ * @return {!Object}
3907
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3908
+ */
3909
+ proto.wechaty.puppet.MessageChatHistoryResponse.toObject = function(includeInstance, msg) {
3910
+ var f, obj = {
3911
+ chatHistoryListList: jspb.Message.toObjectList(msg.getChatHistoryListList(),
3912
+ wechaty_puppet_chat$history_pb.ChatHistoryPayload.toObject, includeInstance)
3913
+ };
3914
+
3915
+ if (includeInstance) {
3916
+ obj.$jspbMessageInstance = msg;
3917
+ }
3918
+ return obj;
3919
+ };
3920
+ }
3921
+
3922
+
3923
+ /**
3924
+ * Deserializes binary data (in protobuf wire format).
3925
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3926
+ * @return {!proto.wechaty.puppet.MessageChatHistoryResponse}
3927
+ */
3928
+ proto.wechaty.puppet.MessageChatHistoryResponse.deserializeBinary = function(bytes) {
3929
+ var reader = new jspb.BinaryReader(bytes);
3930
+ var msg = new proto.wechaty.puppet.MessageChatHistoryResponse;
3931
+ return proto.wechaty.puppet.MessageChatHistoryResponse.deserializeBinaryFromReader(msg, reader);
3932
+ };
3933
+
3934
+
3935
+ /**
3936
+ * Deserializes binary data (in protobuf wire format) from the
3937
+ * given reader into the given message object.
3938
+ * @param {!proto.wechaty.puppet.MessageChatHistoryResponse} msg The message object to deserialize into.
3939
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3940
+ * @return {!proto.wechaty.puppet.MessageChatHistoryResponse}
3941
+ */
3942
+ proto.wechaty.puppet.MessageChatHistoryResponse.deserializeBinaryFromReader = function(msg, reader) {
3943
+ while (reader.nextField()) {
3944
+ if (reader.isEndGroup()) {
3945
+ break;
3946
+ }
3947
+ var field = reader.getFieldNumber();
3948
+ switch (field) {
3949
+ case 1:
3950
+ var value = new wechaty_puppet_chat$history_pb.ChatHistoryPayload;
3951
+ reader.readMessage(value,wechaty_puppet_chat$history_pb.ChatHistoryPayload.deserializeBinaryFromReader);
3952
+ msg.addChatHistoryList(value);
3953
+ break;
3954
+ default:
3955
+ reader.skipField();
3956
+ break;
3957
+ }
3958
+ }
3959
+ return msg;
3960
+ };
3961
+
3962
+
3963
+ /**
3964
+ * Serializes the message to binary data (in protobuf wire format).
3965
+ * @return {!Uint8Array}
3966
+ */
3967
+ proto.wechaty.puppet.MessageChatHistoryResponse.prototype.serializeBinary = function() {
3968
+ var writer = new jspb.BinaryWriter();
3969
+ proto.wechaty.puppet.MessageChatHistoryResponse.serializeBinaryToWriter(this, writer);
3970
+ return writer.getResultBuffer();
3971
+ };
3972
+
3973
+
3974
+ /**
3975
+ * Serializes the given message to binary data (in protobuf wire
3976
+ * format), writing to the given BinaryWriter.
3977
+ * @param {!proto.wechaty.puppet.MessageChatHistoryResponse} message
3978
+ * @param {!jspb.BinaryWriter} writer
3979
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3980
+ */
3981
+ proto.wechaty.puppet.MessageChatHistoryResponse.serializeBinaryToWriter = function(message, writer) {
3982
+ var f = undefined;
3983
+ f = message.getChatHistoryListList();
3984
+ if (f.length > 0) {
3985
+ writer.writeRepeatedMessage(
3986
+ 1,
3987
+ f,
3988
+ wechaty_puppet_chat$history_pb.ChatHistoryPayload.serializeBinaryToWriter
3989
+ );
3990
+ }
3991
+ };
3992
+
3993
+
3994
+ /**
3995
+ * repeated ChatHistoryPayload chat_history_list = 1;
3996
+ * @return {!Array<!proto.wechaty.puppet.ChatHistoryPayload>}
3997
+ */
3998
+ proto.wechaty.puppet.MessageChatHistoryResponse.prototype.getChatHistoryListList = function() {
3999
+ return /** @type{!Array<!proto.wechaty.puppet.ChatHistoryPayload>} */ (
4000
+ jspb.Message.getRepeatedWrapperField(this, wechaty_puppet_chat$history_pb.ChatHistoryPayload, 1));
4001
+ };
4002
+
4003
+
4004
+ /**
4005
+ * @param {!Array<!proto.wechaty.puppet.ChatHistoryPayload>} value
4006
+ * @return {!proto.wechaty.puppet.MessageChatHistoryResponse} returns this
4007
+ */
4008
+ proto.wechaty.puppet.MessageChatHistoryResponse.prototype.setChatHistoryListList = function(value) {
4009
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
4010
+ };
4011
+
4012
+
4013
+ /**
4014
+ * @param {!proto.wechaty.puppet.ChatHistoryPayload=} opt_value
4015
+ * @param {number=} opt_index
4016
+ * @return {!proto.wechaty.puppet.ChatHistoryPayload}
4017
+ */
4018
+ proto.wechaty.puppet.MessageChatHistoryResponse.prototype.addChatHistoryList = function(opt_value, opt_index) {
4019
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.wechaty.puppet.ChatHistoryPayload, opt_index);
4020
+ };
4021
+
4022
+
4023
+ /**
4024
+ * Clears the list making it empty but non-null.
4025
+ * @return {!proto.wechaty.puppet.MessageChatHistoryResponse} returns this
4026
+ */
4027
+ proto.wechaty.puppet.MessageChatHistoryResponse.prototype.clearChatHistoryListList = function() {
4028
+ return this.setChatHistoryListList([]);
4029
+ };
4030
+
4031
+
4032
+
4033
+
4034
+
3699
4035
  if (jspb.Message.GENERATE_TO_OBJECT) {
3700
4036
  /**
3701
4037
  * Creates an object representation of this proto.
@@ -5865,6 +6201,13 @@ proto.wechaty.puppet.MessageRecallResponse.prototype.setSuccess = function(value
5865
6201
 
5866
6202
 
5867
6203
 
6204
+ /**
6205
+ * List of repeated fields within this message type.
6206
+ * @private {!Array<number>}
6207
+ * @const
6208
+ */
6209
+ proto.wechaty.puppet.MessageForwardRequest.repeatedFields_ = [3];
6210
+
5868
6211
 
5869
6212
 
5870
6213
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -5897,7 +6240,8 @@ proto.wechaty.puppet.MessageForwardRequest.prototype.toObject = function(opt_inc
5897
6240
  proto.wechaty.puppet.MessageForwardRequest.toObject = function(includeInstance, msg) {
5898
6241
  var f, obj = {
5899
6242
  messageId: jspb.Message.getFieldWithDefault(msg, 1, ""),
5900
- conversationId: jspb.Message.getFieldWithDefault(msg, 2, "")
6243
+ conversationId: jspb.Message.getFieldWithDefault(msg, 2, ""),
6244
+ messageIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
5901
6245
  };
5902
6246
 
5903
6247
  if (includeInstance) {
@@ -5942,6 +6286,10 @@ proto.wechaty.puppet.MessageForwardRequest.deserializeBinaryFromReader = functio
5942
6286
  var value = /** @type {string} */ (reader.readString());
5943
6287
  msg.setConversationId(value);
5944
6288
  break;
6289
+ case 3:
6290
+ var value = /** @type {string} */ (reader.readString());
6291
+ msg.addMessageIds(value);
6292
+ break;
5945
6293
  default:
5946
6294
  reader.skipField();
5947
6295
  break;
@@ -5985,6 +6333,13 @@ proto.wechaty.puppet.MessageForwardRequest.serializeBinaryToWriter = function(me
5985
6333
  f
5986
6334
  );
5987
6335
  }
6336
+ f = message.getMessageIdsList();
6337
+ if (f.length > 0) {
6338
+ writer.writeRepeatedString(
6339
+ 3,
6340
+ f
6341
+ );
6342
+ }
5988
6343
  };
5989
6344
 
5990
6345
 
@@ -6024,6 +6379,43 @@ proto.wechaty.puppet.MessageForwardRequest.prototype.setConversationId = functio
6024
6379
  };
6025
6380
 
6026
6381
 
6382
+ /**
6383
+ * repeated string message_ids = 3;
6384
+ * @return {!Array<string>}
6385
+ */
6386
+ proto.wechaty.puppet.MessageForwardRequest.prototype.getMessageIdsList = function() {
6387
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
6388
+ };
6389
+
6390
+
6391
+ /**
6392
+ * @param {!Array<string>} value
6393
+ * @return {!proto.wechaty.puppet.MessageForwardRequest} returns this
6394
+ */
6395
+ proto.wechaty.puppet.MessageForwardRequest.prototype.setMessageIdsList = function(value) {
6396
+ return jspb.Message.setField(this, 3, value || []);
6397
+ };
6398
+
6399
+
6400
+ /**
6401
+ * @param {string} value
6402
+ * @param {number=} opt_index
6403
+ * @return {!proto.wechaty.puppet.MessageForwardRequest} returns this
6404
+ */
6405
+ proto.wechaty.puppet.MessageForwardRequest.prototype.addMessageIds = function(value, opt_index) {
6406
+ return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
6407
+ };
6408
+
6409
+
6410
+ /**
6411
+ * Clears the list making it empty but non-null.
6412
+ * @return {!proto.wechaty.puppet.MessageForwardRequest} returns this
6413
+ */
6414
+ proto.wechaty.puppet.MessageForwardRequest.prototype.clearMessageIdsList = function() {
6415
+ return this.setMessageIdsList([]);
6416
+ };
6417
+
6418
+
6027
6419
 
6028
6420
 
6029
6421