@juzi/wechaty-grpc 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/commonjs/generated/puppet.cjs +1 -0
- package/dist/cjs/commonjs/generated/puppet.cjs.d.ts +1 -0
- package/dist/cjs/out/wechaty/puppet/channel_grpc_pb.js +1 -0
- package/dist/cjs/out/wechaty/puppet/channel_pb.d.ts +53 -0
- package/dist/cjs/out/wechaty/puppet/channel_pb.js +380 -0
- package/dist/cjs/out/wechaty/puppet/channel_pb_service.d.ts +3 -0
- package/dist/cjs/out/wechaty/puppet/channel_pb_service.js +3 -0
- package/dist/cjs/out/wechaty/puppet/message_pb.d.ts +90 -0
- package/dist/cjs/out/wechaty/puppet/message_pb.js +1394 -711
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +78 -1
- package/dist/cjs/out/wechaty/puppet.swagger.json +122 -2
- package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +35 -0
- package/dist/cjs/out/wechaty/puppet_grpc_pb.js +67 -0
- package/dist/cjs/out/wechaty/puppet_pb.d.ts +1 -0
- package/dist/cjs/out/wechaty/puppet_pb.js +2 -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/channel.proto +17 -0
- package/dist/cjs/proto/wechaty/puppet/message.proto +19 -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/commonjs/generated/puppet.cjs +1 -0
- package/dist/esm/commonjs/generated/puppet.cjs.d.ts +1 -0
- package/dist/esm/out/wechaty/puppet/channel_grpc_pb.js +1 -0
- package/dist/esm/out/wechaty/puppet/channel_pb.d.ts +53 -0
- package/dist/esm/out/wechaty/puppet/channel_pb.js +380 -0
- package/dist/esm/out/wechaty/puppet/channel_pb_service.d.ts +3 -0
- package/dist/esm/out/wechaty/puppet/channel_pb_service.js +3 -0
- package/dist/esm/out/wechaty/puppet/message_pb.d.ts +90 -0
- package/dist/esm/out/wechaty/puppet/message_pb.js +1394 -711
- package/dist/esm/out/wechaty/puppet.openapi.yaml +78 -1
- package/dist/esm/out/wechaty/puppet.swagger.json +122 -2
- package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +35 -0
- package/dist/esm/out/wechaty/puppet_grpc_pb.js +67 -0
- package/dist/esm/out/wechaty/puppet_pb.d.ts +1 -0
- package/dist/esm/out/wechaty/puppet_pb.js +2 -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/channel.proto +17 -0
- package/dist/esm/proto/wechaty/puppet/message.proto +19 -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/channel_grpc_pb.js +1 -0
- package/out/wechaty/puppet/channel_pb.d.ts +53 -0
- package/out/wechaty/puppet/channel_pb.js +380 -0
- package/out/wechaty/puppet/channel_pb_service.d.ts +3 -0
- package/out/wechaty/puppet/channel_pb_service.js +3 -0
- package/out/wechaty/puppet/message_pb.d.ts +90 -0
- package/out/wechaty/puppet/message_pb.js +1394 -711
- package/out/wechaty/puppet.openapi.yaml +78 -1
- package/out/wechaty/puppet.swagger.json +122 -2
- package/out/wechaty/puppet_grpc_pb.d.ts +35 -0
- package/out/wechaty/puppet_grpc_pb.js +67 -0
- package/out/wechaty/puppet_pb.d.ts +1 -0
- package/out/wechaty/puppet_pb.js +2 -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
|
@@ -27,6 +27,10 @@ var wechaty_puppet_mini$program_pb = require('../../wechaty/puppet/mini-program_
|
|
|
27
27
|
goog.object.extend(proto, wechaty_puppet_mini$program_pb);
|
|
28
28
|
var wechaty_puppet_url$link_pb = require('../../wechaty/puppet/url-link_pb.js');
|
|
29
29
|
goog.object.extend(proto, wechaty_puppet_url$link_pb);
|
|
30
|
+
var wechaty_puppet_channel_pb = require('../../wechaty/puppet/channel_pb.js');
|
|
31
|
+
goog.object.extend(proto, wechaty_puppet_channel_pb);
|
|
32
|
+
goog.exportSymbol('proto.wechaty.puppet.MessageChannelRequest', null, global);
|
|
33
|
+
goog.exportSymbol('proto.wechaty.puppet.MessageChannelResponse', null, global);
|
|
30
34
|
goog.exportSymbol('proto.wechaty.puppet.MessageContactRequest', null, global);
|
|
31
35
|
goog.exportSymbol('proto.wechaty.puppet.MessageContactResponse', null, global);
|
|
32
36
|
goog.exportSymbol('proto.wechaty.puppet.MessageFileRequest', null, global);
|
|
@@ -43,6 +47,8 @@ goog.exportSymbol('proto.wechaty.puppet.MessagePayloadRequest', null, global);
|
|
|
43
47
|
goog.exportSymbol('proto.wechaty.puppet.MessagePayloadResponse', null, global);
|
|
44
48
|
goog.exportSymbol('proto.wechaty.puppet.MessageRecallRequest', null, global);
|
|
45
49
|
goog.exportSymbol('proto.wechaty.puppet.MessageRecallResponse', null, global);
|
|
50
|
+
goog.exportSymbol('proto.wechaty.puppet.MessageSendChannelRequest', null, global);
|
|
51
|
+
goog.exportSymbol('proto.wechaty.puppet.MessageSendChannelResponse', null, global);
|
|
46
52
|
goog.exportSymbol('proto.wechaty.puppet.MessageSendContactRequest', null, global);
|
|
47
53
|
goog.exportSymbol('proto.wechaty.puppet.MessageSendContactResponse', null, global);
|
|
48
54
|
goog.exportSymbol('proto.wechaty.puppet.MessageSendFileRequest', null, global);
|
|
@@ -310,6 +316,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
310
316
|
*/
|
|
311
317
|
proto.wechaty.puppet.MessageUrlResponse.displayName = 'proto.wechaty.puppet.MessageUrlResponse';
|
|
312
318
|
}
|
|
319
|
+
/**
|
|
320
|
+
* Generated by JsPbCodeGenerator.
|
|
321
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
322
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
323
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
324
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
325
|
+
* valid.
|
|
326
|
+
* @extends {jspb.Message}
|
|
327
|
+
* @constructor
|
|
328
|
+
*/
|
|
329
|
+
proto.wechaty.puppet.MessageChannelRequest = function(opt_data) {
|
|
330
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
331
|
+
};
|
|
332
|
+
goog.inherits(proto.wechaty.puppet.MessageChannelRequest, jspb.Message);
|
|
333
|
+
if (goog.DEBUG && !COMPILED) {
|
|
334
|
+
/**
|
|
335
|
+
* @public
|
|
336
|
+
* @override
|
|
337
|
+
*/
|
|
338
|
+
proto.wechaty.puppet.MessageChannelRequest.displayName = 'proto.wechaty.puppet.MessageChannelRequest';
|
|
339
|
+
}
|
|
340
|
+
/**
|
|
341
|
+
* Generated by JsPbCodeGenerator.
|
|
342
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
343
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
344
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
345
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
346
|
+
* valid.
|
|
347
|
+
* @extends {jspb.Message}
|
|
348
|
+
* @constructor
|
|
349
|
+
*/
|
|
350
|
+
proto.wechaty.puppet.MessageChannelResponse = function(opt_data) {
|
|
351
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
352
|
+
};
|
|
353
|
+
goog.inherits(proto.wechaty.puppet.MessageChannelResponse, jspb.Message);
|
|
354
|
+
if (goog.DEBUG && !COMPILED) {
|
|
355
|
+
/**
|
|
356
|
+
* @public
|
|
357
|
+
* @override
|
|
358
|
+
*/
|
|
359
|
+
proto.wechaty.puppet.MessageChannelResponse.displayName = 'proto.wechaty.puppet.MessageChannelResponse';
|
|
360
|
+
}
|
|
313
361
|
/**
|
|
314
362
|
* Generated by JsPbCodeGenerator.
|
|
315
363
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -688,6 +736,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
688
736
|
*/
|
|
689
737
|
proto.wechaty.puppet.MessageSendLocationResponse.displayName = 'proto.wechaty.puppet.MessageSendLocationResponse';
|
|
690
738
|
}
|
|
739
|
+
/**
|
|
740
|
+
* Generated by JsPbCodeGenerator.
|
|
741
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
742
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
743
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
744
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
745
|
+
* valid.
|
|
746
|
+
* @extends {jspb.Message}
|
|
747
|
+
* @constructor
|
|
748
|
+
*/
|
|
749
|
+
proto.wechaty.puppet.MessageSendChannelRequest = function(opt_data) {
|
|
750
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
751
|
+
};
|
|
752
|
+
goog.inherits(proto.wechaty.puppet.MessageSendChannelRequest, jspb.Message);
|
|
753
|
+
if (goog.DEBUG && !COMPILED) {
|
|
754
|
+
/**
|
|
755
|
+
* @public
|
|
756
|
+
* @override
|
|
757
|
+
*/
|
|
758
|
+
proto.wechaty.puppet.MessageSendChannelRequest.displayName = 'proto.wechaty.puppet.MessageSendChannelRequest';
|
|
759
|
+
}
|
|
760
|
+
/**
|
|
761
|
+
* Generated by JsPbCodeGenerator.
|
|
762
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
763
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
764
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
765
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
766
|
+
* valid.
|
|
767
|
+
* @extends {jspb.Message}
|
|
768
|
+
* @constructor
|
|
769
|
+
*/
|
|
770
|
+
proto.wechaty.puppet.MessageSendChannelResponse = function(opt_data) {
|
|
771
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
772
|
+
};
|
|
773
|
+
goog.inherits(proto.wechaty.puppet.MessageSendChannelResponse, jspb.Message);
|
|
774
|
+
if (goog.DEBUG && !COMPILED) {
|
|
775
|
+
/**
|
|
776
|
+
* @public
|
|
777
|
+
* @override
|
|
778
|
+
*/
|
|
779
|
+
proto.wechaty.puppet.MessageSendChannelResponse.displayName = 'proto.wechaty.puppet.MessageSendChannelResponse';
|
|
780
|
+
}
|
|
691
781
|
|
|
692
782
|
|
|
693
783
|
|
|
@@ -2713,8 +2803,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
2713
2803
|
* http://goto/soy-param-migration
|
|
2714
2804
|
* @return {!Object}
|
|
2715
2805
|
*/
|
|
2716
|
-
proto.wechaty.puppet.
|
|
2717
|
-
return proto.wechaty.puppet.
|
|
2806
|
+
proto.wechaty.puppet.MessageChannelRequest.prototype.toObject = function(opt_includeInstance) {
|
|
2807
|
+
return proto.wechaty.puppet.MessageChannelRequest.toObject(opt_includeInstance, this);
|
|
2718
2808
|
};
|
|
2719
2809
|
|
|
2720
2810
|
|
|
@@ -2723,14 +2813,13 @@ proto.wechaty.puppet.MessageSendContactRequest.prototype.toObject = function(opt
|
|
|
2723
2813
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2724
2814
|
* the JSPB instance for transitional soy proto support:
|
|
2725
2815
|
* http://goto/soy-param-migration
|
|
2726
|
-
* @param {!proto.wechaty.puppet.
|
|
2816
|
+
* @param {!proto.wechaty.puppet.MessageChannelRequest} msg The msg instance to transform.
|
|
2727
2817
|
* @return {!Object}
|
|
2728
2818
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2729
2819
|
*/
|
|
2730
|
-
proto.wechaty.puppet.
|
|
2820
|
+
proto.wechaty.puppet.MessageChannelRequest.toObject = function(includeInstance, msg) {
|
|
2731
2821
|
var f, obj = {
|
|
2732
|
-
|
|
2733
|
-
contactId: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
2822
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
2734
2823
|
};
|
|
2735
2824
|
|
|
2736
2825
|
if (includeInstance) {
|
|
@@ -2744,23 +2833,23 @@ proto.wechaty.puppet.MessageSendContactRequest.toObject = function(includeInstan
|
|
|
2744
2833
|
/**
|
|
2745
2834
|
* Deserializes binary data (in protobuf wire format).
|
|
2746
2835
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2747
|
-
* @return {!proto.wechaty.puppet.
|
|
2836
|
+
* @return {!proto.wechaty.puppet.MessageChannelRequest}
|
|
2748
2837
|
*/
|
|
2749
|
-
proto.wechaty.puppet.
|
|
2838
|
+
proto.wechaty.puppet.MessageChannelRequest.deserializeBinary = function(bytes) {
|
|
2750
2839
|
var reader = new jspb.BinaryReader(bytes);
|
|
2751
|
-
var msg = new proto.wechaty.puppet.
|
|
2752
|
-
return proto.wechaty.puppet.
|
|
2840
|
+
var msg = new proto.wechaty.puppet.MessageChannelRequest;
|
|
2841
|
+
return proto.wechaty.puppet.MessageChannelRequest.deserializeBinaryFromReader(msg, reader);
|
|
2753
2842
|
};
|
|
2754
2843
|
|
|
2755
2844
|
|
|
2756
2845
|
/**
|
|
2757
2846
|
* Deserializes binary data (in protobuf wire format) from the
|
|
2758
2847
|
* given reader into the given message object.
|
|
2759
|
-
* @param {!proto.wechaty.puppet.
|
|
2848
|
+
* @param {!proto.wechaty.puppet.MessageChannelRequest} msg The message object to deserialize into.
|
|
2760
2849
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2761
|
-
* @return {!proto.wechaty.puppet.
|
|
2850
|
+
* @return {!proto.wechaty.puppet.MessageChannelRequest}
|
|
2762
2851
|
*/
|
|
2763
|
-
proto.wechaty.puppet.
|
|
2852
|
+
proto.wechaty.puppet.MessageChannelRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
2764
2853
|
while (reader.nextField()) {
|
|
2765
2854
|
if (reader.isEndGroup()) {
|
|
2766
2855
|
break;
|
|
@@ -2769,11 +2858,7 @@ proto.wechaty.puppet.MessageSendContactRequest.deserializeBinaryFromReader = fun
|
|
|
2769
2858
|
switch (field) {
|
|
2770
2859
|
case 1:
|
|
2771
2860
|
var value = /** @type {string} */ (reader.readString());
|
|
2772
|
-
msg.
|
|
2773
|
-
break;
|
|
2774
|
-
case 2:
|
|
2775
|
-
var value = /** @type {string} */ (reader.readString());
|
|
2776
|
-
msg.setContactId(value);
|
|
2861
|
+
msg.setId(value);
|
|
2777
2862
|
break;
|
|
2778
2863
|
default:
|
|
2779
2864
|
reader.skipField();
|
|
@@ -2788,9 +2873,9 @@ proto.wechaty.puppet.MessageSendContactRequest.deserializeBinaryFromReader = fun
|
|
|
2788
2873
|
* Serializes the message to binary data (in protobuf wire format).
|
|
2789
2874
|
* @return {!Uint8Array}
|
|
2790
2875
|
*/
|
|
2791
|
-
proto.wechaty.puppet.
|
|
2876
|
+
proto.wechaty.puppet.MessageChannelRequest.prototype.serializeBinary = function() {
|
|
2792
2877
|
var writer = new jspb.BinaryWriter();
|
|
2793
|
-
proto.wechaty.puppet.
|
|
2878
|
+
proto.wechaty.puppet.MessageChannelRequest.serializeBinaryToWriter(this, writer);
|
|
2794
2879
|
return writer.getResultBuffer();
|
|
2795
2880
|
};
|
|
2796
2881
|
|
|
@@ -2798,65 +2883,40 @@ proto.wechaty.puppet.MessageSendContactRequest.prototype.serializeBinary = funct
|
|
|
2798
2883
|
/**
|
|
2799
2884
|
* Serializes the given message to binary data (in protobuf wire
|
|
2800
2885
|
* format), writing to the given BinaryWriter.
|
|
2801
|
-
* @param {!proto.wechaty.puppet.
|
|
2886
|
+
* @param {!proto.wechaty.puppet.MessageChannelRequest} message
|
|
2802
2887
|
* @param {!jspb.BinaryWriter} writer
|
|
2803
2888
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2804
2889
|
*/
|
|
2805
|
-
proto.wechaty.puppet.
|
|
2890
|
+
proto.wechaty.puppet.MessageChannelRequest.serializeBinaryToWriter = function(message, writer) {
|
|
2806
2891
|
var f = undefined;
|
|
2807
|
-
f = message.
|
|
2892
|
+
f = message.getId();
|
|
2808
2893
|
if (f.length > 0) {
|
|
2809
2894
|
writer.writeString(
|
|
2810
2895
|
1,
|
|
2811
2896
|
f
|
|
2812
2897
|
);
|
|
2813
2898
|
}
|
|
2814
|
-
f = message.getContactId();
|
|
2815
|
-
if (f.length > 0) {
|
|
2816
|
-
writer.writeString(
|
|
2817
|
-
2,
|
|
2818
|
-
f
|
|
2819
|
-
);
|
|
2820
|
-
}
|
|
2821
2899
|
};
|
|
2822
2900
|
|
|
2823
2901
|
|
|
2824
2902
|
/**
|
|
2825
|
-
* optional string
|
|
2903
|
+
* optional string id = 1;
|
|
2826
2904
|
* @return {string}
|
|
2827
2905
|
*/
|
|
2828
|
-
proto.wechaty.puppet.
|
|
2906
|
+
proto.wechaty.puppet.MessageChannelRequest.prototype.getId = function() {
|
|
2829
2907
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
2830
2908
|
};
|
|
2831
2909
|
|
|
2832
2910
|
|
|
2833
2911
|
/**
|
|
2834
2912
|
* @param {string} value
|
|
2835
|
-
* @return {!proto.wechaty.puppet.
|
|
2913
|
+
* @return {!proto.wechaty.puppet.MessageChannelRequest} returns this
|
|
2836
2914
|
*/
|
|
2837
|
-
proto.wechaty.puppet.
|
|
2915
|
+
proto.wechaty.puppet.MessageChannelRequest.prototype.setId = function(value) {
|
|
2838
2916
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
2839
2917
|
};
|
|
2840
2918
|
|
|
2841
2919
|
|
|
2842
|
-
/**
|
|
2843
|
-
* optional string contact_id = 2;
|
|
2844
|
-
* @return {string}
|
|
2845
|
-
*/
|
|
2846
|
-
proto.wechaty.puppet.MessageSendContactRequest.prototype.getContactId = function() {
|
|
2847
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
2848
|
-
};
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
/**
|
|
2852
|
-
* @param {string} value
|
|
2853
|
-
* @return {!proto.wechaty.puppet.MessageSendContactRequest} returns this
|
|
2854
|
-
*/
|
|
2855
|
-
proto.wechaty.puppet.MessageSendContactRequest.prototype.setContactId = function(value) {
|
|
2856
|
-
return jspb.Message.setProto3StringField(this, 2, value);
|
|
2857
|
-
};
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
2920
|
|
|
2861
2921
|
|
|
2862
2922
|
|
|
@@ -2873,8 +2933,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
2873
2933
|
* http://goto/soy-param-migration
|
|
2874
2934
|
* @return {!Object}
|
|
2875
2935
|
*/
|
|
2876
|
-
proto.wechaty.puppet.
|
|
2877
|
-
return proto.wechaty.puppet.
|
|
2936
|
+
proto.wechaty.puppet.MessageChannelResponse.prototype.toObject = function(opt_includeInstance) {
|
|
2937
|
+
return proto.wechaty.puppet.MessageChannelResponse.toObject(opt_includeInstance, this);
|
|
2878
2938
|
};
|
|
2879
2939
|
|
|
2880
2940
|
|
|
@@ -2883,14 +2943,13 @@ proto.wechaty.puppet.MessageSendContactResponse.prototype.toObject = function(op
|
|
|
2883
2943
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2884
2944
|
* the JSPB instance for transitional soy proto support:
|
|
2885
2945
|
* http://goto/soy-param-migration
|
|
2886
|
-
* @param {!proto.wechaty.puppet.
|
|
2946
|
+
* @param {!proto.wechaty.puppet.MessageChannelResponse} msg The msg instance to transform.
|
|
2887
2947
|
* @return {!Object}
|
|
2888
2948
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2889
2949
|
*/
|
|
2890
|
-
proto.wechaty.puppet.
|
|
2950
|
+
proto.wechaty.puppet.MessageChannelResponse.toObject = function(includeInstance, msg) {
|
|
2891
2951
|
var f, obj = {
|
|
2892
|
-
|
|
2893
|
-
id: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
2952
|
+
channel: (f = msg.getChannel()) && wechaty_puppet_channel_pb.ChannelPayload.toObject(includeInstance, f)
|
|
2894
2953
|
};
|
|
2895
2954
|
|
|
2896
2955
|
if (includeInstance) {
|
|
@@ -2904,23 +2963,23 @@ proto.wechaty.puppet.MessageSendContactResponse.toObject = function(includeInsta
|
|
|
2904
2963
|
/**
|
|
2905
2964
|
* Deserializes binary data (in protobuf wire format).
|
|
2906
2965
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2907
|
-
* @return {!proto.wechaty.puppet.
|
|
2966
|
+
* @return {!proto.wechaty.puppet.MessageChannelResponse}
|
|
2908
2967
|
*/
|
|
2909
|
-
proto.wechaty.puppet.
|
|
2968
|
+
proto.wechaty.puppet.MessageChannelResponse.deserializeBinary = function(bytes) {
|
|
2910
2969
|
var reader = new jspb.BinaryReader(bytes);
|
|
2911
|
-
var msg = new proto.wechaty.puppet.
|
|
2912
|
-
return proto.wechaty.puppet.
|
|
2970
|
+
var msg = new proto.wechaty.puppet.MessageChannelResponse;
|
|
2971
|
+
return proto.wechaty.puppet.MessageChannelResponse.deserializeBinaryFromReader(msg, reader);
|
|
2913
2972
|
};
|
|
2914
2973
|
|
|
2915
2974
|
|
|
2916
2975
|
/**
|
|
2917
2976
|
* Deserializes binary data (in protobuf wire format) from the
|
|
2918
2977
|
* given reader into the given message object.
|
|
2919
|
-
* @param {!proto.wechaty.puppet.
|
|
2978
|
+
* @param {!proto.wechaty.puppet.MessageChannelResponse} msg The message object to deserialize into.
|
|
2920
2979
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2921
|
-
* @return {!proto.wechaty.puppet.
|
|
2980
|
+
* @return {!proto.wechaty.puppet.MessageChannelResponse}
|
|
2922
2981
|
*/
|
|
2923
|
-
proto.wechaty.puppet.
|
|
2982
|
+
proto.wechaty.puppet.MessageChannelResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
2924
2983
|
while (reader.nextField()) {
|
|
2925
2984
|
if (reader.isEndGroup()) {
|
|
2926
2985
|
break;
|
|
@@ -2928,13 +2987,9 @@ proto.wechaty.puppet.MessageSendContactResponse.deserializeBinaryFromReader = fu
|
|
|
2928
2987
|
var field = reader.getFieldNumber();
|
|
2929
2988
|
switch (field) {
|
|
2930
2989
|
case 1:
|
|
2931
|
-
var value = new
|
|
2932
|
-
reader.readMessage(value,
|
|
2933
|
-
msg.
|
|
2934
|
-
break;
|
|
2935
|
-
case 2:
|
|
2936
|
-
var value = /** @type {string} */ (reader.readString());
|
|
2937
|
-
msg.setId(value);
|
|
2990
|
+
var value = new wechaty_puppet_channel_pb.ChannelPayload;
|
|
2991
|
+
reader.readMessage(value,wechaty_puppet_channel_pb.ChannelPayload.deserializeBinaryFromReader);
|
|
2992
|
+
msg.setChannel(value);
|
|
2938
2993
|
break;
|
|
2939
2994
|
default:
|
|
2940
2995
|
reader.skipField();
|
|
@@ -2949,9 +3004,9 @@ proto.wechaty.puppet.MessageSendContactResponse.deserializeBinaryFromReader = fu
|
|
|
2949
3004
|
* Serializes the message to binary data (in protobuf wire format).
|
|
2950
3005
|
* @return {!Uint8Array}
|
|
2951
3006
|
*/
|
|
2952
|
-
proto.wechaty.puppet.
|
|
3007
|
+
proto.wechaty.puppet.MessageChannelResponse.prototype.serializeBinary = function() {
|
|
2953
3008
|
var writer = new jspb.BinaryWriter();
|
|
2954
|
-
proto.wechaty.puppet.
|
|
3009
|
+
proto.wechaty.puppet.MessageChannelResponse.serializeBinaryToWriter(this, writer);
|
|
2955
3010
|
return writer.getResultBuffer();
|
|
2956
3011
|
};
|
|
2957
3012
|
|
|
@@ -2959,55 +3014,48 @@ proto.wechaty.puppet.MessageSendContactResponse.prototype.serializeBinary = func
|
|
|
2959
3014
|
/**
|
|
2960
3015
|
* Serializes the given message to binary data (in protobuf wire
|
|
2961
3016
|
* format), writing to the given BinaryWriter.
|
|
2962
|
-
* @param {!proto.wechaty.puppet.
|
|
3017
|
+
* @param {!proto.wechaty.puppet.MessageChannelResponse} message
|
|
2963
3018
|
* @param {!jspb.BinaryWriter} writer
|
|
2964
3019
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2965
3020
|
*/
|
|
2966
|
-
proto.wechaty.puppet.
|
|
3021
|
+
proto.wechaty.puppet.MessageChannelResponse.serializeBinaryToWriter = function(message, writer) {
|
|
2967
3022
|
var f = undefined;
|
|
2968
|
-
f = message.
|
|
3023
|
+
f = message.getChannel();
|
|
2969
3024
|
if (f != null) {
|
|
2970
3025
|
writer.writeMessage(
|
|
2971
3026
|
1,
|
|
2972
3027
|
f,
|
|
2973
|
-
|
|
2974
|
-
);
|
|
2975
|
-
}
|
|
2976
|
-
f = message.getId();
|
|
2977
|
-
if (f.length > 0) {
|
|
2978
|
-
writer.writeString(
|
|
2979
|
-
2,
|
|
2980
|
-
f
|
|
3028
|
+
wechaty_puppet_channel_pb.ChannelPayload.serializeBinaryToWriter
|
|
2981
3029
|
);
|
|
2982
3030
|
}
|
|
2983
3031
|
};
|
|
2984
3032
|
|
|
2985
3033
|
|
|
2986
3034
|
/**
|
|
2987
|
-
* optional
|
|
2988
|
-
* @return {?proto.
|
|
3035
|
+
* optional ChannelPayload channel = 1;
|
|
3036
|
+
* @return {?proto.wechaty.puppet.ChannelPayload}
|
|
2989
3037
|
*/
|
|
2990
|
-
proto.wechaty.puppet.
|
|
2991
|
-
return /** @type{?proto.
|
|
2992
|
-
jspb.Message.getWrapperField(this,
|
|
3038
|
+
proto.wechaty.puppet.MessageChannelResponse.prototype.getChannel = function() {
|
|
3039
|
+
return /** @type{?proto.wechaty.puppet.ChannelPayload} */ (
|
|
3040
|
+
jspb.Message.getWrapperField(this, wechaty_puppet_channel_pb.ChannelPayload, 1));
|
|
2993
3041
|
};
|
|
2994
3042
|
|
|
2995
3043
|
|
|
2996
3044
|
/**
|
|
2997
|
-
* @param {?proto.
|
|
2998
|
-
* @return {!proto.wechaty.puppet.
|
|
3045
|
+
* @param {?proto.wechaty.puppet.ChannelPayload|undefined} value
|
|
3046
|
+
* @return {!proto.wechaty.puppet.MessageChannelResponse} returns this
|
|
2999
3047
|
*/
|
|
3000
|
-
proto.wechaty.puppet.
|
|
3048
|
+
proto.wechaty.puppet.MessageChannelResponse.prototype.setChannel = function(value) {
|
|
3001
3049
|
return jspb.Message.setWrapperField(this, 1, value);
|
|
3002
3050
|
};
|
|
3003
3051
|
|
|
3004
3052
|
|
|
3005
3053
|
/**
|
|
3006
3054
|
* Clears the message field making it undefined.
|
|
3007
|
-
* @return {!proto.wechaty.puppet.
|
|
3055
|
+
* @return {!proto.wechaty.puppet.MessageChannelResponse} returns this
|
|
3008
3056
|
*/
|
|
3009
|
-
proto.wechaty.puppet.
|
|
3010
|
-
return this.
|
|
3057
|
+
proto.wechaty.puppet.MessageChannelResponse.prototype.clearChannel = function() {
|
|
3058
|
+
return this.setChannel(undefined);
|
|
3011
3059
|
};
|
|
3012
3060
|
|
|
3013
3061
|
|
|
@@ -3015,29 +3063,11 @@ proto.wechaty.puppet.MessageSendContactResponse.prototype.clearIdStringValueDepr
|
|
|
3015
3063
|
* Returns whether this field is set.
|
|
3016
3064
|
* @return {boolean}
|
|
3017
3065
|
*/
|
|
3018
|
-
proto.wechaty.puppet.
|
|
3066
|
+
proto.wechaty.puppet.MessageChannelResponse.prototype.hasChannel = function() {
|
|
3019
3067
|
return jspb.Message.getField(this, 1) != null;
|
|
3020
3068
|
};
|
|
3021
3069
|
|
|
3022
3070
|
|
|
3023
|
-
/**
|
|
3024
|
-
* optional string id = 2;
|
|
3025
|
-
* @return {string}
|
|
3026
|
-
*/
|
|
3027
|
-
proto.wechaty.puppet.MessageSendContactResponse.prototype.getId = function() {
|
|
3028
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
3029
|
-
};
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
/**
|
|
3033
|
-
* @param {string} value
|
|
3034
|
-
* @return {!proto.wechaty.puppet.MessageSendContactResponse} returns this
|
|
3035
|
-
*/
|
|
3036
|
-
proto.wechaty.puppet.MessageSendContactResponse.prototype.setId = function(value) {
|
|
3037
|
-
return jspb.Message.setProto3StringField(this, 2, value);
|
|
3038
|
-
};
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
3071
|
|
|
3042
3072
|
|
|
3043
3073
|
|
|
@@ -3054,8 +3084,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
3054
3084
|
* http://goto/soy-param-migration
|
|
3055
3085
|
* @return {!Object}
|
|
3056
3086
|
*/
|
|
3057
|
-
proto.wechaty.puppet.
|
|
3058
|
-
return proto.wechaty.puppet.
|
|
3087
|
+
proto.wechaty.puppet.MessageSendContactRequest.prototype.toObject = function(opt_includeInstance) {
|
|
3088
|
+
return proto.wechaty.puppet.MessageSendContactRequest.toObject(opt_includeInstance, this);
|
|
3059
3089
|
};
|
|
3060
3090
|
|
|
3061
3091
|
|
|
@@ -3064,14 +3094,14 @@ proto.wechaty.puppet.MessageSendFileRequest.prototype.toObject = function(opt_in
|
|
|
3064
3094
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3065
3095
|
* the JSPB instance for transitional soy proto support:
|
|
3066
3096
|
* http://goto/soy-param-migration
|
|
3067
|
-
* @param {!proto.wechaty.puppet.
|
|
3097
|
+
* @param {!proto.wechaty.puppet.MessageSendContactRequest} msg The msg instance to transform.
|
|
3068
3098
|
* @return {!Object}
|
|
3069
3099
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3070
3100
|
*/
|
|
3071
|
-
proto.wechaty.puppet.
|
|
3101
|
+
proto.wechaty.puppet.MessageSendContactRequest.toObject = function(includeInstance, msg) {
|
|
3072
3102
|
var f, obj = {
|
|
3073
3103
|
conversationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
3074
|
-
|
|
3104
|
+
contactId: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
3075
3105
|
};
|
|
3076
3106
|
|
|
3077
3107
|
if (includeInstance) {
|
|
@@ -3085,23 +3115,23 @@ proto.wechaty.puppet.MessageSendFileRequest.toObject = function(includeInstance,
|
|
|
3085
3115
|
/**
|
|
3086
3116
|
* Deserializes binary data (in protobuf wire format).
|
|
3087
3117
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3088
|
-
* @return {!proto.wechaty.puppet.
|
|
3118
|
+
* @return {!proto.wechaty.puppet.MessageSendContactRequest}
|
|
3089
3119
|
*/
|
|
3090
|
-
proto.wechaty.puppet.
|
|
3120
|
+
proto.wechaty.puppet.MessageSendContactRequest.deserializeBinary = function(bytes) {
|
|
3091
3121
|
var reader = new jspb.BinaryReader(bytes);
|
|
3092
|
-
var msg = new proto.wechaty.puppet.
|
|
3093
|
-
return proto.wechaty.puppet.
|
|
3122
|
+
var msg = new proto.wechaty.puppet.MessageSendContactRequest;
|
|
3123
|
+
return proto.wechaty.puppet.MessageSendContactRequest.deserializeBinaryFromReader(msg, reader);
|
|
3094
3124
|
};
|
|
3095
3125
|
|
|
3096
3126
|
|
|
3097
3127
|
/**
|
|
3098
3128
|
* Deserializes binary data (in protobuf wire format) from the
|
|
3099
3129
|
* given reader into the given message object.
|
|
3100
|
-
* @param {!proto.wechaty.puppet.
|
|
3130
|
+
* @param {!proto.wechaty.puppet.MessageSendContactRequest} msg The message object to deserialize into.
|
|
3101
3131
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3102
|
-
* @return {!proto.wechaty.puppet.
|
|
3132
|
+
* @return {!proto.wechaty.puppet.MessageSendContactRequest}
|
|
3103
3133
|
*/
|
|
3104
|
-
proto.wechaty.puppet.
|
|
3134
|
+
proto.wechaty.puppet.MessageSendContactRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
3105
3135
|
while (reader.nextField()) {
|
|
3106
3136
|
if (reader.isEndGroup()) {
|
|
3107
3137
|
break;
|
|
@@ -3114,7 +3144,7 @@ proto.wechaty.puppet.MessageSendFileRequest.deserializeBinaryFromReader = functi
|
|
|
3114
3144
|
break;
|
|
3115
3145
|
case 2:
|
|
3116
3146
|
var value = /** @type {string} */ (reader.readString());
|
|
3117
|
-
msg.
|
|
3147
|
+
msg.setContactId(value);
|
|
3118
3148
|
break;
|
|
3119
3149
|
default:
|
|
3120
3150
|
reader.skipField();
|
|
@@ -3129,9 +3159,9 @@ proto.wechaty.puppet.MessageSendFileRequest.deserializeBinaryFromReader = functi
|
|
|
3129
3159
|
* Serializes the message to binary data (in protobuf wire format).
|
|
3130
3160
|
* @return {!Uint8Array}
|
|
3131
3161
|
*/
|
|
3132
|
-
proto.wechaty.puppet.
|
|
3162
|
+
proto.wechaty.puppet.MessageSendContactRequest.prototype.serializeBinary = function() {
|
|
3133
3163
|
var writer = new jspb.BinaryWriter();
|
|
3134
|
-
proto.wechaty.puppet.
|
|
3164
|
+
proto.wechaty.puppet.MessageSendContactRequest.serializeBinaryToWriter(this, writer);
|
|
3135
3165
|
return writer.getResultBuffer();
|
|
3136
3166
|
};
|
|
3137
3167
|
|
|
@@ -3139,11 +3169,11 @@ proto.wechaty.puppet.MessageSendFileRequest.prototype.serializeBinary = function
|
|
|
3139
3169
|
/**
|
|
3140
3170
|
* Serializes the given message to binary data (in protobuf wire
|
|
3141
3171
|
* format), writing to the given BinaryWriter.
|
|
3142
|
-
* @param {!proto.wechaty.puppet.
|
|
3172
|
+
* @param {!proto.wechaty.puppet.MessageSendContactRequest} message
|
|
3143
3173
|
* @param {!jspb.BinaryWriter} writer
|
|
3144
3174
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3145
3175
|
*/
|
|
3146
|
-
proto.wechaty.puppet.
|
|
3176
|
+
proto.wechaty.puppet.MessageSendContactRequest.serializeBinaryToWriter = function(message, writer) {
|
|
3147
3177
|
var f = undefined;
|
|
3148
3178
|
f = message.getConversationId();
|
|
3149
3179
|
if (f.length > 0) {
|
|
@@ -3152,7 +3182,7 @@ proto.wechaty.puppet.MessageSendFileRequest.serializeBinaryToWriter = function(m
|
|
|
3152
3182
|
f
|
|
3153
3183
|
);
|
|
3154
3184
|
}
|
|
3155
|
-
f = message.
|
|
3185
|
+
f = message.getContactId();
|
|
3156
3186
|
if (f.length > 0) {
|
|
3157
3187
|
writer.writeString(
|
|
3158
3188
|
2,
|
|
@@ -3166,34 +3196,34 @@ proto.wechaty.puppet.MessageSendFileRequest.serializeBinaryToWriter = function(m
|
|
|
3166
3196
|
* optional string conversation_id = 1;
|
|
3167
3197
|
* @return {string}
|
|
3168
3198
|
*/
|
|
3169
|
-
proto.wechaty.puppet.
|
|
3199
|
+
proto.wechaty.puppet.MessageSendContactRequest.prototype.getConversationId = function() {
|
|
3170
3200
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
3171
3201
|
};
|
|
3172
3202
|
|
|
3173
3203
|
|
|
3174
3204
|
/**
|
|
3175
3205
|
* @param {string} value
|
|
3176
|
-
* @return {!proto.wechaty.puppet.
|
|
3206
|
+
* @return {!proto.wechaty.puppet.MessageSendContactRequest} returns this
|
|
3177
3207
|
*/
|
|
3178
|
-
proto.wechaty.puppet.
|
|
3208
|
+
proto.wechaty.puppet.MessageSendContactRequest.prototype.setConversationId = function(value) {
|
|
3179
3209
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
3180
3210
|
};
|
|
3181
3211
|
|
|
3182
3212
|
|
|
3183
3213
|
/**
|
|
3184
|
-
* optional string
|
|
3214
|
+
* optional string contact_id = 2;
|
|
3185
3215
|
* @return {string}
|
|
3186
3216
|
*/
|
|
3187
|
-
proto.wechaty.puppet.
|
|
3217
|
+
proto.wechaty.puppet.MessageSendContactRequest.prototype.getContactId = function() {
|
|
3188
3218
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
3189
3219
|
};
|
|
3190
3220
|
|
|
3191
3221
|
|
|
3192
3222
|
/**
|
|
3193
3223
|
* @param {string} value
|
|
3194
|
-
* @return {!proto.wechaty.puppet.
|
|
3224
|
+
* @return {!proto.wechaty.puppet.MessageSendContactRequest} returns this
|
|
3195
3225
|
*/
|
|
3196
|
-
proto.wechaty.puppet.
|
|
3226
|
+
proto.wechaty.puppet.MessageSendContactRequest.prototype.setContactId = function(value) {
|
|
3197
3227
|
return jspb.Message.setProto3StringField(this, 2, value);
|
|
3198
3228
|
};
|
|
3199
3229
|
|
|
@@ -3214,8 +3244,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
3214
3244
|
* http://goto/soy-param-migration
|
|
3215
3245
|
* @return {!Object}
|
|
3216
3246
|
*/
|
|
3217
|
-
proto.wechaty.puppet.
|
|
3218
|
-
return proto.wechaty.puppet.
|
|
3247
|
+
proto.wechaty.puppet.MessageSendContactResponse.prototype.toObject = function(opt_includeInstance) {
|
|
3248
|
+
return proto.wechaty.puppet.MessageSendContactResponse.toObject(opt_includeInstance, this);
|
|
3219
3249
|
};
|
|
3220
3250
|
|
|
3221
3251
|
|
|
@@ -3224,11 +3254,11 @@ proto.wechaty.puppet.MessageSendFileResponse.prototype.toObject = function(opt_i
|
|
|
3224
3254
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3225
3255
|
* the JSPB instance for transitional soy proto support:
|
|
3226
3256
|
* http://goto/soy-param-migration
|
|
3227
|
-
* @param {!proto.wechaty.puppet.
|
|
3257
|
+
* @param {!proto.wechaty.puppet.MessageSendContactResponse} msg The msg instance to transform.
|
|
3228
3258
|
* @return {!Object}
|
|
3229
3259
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3230
3260
|
*/
|
|
3231
|
-
proto.wechaty.puppet.
|
|
3261
|
+
proto.wechaty.puppet.MessageSendContactResponse.toObject = function(includeInstance, msg) {
|
|
3232
3262
|
var f, obj = {
|
|
3233
3263
|
idStringValueDeprecated: (f = msg.getIdStringValueDeprecated()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
|
|
3234
3264
|
id: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
@@ -3245,23 +3275,23 @@ proto.wechaty.puppet.MessageSendFileResponse.toObject = function(includeInstance
|
|
|
3245
3275
|
/**
|
|
3246
3276
|
* Deserializes binary data (in protobuf wire format).
|
|
3247
3277
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3248
|
-
* @return {!proto.wechaty.puppet.
|
|
3278
|
+
* @return {!proto.wechaty.puppet.MessageSendContactResponse}
|
|
3249
3279
|
*/
|
|
3250
|
-
proto.wechaty.puppet.
|
|
3280
|
+
proto.wechaty.puppet.MessageSendContactResponse.deserializeBinary = function(bytes) {
|
|
3251
3281
|
var reader = new jspb.BinaryReader(bytes);
|
|
3252
|
-
var msg = new proto.wechaty.puppet.
|
|
3253
|
-
return proto.wechaty.puppet.
|
|
3254
|
-
};
|
|
3282
|
+
var msg = new proto.wechaty.puppet.MessageSendContactResponse;
|
|
3283
|
+
return proto.wechaty.puppet.MessageSendContactResponse.deserializeBinaryFromReader(msg, reader);
|
|
3284
|
+
};
|
|
3255
3285
|
|
|
3256
3286
|
|
|
3257
3287
|
/**
|
|
3258
3288
|
* Deserializes binary data (in protobuf wire format) from the
|
|
3259
3289
|
* given reader into the given message object.
|
|
3260
|
-
* @param {!proto.wechaty.puppet.
|
|
3290
|
+
* @param {!proto.wechaty.puppet.MessageSendContactResponse} msg The message object to deserialize into.
|
|
3261
3291
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3262
|
-
* @return {!proto.wechaty.puppet.
|
|
3292
|
+
* @return {!proto.wechaty.puppet.MessageSendContactResponse}
|
|
3263
3293
|
*/
|
|
3264
|
-
proto.wechaty.puppet.
|
|
3294
|
+
proto.wechaty.puppet.MessageSendContactResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
3265
3295
|
while (reader.nextField()) {
|
|
3266
3296
|
if (reader.isEndGroup()) {
|
|
3267
3297
|
break;
|
|
@@ -3290,9 +3320,9 @@ proto.wechaty.puppet.MessageSendFileResponse.deserializeBinaryFromReader = funct
|
|
|
3290
3320
|
* Serializes the message to binary data (in protobuf wire format).
|
|
3291
3321
|
* @return {!Uint8Array}
|
|
3292
3322
|
*/
|
|
3293
|
-
proto.wechaty.puppet.
|
|
3323
|
+
proto.wechaty.puppet.MessageSendContactResponse.prototype.serializeBinary = function() {
|
|
3294
3324
|
var writer = new jspb.BinaryWriter();
|
|
3295
|
-
proto.wechaty.puppet.
|
|
3325
|
+
proto.wechaty.puppet.MessageSendContactResponse.serializeBinaryToWriter(this, writer);
|
|
3296
3326
|
return writer.getResultBuffer();
|
|
3297
3327
|
};
|
|
3298
3328
|
|
|
@@ -3300,11 +3330,11 @@ proto.wechaty.puppet.MessageSendFileResponse.prototype.serializeBinary = functio
|
|
|
3300
3330
|
/**
|
|
3301
3331
|
* Serializes the given message to binary data (in protobuf wire
|
|
3302
3332
|
* format), writing to the given BinaryWriter.
|
|
3303
|
-
* @param {!proto.wechaty.puppet.
|
|
3333
|
+
* @param {!proto.wechaty.puppet.MessageSendContactResponse} message
|
|
3304
3334
|
* @param {!jspb.BinaryWriter} writer
|
|
3305
3335
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3306
3336
|
*/
|
|
3307
|
-
proto.wechaty.puppet.
|
|
3337
|
+
proto.wechaty.puppet.MessageSendContactResponse.serializeBinaryToWriter = function(message, writer) {
|
|
3308
3338
|
var f = undefined;
|
|
3309
3339
|
f = message.getIdStringValueDeprecated();
|
|
3310
3340
|
if (f != null) {
|
|
@@ -3328,7 +3358,7 @@ proto.wechaty.puppet.MessageSendFileResponse.serializeBinaryToWriter = function(
|
|
|
3328
3358
|
* optional google.protobuf.StringValue id_string_value_deprecated = 1;
|
|
3329
3359
|
* @return {?proto.google.protobuf.StringValue}
|
|
3330
3360
|
*/
|
|
3331
|
-
proto.wechaty.puppet.
|
|
3361
|
+
proto.wechaty.puppet.MessageSendContactResponse.prototype.getIdStringValueDeprecated = function() {
|
|
3332
3362
|
return /** @type{?proto.google.protobuf.StringValue} */ (
|
|
3333
3363
|
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 1));
|
|
3334
3364
|
};
|
|
@@ -3336,18 +3366,18 @@ proto.wechaty.puppet.MessageSendFileResponse.prototype.getIdStringValueDeprecate
|
|
|
3336
3366
|
|
|
3337
3367
|
/**
|
|
3338
3368
|
* @param {?proto.google.protobuf.StringValue|undefined} value
|
|
3339
|
-
* @return {!proto.wechaty.puppet.
|
|
3369
|
+
* @return {!proto.wechaty.puppet.MessageSendContactResponse} returns this
|
|
3340
3370
|
*/
|
|
3341
|
-
proto.wechaty.puppet.
|
|
3371
|
+
proto.wechaty.puppet.MessageSendContactResponse.prototype.setIdStringValueDeprecated = function(value) {
|
|
3342
3372
|
return jspb.Message.setWrapperField(this, 1, value);
|
|
3343
3373
|
};
|
|
3344
3374
|
|
|
3345
3375
|
|
|
3346
3376
|
/**
|
|
3347
3377
|
* Clears the message field making it undefined.
|
|
3348
|
-
* @return {!proto.wechaty.puppet.
|
|
3378
|
+
* @return {!proto.wechaty.puppet.MessageSendContactResponse} returns this
|
|
3349
3379
|
*/
|
|
3350
|
-
proto.wechaty.puppet.
|
|
3380
|
+
proto.wechaty.puppet.MessageSendContactResponse.prototype.clearIdStringValueDeprecated = function() {
|
|
3351
3381
|
return this.setIdStringValueDeprecated(undefined);
|
|
3352
3382
|
};
|
|
3353
3383
|
|
|
@@ -3356,7 +3386,7 @@ proto.wechaty.puppet.MessageSendFileResponse.prototype.clearIdStringValueDepreca
|
|
|
3356
3386
|
* Returns whether this field is set.
|
|
3357
3387
|
* @return {boolean}
|
|
3358
3388
|
*/
|
|
3359
|
-
proto.wechaty.puppet.
|
|
3389
|
+
proto.wechaty.puppet.MessageSendContactResponse.prototype.hasIdStringValueDeprecated = function() {
|
|
3360
3390
|
return jspb.Message.getField(this, 1) != null;
|
|
3361
3391
|
};
|
|
3362
3392
|
|
|
@@ -3365,28 +3395,21 @@ proto.wechaty.puppet.MessageSendFileResponse.prototype.hasIdStringValueDeprecate
|
|
|
3365
3395
|
* optional string id = 2;
|
|
3366
3396
|
* @return {string}
|
|
3367
3397
|
*/
|
|
3368
|
-
proto.wechaty.puppet.
|
|
3398
|
+
proto.wechaty.puppet.MessageSendContactResponse.prototype.getId = function() {
|
|
3369
3399
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
3370
3400
|
};
|
|
3371
3401
|
|
|
3372
3402
|
|
|
3373
3403
|
/**
|
|
3374
3404
|
* @param {string} value
|
|
3375
|
-
* @return {!proto.wechaty.puppet.
|
|
3405
|
+
* @return {!proto.wechaty.puppet.MessageSendContactResponse} returns this
|
|
3376
3406
|
*/
|
|
3377
|
-
proto.wechaty.puppet.
|
|
3407
|
+
proto.wechaty.puppet.MessageSendContactResponse.prototype.setId = function(value) {
|
|
3378
3408
|
return jspb.Message.setProto3StringField(this, 2, value);
|
|
3379
3409
|
};
|
|
3380
3410
|
|
|
3381
3411
|
|
|
3382
3412
|
|
|
3383
|
-
/**
|
|
3384
|
-
* List of repeated fields within this message type.
|
|
3385
|
-
* @private {!Array<number>}
|
|
3386
|
-
* @const
|
|
3387
|
-
*/
|
|
3388
|
-
proto.wechaty.puppet.MessageSendTextRequest.repeatedFields_ = [3];
|
|
3389
|
-
|
|
3390
3413
|
|
|
3391
3414
|
|
|
3392
3415
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -3402,8 +3425,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
3402
3425
|
* http://goto/soy-param-migration
|
|
3403
3426
|
* @return {!Object}
|
|
3404
3427
|
*/
|
|
3405
|
-
proto.wechaty.puppet.
|
|
3406
|
-
return proto.wechaty.puppet.
|
|
3428
|
+
proto.wechaty.puppet.MessageSendFileRequest.prototype.toObject = function(opt_includeInstance) {
|
|
3429
|
+
return proto.wechaty.puppet.MessageSendFileRequest.toObject(opt_includeInstance, this);
|
|
3407
3430
|
};
|
|
3408
3431
|
|
|
3409
3432
|
|
|
@@ -3412,15 +3435,14 @@ proto.wechaty.puppet.MessageSendTextRequest.prototype.toObject = function(opt_in
|
|
|
3412
3435
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3413
3436
|
* the JSPB instance for transitional soy proto support:
|
|
3414
3437
|
* http://goto/soy-param-migration
|
|
3415
|
-
* @param {!proto.wechaty.puppet.
|
|
3438
|
+
* @param {!proto.wechaty.puppet.MessageSendFileRequest} msg The msg instance to transform.
|
|
3416
3439
|
* @return {!Object}
|
|
3417
3440
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3418
3441
|
*/
|
|
3419
|
-
proto.wechaty.puppet.
|
|
3442
|
+
proto.wechaty.puppet.MessageSendFileRequest.toObject = function(includeInstance, msg) {
|
|
3420
3443
|
var f, obj = {
|
|
3421
3444
|
conversationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
3422
|
-
|
|
3423
|
-
mentionalIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
|
|
3445
|
+
fileBox: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
3424
3446
|
};
|
|
3425
3447
|
|
|
3426
3448
|
if (includeInstance) {
|
|
@@ -3434,23 +3456,23 @@ proto.wechaty.puppet.MessageSendTextRequest.toObject = function(includeInstance,
|
|
|
3434
3456
|
/**
|
|
3435
3457
|
* Deserializes binary data (in protobuf wire format).
|
|
3436
3458
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3437
|
-
* @return {!proto.wechaty.puppet.
|
|
3459
|
+
* @return {!proto.wechaty.puppet.MessageSendFileRequest}
|
|
3438
3460
|
*/
|
|
3439
|
-
proto.wechaty.puppet.
|
|
3461
|
+
proto.wechaty.puppet.MessageSendFileRequest.deserializeBinary = function(bytes) {
|
|
3440
3462
|
var reader = new jspb.BinaryReader(bytes);
|
|
3441
|
-
var msg = new proto.wechaty.puppet.
|
|
3442
|
-
return proto.wechaty.puppet.
|
|
3463
|
+
var msg = new proto.wechaty.puppet.MessageSendFileRequest;
|
|
3464
|
+
return proto.wechaty.puppet.MessageSendFileRequest.deserializeBinaryFromReader(msg, reader);
|
|
3443
3465
|
};
|
|
3444
3466
|
|
|
3445
3467
|
|
|
3446
3468
|
/**
|
|
3447
3469
|
* Deserializes binary data (in protobuf wire format) from the
|
|
3448
3470
|
* given reader into the given message object.
|
|
3449
|
-
* @param {!proto.wechaty.puppet.
|
|
3471
|
+
* @param {!proto.wechaty.puppet.MessageSendFileRequest} msg The message object to deserialize into.
|
|
3450
3472
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3451
|
-
* @return {!proto.wechaty.puppet.
|
|
3473
|
+
* @return {!proto.wechaty.puppet.MessageSendFileRequest}
|
|
3452
3474
|
*/
|
|
3453
|
-
proto.wechaty.puppet.
|
|
3475
|
+
proto.wechaty.puppet.MessageSendFileRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
3454
3476
|
while (reader.nextField()) {
|
|
3455
3477
|
if (reader.isEndGroup()) {
|
|
3456
3478
|
break;
|
|
@@ -3463,11 +3485,7 @@ proto.wechaty.puppet.MessageSendTextRequest.deserializeBinaryFromReader = functi
|
|
|
3463
3485
|
break;
|
|
3464
3486
|
case 2:
|
|
3465
3487
|
var value = /** @type {string} */ (reader.readString());
|
|
3466
|
-
msg.
|
|
3467
|
-
break;
|
|
3468
|
-
case 3:
|
|
3469
|
-
var value = /** @type {string} */ (reader.readString());
|
|
3470
|
-
msg.addMentionalIds(value);
|
|
3488
|
+
msg.setFileBox(value);
|
|
3471
3489
|
break;
|
|
3472
3490
|
default:
|
|
3473
3491
|
reader.skipField();
|
|
@@ -3482,9 +3500,9 @@ proto.wechaty.puppet.MessageSendTextRequest.deserializeBinaryFromReader = functi
|
|
|
3482
3500
|
* Serializes the message to binary data (in protobuf wire format).
|
|
3483
3501
|
* @return {!Uint8Array}
|
|
3484
3502
|
*/
|
|
3485
|
-
proto.wechaty.puppet.
|
|
3503
|
+
proto.wechaty.puppet.MessageSendFileRequest.prototype.serializeBinary = function() {
|
|
3486
3504
|
var writer = new jspb.BinaryWriter();
|
|
3487
|
-
proto.wechaty.puppet.
|
|
3505
|
+
proto.wechaty.puppet.MessageSendFileRequest.serializeBinaryToWriter(this, writer);
|
|
3488
3506
|
return writer.getResultBuffer();
|
|
3489
3507
|
};
|
|
3490
3508
|
|
|
@@ -3492,11 +3510,11 @@ proto.wechaty.puppet.MessageSendTextRequest.prototype.serializeBinary = function
|
|
|
3492
3510
|
/**
|
|
3493
3511
|
* Serializes the given message to binary data (in protobuf wire
|
|
3494
3512
|
* format), writing to the given BinaryWriter.
|
|
3495
|
-
* @param {!proto.wechaty.puppet.
|
|
3513
|
+
* @param {!proto.wechaty.puppet.MessageSendFileRequest} message
|
|
3496
3514
|
* @param {!jspb.BinaryWriter} writer
|
|
3497
3515
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3498
3516
|
*/
|
|
3499
|
-
proto.wechaty.puppet.
|
|
3517
|
+
proto.wechaty.puppet.MessageSendFileRequest.serializeBinaryToWriter = function(message, writer) {
|
|
3500
3518
|
var f = undefined;
|
|
3501
3519
|
f = message.getConversationId();
|
|
3502
3520
|
if (f.length > 0) {
|
|
@@ -3505,20 +3523,13 @@ proto.wechaty.puppet.MessageSendTextRequest.serializeBinaryToWriter = function(m
|
|
|
3505
3523
|
f
|
|
3506
3524
|
);
|
|
3507
3525
|
}
|
|
3508
|
-
f = message.
|
|
3526
|
+
f = message.getFileBox();
|
|
3509
3527
|
if (f.length > 0) {
|
|
3510
3528
|
writer.writeString(
|
|
3511
3529
|
2,
|
|
3512
3530
|
f
|
|
3513
3531
|
);
|
|
3514
3532
|
}
|
|
3515
|
-
f = message.getMentionalIdsList();
|
|
3516
|
-
if (f.length > 0) {
|
|
3517
|
-
writer.writeRepeatedString(
|
|
3518
|
-
3,
|
|
3519
|
-
f
|
|
3520
|
-
);
|
|
3521
|
-
}
|
|
3522
3533
|
};
|
|
3523
3534
|
|
|
3524
3535
|
|
|
@@ -3526,75 +3537,38 @@ proto.wechaty.puppet.MessageSendTextRequest.serializeBinaryToWriter = function(m
|
|
|
3526
3537
|
* optional string conversation_id = 1;
|
|
3527
3538
|
* @return {string}
|
|
3528
3539
|
*/
|
|
3529
|
-
proto.wechaty.puppet.
|
|
3540
|
+
proto.wechaty.puppet.MessageSendFileRequest.prototype.getConversationId = function() {
|
|
3530
3541
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
3531
3542
|
};
|
|
3532
3543
|
|
|
3533
3544
|
|
|
3534
3545
|
/**
|
|
3535
3546
|
* @param {string} value
|
|
3536
|
-
* @return {!proto.wechaty.puppet.
|
|
3547
|
+
* @return {!proto.wechaty.puppet.MessageSendFileRequest} returns this
|
|
3537
3548
|
*/
|
|
3538
|
-
proto.wechaty.puppet.
|
|
3549
|
+
proto.wechaty.puppet.MessageSendFileRequest.prototype.setConversationId = function(value) {
|
|
3539
3550
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
3540
3551
|
};
|
|
3541
3552
|
|
|
3542
3553
|
|
|
3543
3554
|
/**
|
|
3544
|
-
* optional string
|
|
3555
|
+
* optional string file_box = 2;
|
|
3545
3556
|
* @return {string}
|
|
3546
3557
|
*/
|
|
3547
|
-
proto.wechaty.puppet.
|
|
3558
|
+
proto.wechaty.puppet.MessageSendFileRequest.prototype.getFileBox = function() {
|
|
3548
3559
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
3549
3560
|
};
|
|
3550
3561
|
|
|
3551
3562
|
|
|
3552
3563
|
/**
|
|
3553
3564
|
* @param {string} value
|
|
3554
|
-
* @return {!proto.wechaty.puppet.
|
|
3565
|
+
* @return {!proto.wechaty.puppet.MessageSendFileRequest} returns this
|
|
3555
3566
|
*/
|
|
3556
|
-
proto.wechaty.puppet.
|
|
3567
|
+
proto.wechaty.puppet.MessageSendFileRequest.prototype.setFileBox = function(value) {
|
|
3557
3568
|
return jspb.Message.setProto3StringField(this, 2, value);
|
|
3558
3569
|
};
|
|
3559
3570
|
|
|
3560
3571
|
|
|
3561
|
-
/**
|
|
3562
|
-
* repeated string mentional_ids = 3;
|
|
3563
|
-
* @return {!Array<string>}
|
|
3564
|
-
*/
|
|
3565
|
-
proto.wechaty.puppet.MessageSendTextRequest.prototype.getMentionalIdsList = function() {
|
|
3566
|
-
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
|
|
3567
|
-
};
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
/**
|
|
3571
|
-
* @param {!Array<string>} value
|
|
3572
|
-
* @return {!proto.wechaty.puppet.MessageSendTextRequest} returns this
|
|
3573
|
-
*/
|
|
3574
|
-
proto.wechaty.puppet.MessageSendTextRequest.prototype.setMentionalIdsList = function(value) {
|
|
3575
|
-
return jspb.Message.setField(this, 3, value || []);
|
|
3576
|
-
};
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
/**
|
|
3580
|
-
* @param {string} value
|
|
3581
|
-
* @param {number=} opt_index
|
|
3582
|
-
* @return {!proto.wechaty.puppet.MessageSendTextRequest} returns this
|
|
3583
|
-
*/
|
|
3584
|
-
proto.wechaty.puppet.MessageSendTextRequest.prototype.addMentionalIds = function(value, opt_index) {
|
|
3585
|
-
return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
|
|
3586
|
-
};
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
/**
|
|
3590
|
-
* Clears the list making it empty but non-null.
|
|
3591
|
-
* @return {!proto.wechaty.puppet.MessageSendTextRequest} returns this
|
|
3592
|
-
*/
|
|
3593
|
-
proto.wechaty.puppet.MessageSendTextRequest.prototype.clearMentionalIdsList = function() {
|
|
3594
|
-
return this.setMentionalIdsList([]);
|
|
3595
|
-
};
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
3572
|
|
|
3599
3573
|
|
|
3600
3574
|
|
|
@@ -3611,8 +3585,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
3611
3585
|
* http://goto/soy-param-migration
|
|
3612
3586
|
* @return {!Object}
|
|
3613
3587
|
*/
|
|
3614
|
-
proto.wechaty.puppet.
|
|
3615
|
-
return proto.wechaty.puppet.
|
|
3588
|
+
proto.wechaty.puppet.MessageSendFileResponse.prototype.toObject = function(opt_includeInstance) {
|
|
3589
|
+
return proto.wechaty.puppet.MessageSendFileResponse.toObject(opt_includeInstance, this);
|
|
3616
3590
|
};
|
|
3617
3591
|
|
|
3618
3592
|
|
|
@@ -3621,11 +3595,11 @@ proto.wechaty.puppet.MessageSendTextResponse.prototype.toObject = function(opt_i
|
|
|
3621
3595
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3622
3596
|
* the JSPB instance for transitional soy proto support:
|
|
3623
3597
|
* http://goto/soy-param-migration
|
|
3624
|
-
* @param {!proto.wechaty.puppet.
|
|
3598
|
+
* @param {!proto.wechaty.puppet.MessageSendFileResponse} msg The msg instance to transform.
|
|
3625
3599
|
* @return {!Object}
|
|
3626
3600
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3627
3601
|
*/
|
|
3628
|
-
proto.wechaty.puppet.
|
|
3602
|
+
proto.wechaty.puppet.MessageSendFileResponse.toObject = function(includeInstance, msg) {
|
|
3629
3603
|
var f, obj = {
|
|
3630
3604
|
idStringValueDeprecated: (f = msg.getIdStringValueDeprecated()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
|
|
3631
3605
|
id: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
@@ -3642,23 +3616,23 @@ proto.wechaty.puppet.MessageSendTextResponse.toObject = function(includeInstance
|
|
|
3642
3616
|
/**
|
|
3643
3617
|
* Deserializes binary data (in protobuf wire format).
|
|
3644
3618
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3645
|
-
* @return {!proto.wechaty.puppet.
|
|
3619
|
+
* @return {!proto.wechaty.puppet.MessageSendFileResponse}
|
|
3646
3620
|
*/
|
|
3647
|
-
proto.wechaty.puppet.
|
|
3621
|
+
proto.wechaty.puppet.MessageSendFileResponse.deserializeBinary = function(bytes) {
|
|
3648
3622
|
var reader = new jspb.BinaryReader(bytes);
|
|
3649
|
-
var msg = new proto.wechaty.puppet.
|
|
3650
|
-
return proto.wechaty.puppet.
|
|
3623
|
+
var msg = new proto.wechaty.puppet.MessageSendFileResponse;
|
|
3624
|
+
return proto.wechaty.puppet.MessageSendFileResponse.deserializeBinaryFromReader(msg, reader);
|
|
3651
3625
|
};
|
|
3652
3626
|
|
|
3653
3627
|
|
|
3654
3628
|
/**
|
|
3655
3629
|
* Deserializes binary data (in protobuf wire format) from the
|
|
3656
3630
|
* given reader into the given message object.
|
|
3657
|
-
* @param {!proto.wechaty.puppet.
|
|
3631
|
+
* @param {!proto.wechaty.puppet.MessageSendFileResponse} msg The message object to deserialize into.
|
|
3658
3632
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3659
|
-
* @return {!proto.wechaty.puppet.
|
|
3633
|
+
* @return {!proto.wechaty.puppet.MessageSendFileResponse}
|
|
3660
3634
|
*/
|
|
3661
|
-
proto.wechaty.puppet.
|
|
3635
|
+
proto.wechaty.puppet.MessageSendFileResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
3662
3636
|
while (reader.nextField()) {
|
|
3663
3637
|
if (reader.isEndGroup()) {
|
|
3664
3638
|
break;
|
|
@@ -3687,9 +3661,9 @@ proto.wechaty.puppet.MessageSendTextResponse.deserializeBinaryFromReader = funct
|
|
|
3687
3661
|
* Serializes the message to binary data (in protobuf wire format).
|
|
3688
3662
|
* @return {!Uint8Array}
|
|
3689
3663
|
*/
|
|
3690
|
-
proto.wechaty.puppet.
|
|
3664
|
+
proto.wechaty.puppet.MessageSendFileResponse.prototype.serializeBinary = function() {
|
|
3691
3665
|
var writer = new jspb.BinaryWriter();
|
|
3692
|
-
proto.wechaty.puppet.
|
|
3666
|
+
proto.wechaty.puppet.MessageSendFileResponse.serializeBinaryToWriter(this, writer);
|
|
3693
3667
|
return writer.getResultBuffer();
|
|
3694
3668
|
};
|
|
3695
3669
|
|
|
@@ -3697,11 +3671,11 @@ proto.wechaty.puppet.MessageSendTextResponse.prototype.serializeBinary = functio
|
|
|
3697
3671
|
/**
|
|
3698
3672
|
* Serializes the given message to binary data (in protobuf wire
|
|
3699
3673
|
* format), writing to the given BinaryWriter.
|
|
3700
|
-
* @param {!proto.wechaty.puppet.
|
|
3674
|
+
* @param {!proto.wechaty.puppet.MessageSendFileResponse} message
|
|
3701
3675
|
* @param {!jspb.BinaryWriter} writer
|
|
3702
3676
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3703
3677
|
*/
|
|
3704
|
-
proto.wechaty.puppet.
|
|
3678
|
+
proto.wechaty.puppet.MessageSendFileResponse.serializeBinaryToWriter = function(message, writer) {
|
|
3705
3679
|
var f = undefined;
|
|
3706
3680
|
f = message.getIdStringValueDeprecated();
|
|
3707
3681
|
if (f != null) {
|
|
@@ -3725,7 +3699,7 @@ proto.wechaty.puppet.MessageSendTextResponse.serializeBinaryToWriter = function(
|
|
|
3725
3699
|
* optional google.protobuf.StringValue id_string_value_deprecated = 1;
|
|
3726
3700
|
* @return {?proto.google.protobuf.StringValue}
|
|
3727
3701
|
*/
|
|
3728
|
-
proto.wechaty.puppet.
|
|
3702
|
+
proto.wechaty.puppet.MessageSendFileResponse.prototype.getIdStringValueDeprecated = function() {
|
|
3729
3703
|
return /** @type{?proto.google.protobuf.StringValue} */ (
|
|
3730
3704
|
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 1));
|
|
3731
3705
|
};
|
|
@@ -3733,18 +3707,18 @@ proto.wechaty.puppet.MessageSendTextResponse.prototype.getIdStringValueDeprecate
|
|
|
3733
3707
|
|
|
3734
3708
|
/**
|
|
3735
3709
|
* @param {?proto.google.protobuf.StringValue|undefined} value
|
|
3736
|
-
* @return {!proto.wechaty.puppet.
|
|
3710
|
+
* @return {!proto.wechaty.puppet.MessageSendFileResponse} returns this
|
|
3737
3711
|
*/
|
|
3738
|
-
proto.wechaty.puppet.
|
|
3712
|
+
proto.wechaty.puppet.MessageSendFileResponse.prototype.setIdStringValueDeprecated = function(value) {
|
|
3739
3713
|
return jspb.Message.setWrapperField(this, 1, value);
|
|
3740
3714
|
};
|
|
3741
3715
|
|
|
3742
3716
|
|
|
3743
3717
|
/**
|
|
3744
3718
|
* Clears the message field making it undefined.
|
|
3745
|
-
* @return {!proto.wechaty.puppet.
|
|
3719
|
+
* @return {!proto.wechaty.puppet.MessageSendFileResponse} returns this
|
|
3746
3720
|
*/
|
|
3747
|
-
proto.wechaty.puppet.
|
|
3721
|
+
proto.wechaty.puppet.MessageSendFileResponse.prototype.clearIdStringValueDeprecated = function() {
|
|
3748
3722
|
return this.setIdStringValueDeprecated(undefined);
|
|
3749
3723
|
};
|
|
3750
3724
|
|
|
@@ -3753,7 +3727,7 @@ proto.wechaty.puppet.MessageSendTextResponse.prototype.clearIdStringValueDepreca
|
|
|
3753
3727
|
* Returns whether this field is set.
|
|
3754
3728
|
* @return {boolean}
|
|
3755
3729
|
*/
|
|
3756
|
-
proto.wechaty.puppet.
|
|
3730
|
+
proto.wechaty.puppet.MessageSendFileResponse.prototype.hasIdStringValueDeprecated = function() {
|
|
3757
3731
|
return jspb.Message.getField(this, 1) != null;
|
|
3758
3732
|
};
|
|
3759
3733
|
|
|
@@ -3762,21 +3736,28 @@ proto.wechaty.puppet.MessageSendTextResponse.prototype.hasIdStringValueDeprecate
|
|
|
3762
3736
|
* optional string id = 2;
|
|
3763
3737
|
* @return {string}
|
|
3764
3738
|
*/
|
|
3765
|
-
proto.wechaty.puppet.
|
|
3739
|
+
proto.wechaty.puppet.MessageSendFileResponse.prototype.getId = function() {
|
|
3766
3740
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
3767
3741
|
};
|
|
3768
3742
|
|
|
3769
3743
|
|
|
3770
3744
|
/**
|
|
3771
3745
|
* @param {string} value
|
|
3772
|
-
* @return {!proto.wechaty.puppet.
|
|
3746
|
+
* @return {!proto.wechaty.puppet.MessageSendFileResponse} returns this
|
|
3773
3747
|
*/
|
|
3774
|
-
proto.wechaty.puppet.
|
|
3748
|
+
proto.wechaty.puppet.MessageSendFileResponse.prototype.setId = function(value) {
|
|
3775
3749
|
return jspb.Message.setProto3StringField(this, 2, value);
|
|
3776
3750
|
};
|
|
3777
3751
|
|
|
3778
3752
|
|
|
3779
3753
|
|
|
3754
|
+
/**
|
|
3755
|
+
* List of repeated fields within this message type.
|
|
3756
|
+
* @private {!Array<number>}
|
|
3757
|
+
* @const
|
|
3758
|
+
*/
|
|
3759
|
+
proto.wechaty.puppet.MessageSendTextRequest.repeatedFields_ = [3];
|
|
3760
|
+
|
|
3780
3761
|
|
|
3781
3762
|
|
|
3782
3763
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -3792,8 +3773,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
3792
3773
|
* http://goto/soy-param-migration
|
|
3793
3774
|
* @return {!Object}
|
|
3794
3775
|
*/
|
|
3795
|
-
proto.wechaty.puppet.
|
|
3796
|
-
return proto.wechaty.puppet.
|
|
3776
|
+
proto.wechaty.puppet.MessageSendTextRequest.prototype.toObject = function(opt_includeInstance) {
|
|
3777
|
+
return proto.wechaty.puppet.MessageSendTextRequest.toObject(opt_includeInstance, this);
|
|
3797
3778
|
};
|
|
3798
3779
|
|
|
3799
3780
|
|
|
@@ -3802,15 +3783,15 @@ proto.wechaty.puppet.MessageSendMiniProgramRequest.prototype.toObject = function
|
|
|
3802
3783
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3803
3784
|
* the JSPB instance for transitional soy proto support:
|
|
3804
3785
|
* http://goto/soy-param-migration
|
|
3805
|
-
* @param {!proto.wechaty.puppet.
|
|
3786
|
+
* @param {!proto.wechaty.puppet.MessageSendTextRequest} msg The msg instance to transform.
|
|
3806
3787
|
* @return {!Object}
|
|
3807
3788
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3808
3789
|
*/
|
|
3809
|
-
proto.wechaty.puppet.
|
|
3790
|
+
proto.wechaty.puppet.MessageSendTextRequest.toObject = function(includeInstance, msg) {
|
|
3810
3791
|
var f, obj = {
|
|
3811
3792
|
conversationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
3812
|
-
|
|
3813
|
-
|
|
3793
|
+
text: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
3794
|
+
mentionalIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
|
|
3814
3795
|
};
|
|
3815
3796
|
|
|
3816
3797
|
if (includeInstance) {
|
|
@@ -3824,23 +3805,23 @@ proto.wechaty.puppet.MessageSendMiniProgramRequest.toObject = function(includeIn
|
|
|
3824
3805
|
/**
|
|
3825
3806
|
* Deserializes binary data (in protobuf wire format).
|
|
3826
3807
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3827
|
-
* @return {!proto.wechaty.puppet.
|
|
3808
|
+
* @return {!proto.wechaty.puppet.MessageSendTextRequest}
|
|
3828
3809
|
*/
|
|
3829
|
-
proto.wechaty.puppet.
|
|
3810
|
+
proto.wechaty.puppet.MessageSendTextRequest.deserializeBinary = function(bytes) {
|
|
3830
3811
|
var reader = new jspb.BinaryReader(bytes);
|
|
3831
|
-
var msg = new proto.wechaty.puppet.
|
|
3832
|
-
return proto.wechaty.puppet.
|
|
3812
|
+
var msg = new proto.wechaty.puppet.MessageSendTextRequest;
|
|
3813
|
+
return proto.wechaty.puppet.MessageSendTextRequest.deserializeBinaryFromReader(msg, reader);
|
|
3833
3814
|
};
|
|
3834
3815
|
|
|
3835
3816
|
|
|
3836
3817
|
/**
|
|
3837
3818
|
* Deserializes binary data (in protobuf wire format) from the
|
|
3838
3819
|
* given reader into the given message object.
|
|
3839
|
-
* @param {!proto.wechaty.puppet.
|
|
3820
|
+
* @param {!proto.wechaty.puppet.MessageSendTextRequest} msg The message object to deserialize into.
|
|
3840
3821
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3841
|
-
* @return {!proto.wechaty.puppet.
|
|
3822
|
+
* @return {!proto.wechaty.puppet.MessageSendTextRequest}
|
|
3842
3823
|
*/
|
|
3843
|
-
proto.wechaty.puppet.
|
|
3824
|
+
proto.wechaty.puppet.MessageSendTextRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
3844
3825
|
while (reader.nextField()) {
|
|
3845
3826
|
if (reader.isEndGroup()) {
|
|
3846
3827
|
break;
|
|
@@ -3853,12 +3834,11 @@ proto.wechaty.puppet.MessageSendMiniProgramRequest.deserializeBinaryFromReader =
|
|
|
3853
3834
|
break;
|
|
3854
3835
|
case 2:
|
|
3855
3836
|
var value = /** @type {string} */ (reader.readString());
|
|
3856
|
-
msg.
|
|
3837
|
+
msg.setText(value);
|
|
3857
3838
|
break;
|
|
3858
3839
|
case 3:
|
|
3859
|
-
var value =
|
|
3860
|
-
|
|
3861
|
-
msg.setMiniProgram(value);
|
|
3840
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3841
|
+
msg.addMentionalIds(value);
|
|
3862
3842
|
break;
|
|
3863
3843
|
default:
|
|
3864
3844
|
reader.skipField();
|
|
@@ -3873,9 +3853,9 @@ proto.wechaty.puppet.MessageSendMiniProgramRequest.deserializeBinaryFromReader =
|
|
|
3873
3853
|
* Serializes the message to binary data (in protobuf wire format).
|
|
3874
3854
|
* @return {!Uint8Array}
|
|
3875
3855
|
*/
|
|
3876
|
-
proto.wechaty.puppet.
|
|
3856
|
+
proto.wechaty.puppet.MessageSendTextRequest.prototype.serializeBinary = function() {
|
|
3877
3857
|
var writer = new jspb.BinaryWriter();
|
|
3878
|
-
proto.wechaty.puppet.
|
|
3858
|
+
proto.wechaty.puppet.MessageSendTextRequest.serializeBinaryToWriter(this, writer);
|
|
3879
3859
|
return writer.getResultBuffer();
|
|
3880
3860
|
};
|
|
3881
3861
|
|
|
@@ -3883,11 +3863,11 @@ proto.wechaty.puppet.MessageSendMiniProgramRequest.prototype.serializeBinary = f
|
|
|
3883
3863
|
/**
|
|
3884
3864
|
* Serializes the given message to binary data (in protobuf wire
|
|
3885
3865
|
* format), writing to the given BinaryWriter.
|
|
3886
|
-
* @param {!proto.wechaty.puppet.
|
|
3866
|
+
* @param {!proto.wechaty.puppet.MessageSendTextRequest} message
|
|
3887
3867
|
* @param {!jspb.BinaryWriter} writer
|
|
3888
3868
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3889
3869
|
*/
|
|
3890
|
-
proto.wechaty.puppet.
|
|
3870
|
+
proto.wechaty.puppet.MessageSendTextRequest.serializeBinaryToWriter = function(message, writer) {
|
|
3891
3871
|
var f = undefined;
|
|
3892
3872
|
f = message.getConversationId();
|
|
3893
3873
|
if (f.length > 0) {
|
|
@@ -3896,19 +3876,18 @@ proto.wechaty.puppet.MessageSendMiniProgramRequest.serializeBinaryToWriter = fun
|
|
|
3896
3876
|
f
|
|
3897
3877
|
);
|
|
3898
3878
|
}
|
|
3899
|
-
f = message.
|
|
3879
|
+
f = message.getText();
|
|
3900
3880
|
if (f.length > 0) {
|
|
3901
3881
|
writer.writeString(
|
|
3902
3882
|
2,
|
|
3903
3883
|
f
|
|
3904
3884
|
);
|
|
3905
3885
|
}
|
|
3906
|
-
f = message.
|
|
3907
|
-
if (f
|
|
3908
|
-
writer.
|
|
3886
|
+
f = message.getMentionalIdsList();
|
|
3887
|
+
if (f.length > 0) {
|
|
3888
|
+
writer.writeRepeatedString(
|
|
3909
3889
|
3,
|
|
3910
|
-
f
|
|
3911
|
-
wechaty_puppet_mini$program_pb.MiniProgramPayload.serializeBinaryToWriter
|
|
3890
|
+
f
|
|
3912
3891
|
);
|
|
3913
3892
|
}
|
|
3914
3893
|
};
|
|
@@ -3918,72 +3897,72 @@ proto.wechaty.puppet.MessageSendMiniProgramRequest.serializeBinaryToWriter = fun
|
|
|
3918
3897
|
* optional string conversation_id = 1;
|
|
3919
3898
|
* @return {string}
|
|
3920
3899
|
*/
|
|
3921
|
-
proto.wechaty.puppet.
|
|
3900
|
+
proto.wechaty.puppet.MessageSendTextRequest.prototype.getConversationId = function() {
|
|
3922
3901
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
3923
3902
|
};
|
|
3924
3903
|
|
|
3925
3904
|
|
|
3926
3905
|
/**
|
|
3927
3906
|
* @param {string} value
|
|
3928
|
-
* @return {!proto.wechaty.puppet.
|
|
3907
|
+
* @return {!proto.wechaty.puppet.MessageSendTextRequest} returns this
|
|
3929
3908
|
*/
|
|
3930
|
-
proto.wechaty.puppet.
|
|
3909
|
+
proto.wechaty.puppet.MessageSendTextRequest.prototype.setConversationId = function(value) {
|
|
3931
3910
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
3932
3911
|
};
|
|
3933
3912
|
|
|
3934
3913
|
|
|
3935
3914
|
/**
|
|
3936
|
-
* optional string
|
|
3915
|
+
* optional string text = 2;
|
|
3937
3916
|
* @return {string}
|
|
3938
3917
|
*/
|
|
3939
|
-
proto.wechaty.puppet.
|
|
3918
|
+
proto.wechaty.puppet.MessageSendTextRequest.prototype.getText = function() {
|
|
3940
3919
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
3941
3920
|
};
|
|
3942
3921
|
|
|
3943
3922
|
|
|
3944
3923
|
/**
|
|
3945
3924
|
* @param {string} value
|
|
3946
|
-
* @return {!proto.wechaty.puppet.
|
|
3925
|
+
* @return {!proto.wechaty.puppet.MessageSendTextRequest} returns this
|
|
3947
3926
|
*/
|
|
3948
|
-
proto.wechaty.puppet.
|
|
3927
|
+
proto.wechaty.puppet.MessageSendTextRequest.prototype.setText = function(value) {
|
|
3949
3928
|
return jspb.Message.setProto3StringField(this, 2, value);
|
|
3950
3929
|
};
|
|
3951
3930
|
|
|
3952
3931
|
|
|
3953
3932
|
/**
|
|
3954
|
-
*
|
|
3955
|
-
* @return {
|
|
3933
|
+
* repeated string mentional_ids = 3;
|
|
3934
|
+
* @return {!Array<string>}
|
|
3956
3935
|
*/
|
|
3957
|
-
proto.wechaty.puppet.
|
|
3958
|
-
return /** @type{
|
|
3959
|
-
jspb.Message.getWrapperField(this, wechaty_puppet_mini$program_pb.MiniProgramPayload, 3));
|
|
3936
|
+
proto.wechaty.puppet.MessageSendTextRequest.prototype.getMentionalIdsList = function() {
|
|
3937
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
|
|
3960
3938
|
};
|
|
3961
3939
|
|
|
3962
3940
|
|
|
3963
3941
|
/**
|
|
3964
|
-
* @param {
|
|
3965
|
-
* @return {!proto.wechaty.puppet.
|
|
3966
|
-
*/
|
|
3967
|
-
proto.wechaty.puppet.
|
|
3968
|
-
return jspb.Message.
|
|
3942
|
+
* @param {!Array<string>} value
|
|
3943
|
+
* @return {!proto.wechaty.puppet.MessageSendTextRequest} returns this
|
|
3944
|
+
*/
|
|
3945
|
+
proto.wechaty.puppet.MessageSendTextRequest.prototype.setMentionalIdsList = function(value) {
|
|
3946
|
+
return jspb.Message.setField(this, 3, value || []);
|
|
3969
3947
|
};
|
|
3970
3948
|
|
|
3971
3949
|
|
|
3972
3950
|
/**
|
|
3973
|
-
*
|
|
3974
|
-
* @
|
|
3951
|
+
* @param {string} value
|
|
3952
|
+
* @param {number=} opt_index
|
|
3953
|
+
* @return {!proto.wechaty.puppet.MessageSendTextRequest} returns this
|
|
3975
3954
|
*/
|
|
3976
|
-
proto.wechaty.puppet.
|
|
3977
|
-
return
|
|
3955
|
+
proto.wechaty.puppet.MessageSendTextRequest.prototype.addMentionalIds = function(value, opt_index) {
|
|
3956
|
+
return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
|
|
3978
3957
|
};
|
|
3979
3958
|
|
|
3980
3959
|
|
|
3981
3960
|
/**
|
|
3982
|
-
*
|
|
3983
|
-
* @return {
|
|
3961
|
+
* Clears the list making it empty but non-null.
|
|
3962
|
+
* @return {!proto.wechaty.puppet.MessageSendTextRequest} returns this
|
|
3984
3963
|
*/
|
|
3985
|
-
proto.wechaty.puppet.
|
|
3986
|
-
return
|
|
3964
|
+
proto.wechaty.puppet.MessageSendTextRequest.prototype.clearMentionalIdsList = function() {
|
|
3965
|
+
return this.setMentionalIdsList([]);
|
|
3987
3966
|
};
|
|
3988
3967
|
|
|
3989
3968
|
|
|
@@ -4003,8 +3982,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
4003
3982
|
* http://goto/soy-param-migration
|
|
4004
3983
|
* @return {!Object}
|
|
4005
3984
|
*/
|
|
4006
|
-
proto.wechaty.puppet.
|
|
4007
|
-
return proto.wechaty.puppet.
|
|
3985
|
+
proto.wechaty.puppet.MessageSendTextResponse.prototype.toObject = function(opt_includeInstance) {
|
|
3986
|
+
return proto.wechaty.puppet.MessageSendTextResponse.toObject(opt_includeInstance, this);
|
|
4008
3987
|
};
|
|
4009
3988
|
|
|
4010
3989
|
|
|
@@ -4013,11 +3992,11 @@ proto.wechaty.puppet.MessageSendMiniProgramResponse.prototype.toObject = functio
|
|
|
4013
3992
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4014
3993
|
* the JSPB instance for transitional soy proto support:
|
|
4015
3994
|
* http://goto/soy-param-migration
|
|
4016
|
-
* @param {!proto.wechaty.puppet.
|
|
3995
|
+
* @param {!proto.wechaty.puppet.MessageSendTextResponse} msg The msg instance to transform.
|
|
4017
3996
|
* @return {!Object}
|
|
4018
3997
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4019
3998
|
*/
|
|
4020
|
-
proto.wechaty.puppet.
|
|
3999
|
+
proto.wechaty.puppet.MessageSendTextResponse.toObject = function(includeInstance, msg) {
|
|
4021
4000
|
var f, obj = {
|
|
4022
4001
|
idStringValueDeprecated: (f = msg.getIdStringValueDeprecated()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
|
|
4023
4002
|
id: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
@@ -4034,23 +4013,23 @@ proto.wechaty.puppet.MessageSendMiniProgramResponse.toObject = function(includeI
|
|
|
4034
4013
|
/**
|
|
4035
4014
|
* Deserializes binary data (in protobuf wire format).
|
|
4036
4015
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4037
|
-
* @return {!proto.wechaty.puppet.
|
|
4016
|
+
* @return {!proto.wechaty.puppet.MessageSendTextResponse}
|
|
4038
4017
|
*/
|
|
4039
|
-
proto.wechaty.puppet.
|
|
4018
|
+
proto.wechaty.puppet.MessageSendTextResponse.deserializeBinary = function(bytes) {
|
|
4040
4019
|
var reader = new jspb.BinaryReader(bytes);
|
|
4041
|
-
var msg = new proto.wechaty.puppet.
|
|
4042
|
-
return proto.wechaty.puppet.
|
|
4020
|
+
var msg = new proto.wechaty.puppet.MessageSendTextResponse;
|
|
4021
|
+
return proto.wechaty.puppet.MessageSendTextResponse.deserializeBinaryFromReader(msg, reader);
|
|
4043
4022
|
};
|
|
4044
4023
|
|
|
4045
4024
|
|
|
4046
4025
|
/**
|
|
4047
4026
|
* Deserializes binary data (in protobuf wire format) from the
|
|
4048
4027
|
* given reader into the given message object.
|
|
4049
|
-
* @param {!proto.wechaty.puppet.
|
|
4028
|
+
* @param {!proto.wechaty.puppet.MessageSendTextResponse} msg The message object to deserialize into.
|
|
4050
4029
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4051
|
-
* @return {!proto.wechaty.puppet.
|
|
4030
|
+
* @return {!proto.wechaty.puppet.MessageSendTextResponse}
|
|
4052
4031
|
*/
|
|
4053
|
-
proto.wechaty.puppet.
|
|
4032
|
+
proto.wechaty.puppet.MessageSendTextResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
4054
4033
|
while (reader.nextField()) {
|
|
4055
4034
|
if (reader.isEndGroup()) {
|
|
4056
4035
|
break;
|
|
@@ -4079,9 +4058,9 @@ proto.wechaty.puppet.MessageSendMiniProgramResponse.deserializeBinaryFromReader
|
|
|
4079
4058
|
* Serializes the message to binary data (in protobuf wire format).
|
|
4080
4059
|
* @return {!Uint8Array}
|
|
4081
4060
|
*/
|
|
4082
|
-
proto.wechaty.puppet.
|
|
4061
|
+
proto.wechaty.puppet.MessageSendTextResponse.prototype.serializeBinary = function() {
|
|
4083
4062
|
var writer = new jspb.BinaryWriter();
|
|
4084
|
-
proto.wechaty.puppet.
|
|
4063
|
+
proto.wechaty.puppet.MessageSendTextResponse.serializeBinaryToWriter(this, writer);
|
|
4085
4064
|
return writer.getResultBuffer();
|
|
4086
4065
|
};
|
|
4087
4066
|
|
|
@@ -4089,11 +4068,11 @@ proto.wechaty.puppet.MessageSendMiniProgramResponse.prototype.serializeBinary =
|
|
|
4089
4068
|
/**
|
|
4090
4069
|
* Serializes the given message to binary data (in protobuf wire
|
|
4091
4070
|
* format), writing to the given BinaryWriter.
|
|
4092
|
-
* @param {!proto.wechaty.puppet.
|
|
4071
|
+
* @param {!proto.wechaty.puppet.MessageSendTextResponse} message
|
|
4093
4072
|
* @param {!jspb.BinaryWriter} writer
|
|
4094
4073
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4095
4074
|
*/
|
|
4096
|
-
proto.wechaty.puppet.
|
|
4075
|
+
proto.wechaty.puppet.MessageSendTextResponse.serializeBinaryToWriter = function(message, writer) {
|
|
4097
4076
|
var f = undefined;
|
|
4098
4077
|
f = message.getIdStringValueDeprecated();
|
|
4099
4078
|
if (f != null) {
|
|
@@ -4117,7 +4096,7 @@ proto.wechaty.puppet.MessageSendMiniProgramResponse.serializeBinaryToWriter = fu
|
|
|
4117
4096
|
* optional google.protobuf.StringValue id_string_value_deprecated = 1;
|
|
4118
4097
|
* @return {?proto.google.protobuf.StringValue}
|
|
4119
4098
|
*/
|
|
4120
|
-
proto.wechaty.puppet.
|
|
4099
|
+
proto.wechaty.puppet.MessageSendTextResponse.prototype.getIdStringValueDeprecated = function() {
|
|
4121
4100
|
return /** @type{?proto.google.protobuf.StringValue} */ (
|
|
4122
4101
|
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 1));
|
|
4123
4102
|
};
|
|
@@ -4125,18 +4104,18 @@ proto.wechaty.puppet.MessageSendMiniProgramResponse.prototype.getIdStringValueDe
|
|
|
4125
4104
|
|
|
4126
4105
|
/**
|
|
4127
4106
|
* @param {?proto.google.protobuf.StringValue|undefined} value
|
|
4128
|
-
* @return {!proto.wechaty.puppet.
|
|
4107
|
+
* @return {!proto.wechaty.puppet.MessageSendTextResponse} returns this
|
|
4129
4108
|
*/
|
|
4130
|
-
proto.wechaty.puppet.
|
|
4109
|
+
proto.wechaty.puppet.MessageSendTextResponse.prototype.setIdStringValueDeprecated = function(value) {
|
|
4131
4110
|
return jspb.Message.setWrapperField(this, 1, value);
|
|
4132
4111
|
};
|
|
4133
4112
|
|
|
4134
4113
|
|
|
4135
4114
|
/**
|
|
4136
4115
|
* Clears the message field making it undefined.
|
|
4137
|
-
* @return {!proto.wechaty.puppet.
|
|
4116
|
+
* @return {!proto.wechaty.puppet.MessageSendTextResponse} returns this
|
|
4138
4117
|
*/
|
|
4139
|
-
proto.wechaty.puppet.
|
|
4118
|
+
proto.wechaty.puppet.MessageSendTextResponse.prototype.clearIdStringValueDeprecated = function() {
|
|
4140
4119
|
return this.setIdStringValueDeprecated(undefined);
|
|
4141
4120
|
};
|
|
4142
4121
|
|
|
@@ -4145,7 +4124,7 @@ proto.wechaty.puppet.MessageSendMiniProgramResponse.prototype.clearIdStringValue
|
|
|
4145
4124
|
* Returns whether this field is set.
|
|
4146
4125
|
* @return {boolean}
|
|
4147
4126
|
*/
|
|
4148
|
-
proto.wechaty.puppet.
|
|
4127
|
+
proto.wechaty.puppet.MessageSendTextResponse.prototype.hasIdStringValueDeprecated = function() {
|
|
4149
4128
|
return jspb.Message.getField(this, 1) != null;
|
|
4150
4129
|
};
|
|
4151
4130
|
|
|
@@ -4154,16 +4133,16 @@ proto.wechaty.puppet.MessageSendMiniProgramResponse.prototype.hasIdStringValueDe
|
|
|
4154
4133
|
* optional string id = 2;
|
|
4155
4134
|
* @return {string}
|
|
4156
4135
|
*/
|
|
4157
|
-
proto.wechaty.puppet.
|
|
4136
|
+
proto.wechaty.puppet.MessageSendTextResponse.prototype.getId = function() {
|
|
4158
4137
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
4159
4138
|
};
|
|
4160
4139
|
|
|
4161
4140
|
|
|
4162
4141
|
/**
|
|
4163
4142
|
* @param {string} value
|
|
4164
|
-
* @return {!proto.wechaty.puppet.
|
|
4143
|
+
* @return {!proto.wechaty.puppet.MessageSendTextResponse} returns this
|
|
4165
4144
|
*/
|
|
4166
|
-
proto.wechaty.puppet.
|
|
4145
|
+
proto.wechaty.puppet.MessageSendTextResponse.prototype.setId = function(value) {
|
|
4167
4146
|
return jspb.Message.setProto3StringField(this, 2, value);
|
|
4168
4147
|
};
|
|
4169
4148
|
|
|
@@ -4184,8 +4163,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
4184
4163
|
* http://goto/soy-param-migration
|
|
4185
4164
|
* @return {!Object}
|
|
4186
4165
|
*/
|
|
4187
|
-
proto.wechaty.puppet.
|
|
4188
|
-
return proto.wechaty.puppet.
|
|
4166
|
+
proto.wechaty.puppet.MessageSendMiniProgramRequest.prototype.toObject = function(opt_includeInstance) {
|
|
4167
|
+
return proto.wechaty.puppet.MessageSendMiniProgramRequest.toObject(opt_includeInstance, this);
|
|
4189
4168
|
};
|
|
4190
4169
|
|
|
4191
4170
|
|
|
@@ -4194,15 +4173,15 @@ proto.wechaty.puppet.MessageSendUrlRequest.prototype.toObject = function(opt_inc
|
|
|
4194
4173
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4195
4174
|
* the JSPB instance for transitional soy proto support:
|
|
4196
4175
|
* http://goto/soy-param-migration
|
|
4197
|
-
* @param {!proto.wechaty.puppet.
|
|
4176
|
+
* @param {!proto.wechaty.puppet.MessageSendMiniProgramRequest} msg The msg instance to transform.
|
|
4198
4177
|
* @return {!Object}
|
|
4199
4178
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4200
4179
|
*/
|
|
4201
|
-
proto.wechaty.puppet.
|
|
4180
|
+
proto.wechaty.puppet.MessageSendMiniProgramRequest.toObject = function(includeInstance, msg) {
|
|
4202
4181
|
var f, obj = {
|
|
4203
4182
|
conversationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
4204
|
-
|
|
4205
|
-
|
|
4183
|
+
miniProgramDeprecated: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
4184
|
+
miniProgram: (f = msg.getMiniProgram()) && wechaty_puppet_mini$program_pb.MiniProgramPayload.toObject(includeInstance, f)
|
|
4206
4185
|
};
|
|
4207
4186
|
|
|
4208
4187
|
if (includeInstance) {
|
|
@@ -4216,23 +4195,23 @@ proto.wechaty.puppet.MessageSendUrlRequest.toObject = function(includeInstance,
|
|
|
4216
4195
|
/**
|
|
4217
4196
|
* Deserializes binary data (in protobuf wire format).
|
|
4218
4197
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4219
|
-
* @return {!proto.wechaty.puppet.
|
|
4198
|
+
* @return {!proto.wechaty.puppet.MessageSendMiniProgramRequest}
|
|
4220
4199
|
*/
|
|
4221
|
-
proto.wechaty.puppet.
|
|
4200
|
+
proto.wechaty.puppet.MessageSendMiniProgramRequest.deserializeBinary = function(bytes) {
|
|
4222
4201
|
var reader = new jspb.BinaryReader(bytes);
|
|
4223
|
-
var msg = new proto.wechaty.puppet.
|
|
4224
|
-
return proto.wechaty.puppet.
|
|
4202
|
+
var msg = new proto.wechaty.puppet.MessageSendMiniProgramRequest;
|
|
4203
|
+
return proto.wechaty.puppet.MessageSendMiniProgramRequest.deserializeBinaryFromReader(msg, reader);
|
|
4225
4204
|
};
|
|
4226
4205
|
|
|
4227
4206
|
|
|
4228
4207
|
/**
|
|
4229
4208
|
* Deserializes binary data (in protobuf wire format) from the
|
|
4230
4209
|
* given reader into the given message object.
|
|
4231
|
-
* @param {!proto.wechaty.puppet.
|
|
4210
|
+
* @param {!proto.wechaty.puppet.MessageSendMiniProgramRequest} msg The message object to deserialize into.
|
|
4232
4211
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4233
|
-
* @return {!proto.wechaty.puppet.
|
|
4212
|
+
* @return {!proto.wechaty.puppet.MessageSendMiniProgramRequest}
|
|
4234
4213
|
*/
|
|
4235
|
-
proto.wechaty.puppet.
|
|
4214
|
+
proto.wechaty.puppet.MessageSendMiniProgramRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
4236
4215
|
while (reader.nextField()) {
|
|
4237
4216
|
if (reader.isEndGroup()) {
|
|
4238
4217
|
break;
|
|
@@ -4245,12 +4224,12 @@ proto.wechaty.puppet.MessageSendUrlRequest.deserializeBinaryFromReader = functio
|
|
|
4245
4224
|
break;
|
|
4246
4225
|
case 2:
|
|
4247
4226
|
var value = /** @type {string} */ (reader.readString());
|
|
4248
|
-
msg.
|
|
4227
|
+
msg.setMiniProgramDeprecated(value);
|
|
4249
4228
|
break;
|
|
4250
4229
|
case 3:
|
|
4251
|
-
var value = new
|
|
4252
|
-
reader.readMessage(value,
|
|
4253
|
-
msg.
|
|
4230
|
+
var value = new wechaty_puppet_mini$program_pb.MiniProgramPayload;
|
|
4231
|
+
reader.readMessage(value,wechaty_puppet_mini$program_pb.MiniProgramPayload.deserializeBinaryFromReader);
|
|
4232
|
+
msg.setMiniProgram(value);
|
|
4254
4233
|
break;
|
|
4255
4234
|
default:
|
|
4256
4235
|
reader.skipField();
|
|
@@ -4265,9 +4244,9 @@ proto.wechaty.puppet.MessageSendUrlRequest.deserializeBinaryFromReader = functio
|
|
|
4265
4244
|
* Serializes the message to binary data (in protobuf wire format).
|
|
4266
4245
|
* @return {!Uint8Array}
|
|
4267
4246
|
*/
|
|
4268
|
-
proto.wechaty.puppet.
|
|
4247
|
+
proto.wechaty.puppet.MessageSendMiniProgramRequest.prototype.serializeBinary = function() {
|
|
4269
4248
|
var writer = new jspb.BinaryWriter();
|
|
4270
|
-
proto.wechaty.puppet.
|
|
4249
|
+
proto.wechaty.puppet.MessageSendMiniProgramRequest.serializeBinaryToWriter(this, writer);
|
|
4271
4250
|
return writer.getResultBuffer();
|
|
4272
4251
|
};
|
|
4273
4252
|
|
|
@@ -4275,11 +4254,11 @@ proto.wechaty.puppet.MessageSendUrlRequest.prototype.serializeBinary = function(
|
|
|
4275
4254
|
/**
|
|
4276
4255
|
* Serializes the given message to binary data (in protobuf wire
|
|
4277
4256
|
* format), writing to the given BinaryWriter.
|
|
4278
|
-
* @param {!proto.wechaty.puppet.
|
|
4257
|
+
* @param {!proto.wechaty.puppet.MessageSendMiniProgramRequest} message
|
|
4279
4258
|
* @param {!jspb.BinaryWriter} writer
|
|
4280
4259
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4281
4260
|
*/
|
|
4282
|
-
proto.wechaty.puppet.
|
|
4261
|
+
proto.wechaty.puppet.MessageSendMiniProgramRequest.serializeBinaryToWriter = function(message, writer) {
|
|
4283
4262
|
var f = undefined;
|
|
4284
4263
|
f = message.getConversationId();
|
|
4285
4264
|
if (f.length > 0) {
|
|
@@ -4288,19 +4267,19 @@ proto.wechaty.puppet.MessageSendUrlRequest.serializeBinaryToWriter = function(me
|
|
|
4288
4267
|
f
|
|
4289
4268
|
);
|
|
4290
4269
|
}
|
|
4291
|
-
f = message.
|
|
4270
|
+
f = message.getMiniProgramDeprecated();
|
|
4292
4271
|
if (f.length > 0) {
|
|
4293
4272
|
writer.writeString(
|
|
4294
4273
|
2,
|
|
4295
4274
|
f
|
|
4296
4275
|
);
|
|
4297
4276
|
}
|
|
4298
|
-
f = message.
|
|
4277
|
+
f = message.getMiniProgram();
|
|
4299
4278
|
if (f != null) {
|
|
4300
4279
|
writer.writeMessage(
|
|
4301
4280
|
3,
|
|
4302
4281
|
f,
|
|
4303
|
-
|
|
4282
|
+
wechaty_puppet_mini$program_pb.MiniProgramPayload.serializeBinaryToWriter
|
|
4304
4283
|
);
|
|
4305
4284
|
}
|
|
4306
4285
|
};
|
|
@@ -4310,63 +4289,63 @@ proto.wechaty.puppet.MessageSendUrlRequest.serializeBinaryToWriter = function(me
|
|
|
4310
4289
|
* optional string conversation_id = 1;
|
|
4311
4290
|
* @return {string}
|
|
4312
4291
|
*/
|
|
4313
|
-
proto.wechaty.puppet.
|
|
4292
|
+
proto.wechaty.puppet.MessageSendMiniProgramRequest.prototype.getConversationId = function() {
|
|
4314
4293
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
4315
4294
|
};
|
|
4316
4295
|
|
|
4317
4296
|
|
|
4318
4297
|
/**
|
|
4319
4298
|
* @param {string} value
|
|
4320
|
-
* @return {!proto.wechaty.puppet.
|
|
4299
|
+
* @return {!proto.wechaty.puppet.MessageSendMiniProgramRequest} returns this
|
|
4321
4300
|
*/
|
|
4322
|
-
proto.wechaty.puppet.
|
|
4301
|
+
proto.wechaty.puppet.MessageSendMiniProgramRequest.prototype.setConversationId = function(value) {
|
|
4323
4302
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
4324
4303
|
};
|
|
4325
4304
|
|
|
4326
4305
|
|
|
4327
4306
|
/**
|
|
4328
|
-
* optional string
|
|
4307
|
+
* optional string mini_program_deprecated = 2;
|
|
4329
4308
|
* @return {string}
|
|
4330
4309
|
*/
|
|
4331
|
-
proto.wechaty.puppet.
|
|
4310
|
+
proto.wechaty.puppet.MessageSendMiniProgramRequest.prototype.getMiniProgramDeprecated = function() {
|
|
4332
4311
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
4333
4312
|
};
|
|
4334
4313
|
|
|
4335
4314
|
|
|
4336
4315
|
/**
|
|
4337
4316
|
* @param {string} value
|
|
4338
|
-
* @return {!proto.wechaty.puppet.
|
|
4317
|
+
* @return {!proto.wechaty.puppet.MessageSendMiniProgramRequest} returns this
|
|
4339
4318
|
*/
|
|
4340
|
-
proto.wechaty.puppet.
|
|
4319
|
+
proto.wechaty.puppet.MessageSendMiniProgramRequest.prototype.setMiniProgramDeprecated = function(value) {
|
|
4341
4320
|
return jspb.Message.setProto3StringField(this, 2, value);
|
|
4342
4321
|
};
|
|
4343
4322
|
|
|
4344
4323
|
|
|
4345
4324
|
/**
|
|
4346
|
-
* optional
|
|
4347
|
-
* @return {?proto.wechaty.puppet.
|
|
4325
|
+
* optional MiniProgramPayload mini_program = 3;
|
|
4326
|
+
* @return {?proto.wechaty.puppet.MiniProgramPayload}
|
|
4348
4327
|
*/
|
|
4349
|
-
proto.wechaty.puppet.
|
|
4350
|
-
return /** @type{?proto.wechaty.puppet.
|
|
4351
|
-
jspb.Message.getWrapperField(this,
|
|
4328
|
+
proto.wechaty.puppet.MessageSendMiniProgramRequest.prototype.getMiniProgram = function() {
|
|
4329
|
+
return /** @type{?proto.wechaty.puppet.MiniProgramPayload} */ (
|
|
4330
|
+
jspb.Message.getWrapperField(this, wechaty_puppet_mini$program_pb.MiniProgramPayload, 3));
|
|
4352
4331
|
};
|
|
4353
4332
|
|
|
4354
4333
|
|
|
4355
4334
|
/**
|
|
4356
|
-
* @param {?proto.wechaty.puppet.
|
|
4357
|
-
* @return {!proto.wechaty.puppet.
|
|
4335
|
+
* @param {?proto.wechaty.puppet.MiniProgramPayload|undefined} value
|
|
4336
|
+
* @return {!proto.wechaty.puppet.MessageSendMiniProgramRequest} returns this
|
|
4358
4337
|
*/
|
|
4359
|
-
proto.wechaty.puppet.
|
|
4338
|
+
proto.wechaty.puppet.MessageSendMiniProgramRequest.prototype.setMiniProgram = function(value) {
|
|
4360
4339
|
return jspb.Message.setWrapperField(this, 3, value);
|
|
4361
4340
|
};
|
|
4362
4341
|
|
|
4363
4342
|
|
|
4364
4343
|
/**
|
|
4365
4344
|
* Clears the message field making it undefined.
|
|
4366
|
-
* @return {!proto.wechaty.puppet.
|
|
4345
|
+
* @return {!proto.wechaty.puppet.MessageSendMiniProgramRequest} returns this
|
|
4367
4346
|
*/
|
|
4368
|
-
proto.wechaty.puppet.
|
|
4369
|
-
return this.
|
|
4347
|
+
proto.wechaty.puppet.MessageSendMiniProgramRequest.prototype.clearMiniProgram = function() {
|
|
4348
|
+
return this.setMiniProgram(undefined);
|
|
4370
4349
|
};
|
|
4371
4350
|
|
|
4372
4351
|
|
|
@@ -4374,7 +4353,7 @@ proto.wechaty.puppet.MessageSendUrlRequest.prototype.clearUrlLink = function() {
|
|
|
4374
4353
|
* Returns whether this field is set.
|
|
4375
4354
|
* @return {boolean}
|
|
4376
4355
|
*/
|
|
4377
|
-
proto.wechaty.puppet.
|
|
4356
|
+
proto.wechaty.puppet.MessageSendMiniProgramRequest.prototype.hasMiniProgram = function() {
|
|
4378
4357
|
return jspb.Message.getField(this, 3) != null;
|
|
4379
4358
|
};
|
|
4380
4359
|
|
|
@@ -4395,8 +4374,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
4395
4374
|
* http://goto/soy-param-migration
|
|
4396
4375
|
* @return {!Object}
|
|
4397
4376
|
*/
|
|
4398
|
-
proto.wechaty.puppet.
|
|
4399
|
-
return proto.wechaty.puppet.
|
|
4377
|
+
proto.wechaty.puppet.MessageSendMiniProgramResponse.prototype.toObject = function(opt_includeInstance) {
|
|
4378
|
+
return proto.wechaty.puppet.MessageSendMiniProgramResponse.toObject(opt_includeInstance, this);
|
|
4400
4379
|
};
|
|
4401
4380
|
|
|
4402
4381
|
|
|
@@ -4405,11 +4384,11 @@ proto.wechaty.puppet.MessageSendUrlResponse.prototype.toObject = function(opt_in
|
|
|
4405
4384
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4406
4385
|
* the JSPB instance for transitional soy proto support:
|
|
4407
4386
|
* http://goto/soy-param-migration
|
|
4408
|
-
* @param {!proto.wechaty.puppet.
|
|
4387
|
+
* @param {!proto.wechaty.puppet.MessageSendMiniProgramResponse} msg The msg instance to transform.
|
|
4409
4388
|
* @return {!Object}
|
|
4410
4389
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4411
4390
|
*/
|
|
4412
|
-
proto.wechaty.puppet.
|
|
4391
|
+
proto.wechaty.puppet.MessageSendMiniProgramResponse.toObject = function(includeInstance, msg) {
|
|
4413
4392
|
var f, obj = {
|
|
4414
4393
|
idStringValueDeprecated: (f = msg.getIdStringValueDeprecated()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
|
|
4415
4394
|
id: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
@@ -4426,23 +4405,23 @@ proto.wechaty.puppet.MessageSendUrlResponse.toObject = function(includeInstance,
|
|
|
4426
4405
|
/**
|
|
4427
4406
|
* Deserializes binary data (in protobuf wire format).
|
|
4428
4407
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4429
|
-
* @return {!proto.wechaty.puppet.
|
|
4408
|
+
* @return {!proto.wechaty.puppet.MessageSendMiniProgramResponse}
|
|
4430
4409
|
*/
|
|
4431
|
-
proto.wechaty.puppet.
|
|
4410
|
+
proto.wechaty.puppet.MessageSendMiniProgramResponse.deserializeBinary = function(bytes) {
|
|
4432
4411
|
var reader = new jspb.BinaryReader(bytes);
|
|
4433
|
-
var msg = new proto.wechaty.puppet.
|
|
4434
|
-
return proto.wechaty.puppet.
|
|
4412
|
+
var msg = new proto.wechaty.puppet.MessageSendMiniProgramResponse;
|
|
4413
|
+
return proto.wechaty.puppet.MessageSendMiniProgramResponse.deserializeBinaryFromReader(msg, reader);
|
|
4435
4414
|
};
|
|
4436
4415
|
|
|
4437
4416
|
|
|
4438
4417
|
/**
|
|
4439
4418
|
* Deserializes binary data (in protobuf wire format) from the
|
|
4440
4419
|
* given reader into the given message object.
|
|
4441
|
-
* @param {!proto.wechaty.puppet.
|
|
4420
|
+
* @param {!proto.wechaty.puppet.MessageSendMiniProgramResponse} msg The message object to deserialize into.
|
|
4442
4421
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4443
|
-
* @return {!proto.wechaty.puppet.
|
|
4422
|
+
* @return {!proto.wechaty.puppet.MessageSendMiniProgramResponse}
|
|
4444
4423
|
*/
|
|
4445
|
-
proto.wechaty.puppet.
|
|
4424
|
+
proto.wechaty.puppet.MessageSendMiniProgramResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
4446
4425
|
while (reader.nextField()) {
|
|
4447
4426
|
if (reader.isEndGroup()) {
|
|
4448
4427
|
break;
|
|
@@ -4471,9 +4450,9 @@ proto.wechaty.puppet.MessageSendUrlResponse.deserializeBinaryFromReader = functi
|
|
|
4471
4450
|
* Serializes the message to binary data (in protobuf wire format).
|
|
4472
4451
|
* @return {!Uint8Array}
|
|
4473
4452
|
*/
|
|
4474
|
-
proto.wechaty.puppet.
|
|
4453
|
+
proto.wechaty.puppet.MessageSendMiniProgramResponse.prototype.serializeBinary = function() {
|
|
4475
4454
|
var writer = new jspb.BinaryWriter();
|
|
4476
|
-
proto.wechaty.puppet.
|
|
4455
|
+
proto.wechaty.puppet.MessageSendMiniProgramResponse.serializeBinaryToWriter(this, writer);
|
|
4477
4456
|
return writer.getResultBuffer();
|
|
4478
4457
|
};
|
|
4479
4458
|
|
|
@@ -4481,11 +4460,11 @@ proto.wechaty.puppet.MessageSendUrlResponse.prototype.serializeBinary = function
|
|
|
4481
4460
|
/**
|
|
4482
4461
|
* Serializes the given message to binary data (in protobuf wire
|
|
4483
4462
|
* format), writing to the given BinaryWriter.
|
|
4484
|
-
* @param {!proto.wechaty.puppet.
|
|
4463
|
+
* @param {!proto.wechaty.puppet.MessageSendMiniProgramResponse} message
|
|
4485
4464
|
* @param {!jspb.BinaryWriter} writer
|
|
4486
4465
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4487
4466
|
*/
|
|
4488
|
-
proto.wechaty.puppet.
|
|
4467
|
+
proto.wechaty.puppet.MessageSendMiniProgramResponse.serializeBinaryToWriter = function(message, writer) {
|
|
4489
4468
|
var f = undefined;
|
|
4490
4469
|
f = message.getIdStringValueDeprecated();
|
|
4491
4470
|
if (f != null) {
|
|
@@ -4509,7 +4488,7 @@ proto.wechaty.puppet.MessageSendUrlResponse.serializeBinaryToWriter = function(m
|
|
|
4509
4488
|
* optional google.protobuf.StringValue id_string_value_deprecated = 1;
|
|
4510
4489
|
* @return {?proto.google.protobuf.StringValue}
|
|
4511
4490
|
*/
|
|
4512
|
-
proto.wechaty.puppet.
|
|
4491
|
+
proto.wechaty.puppet.MessageSendMiniProgramResponse.prototype.getIdStringValueDeprecated = function() {
|
|
4513
4492
|
return /** @type{?proto.google.protobuf.StringValue} */ (
|
|
4514
4493
|
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 1));
|
|
4515
4494
|
};
|
|
@@ -4517,18 +4496,18 @@ proto.wechaty.puppet.MessageSendUrlResponse.prototype.getIdStringValueDeprecated
|
|
|
4517
4496
|
|
|
4518
4497
|
/**
|
|
4519
4498
|
* @param {?proto.google.protobuf.StringValue|undefined} value
|
|
4520
|
-
* @return {!proto.wechaty.puppet.
|
|
4499
|
+
* @return {!proto.wechaty.puppet.MessageSendMiniProgramResponse} returns this
|
|
4521
4500
|
*/
|
|
4522
|
-
proto.wechaty.puppet.
|
|
4501
|
+
proto.wechaty.puppet.MessageSendMiniProgramResponse.prototype.setIdStringValueDeprecated = function(value) {
|
|
4523
4502
|
return jspb.Message.setWrapperField(this, 1, value);
|
|
4524
4503
|
};
|
|
4525
4504
|
|
|
4526
4505
|
|
|
4527
4506
|
/**
|
|
4528
4507
|
* Clears the message field making it undefined.
|
|
4529
|
-
* @return {!proto.wechaty.puppet.
|
|
4508
|
+
* @return {!proto.wechaty.puppet.MessageSendMiniProgramResponse} returns this
|
|
4530
4509
|
*/
|
|
4531
|
-
proto.wechaty.puppet.
|
|
4510
|
+
proto.wechaty.puppet.MessageSendMiniProgramResponse.prototype.clearIdStringValueDeprecated = function() {
|
|
4532
4511
|
return this.setIdStringValueDeprecated(undefined);
|
|
4533
4512
|
};
|
|
4534
4513
|
|
|
@@ -4537,7 +4516,7 @@ proto.wechaty.puppet.MessageSendUrlResponse.prototype.clearIdStringValueDeprecat
|
|
|
4537
4516
|
* Returns whether this field is set.
|
|
4538
4517
|
* @return {boolean}
|
|
4539
4518
|
*/
|
|
4540
|
-
proto.wechaty.puppet.
|
|
4519
|
+
proto.wechaty.puppet.MessageSendMiniProgramResponse.prototype.hasIdStringValueDeprecated = function() {
|
|
4541
4520
|
return jspb.Message.getField(this, 1) != null;
|
|
4542
4521
|
};
|
|
4543
4522
|
|
|
@@ -4546,16 +4525,16 @@ proto.wechaty.puppet.MessageSendUrlResponse.prototype.hasIdStringValueDeprecated
|
|
|
4546
4525
|
* optional string id = 2;
|
|
4547
4526
|
* @return {string}
|
|
4548
4527
|
*/
|
|
4549
|
-
proto.wechaty.puppet.
|
|
4528
|
+
proto.wechaty.puppet.MessageSendMiniProgramResponse.prototype.getId = function() {
|
|
4550
4529
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
4551
4530
|
};
|
|
4552
4531
|
|
|
4553
4532
|
|
|
4554
4533
|
/**
|
|
4555
4534
|
* @param {string} value
|
|
4556
|
-
* @return {!proto.wechaty.puppet.
|
|
4535
|
+
* @return {!proto.wechaty.puppet.MessageSendMiniProgramResponse} returns this
|
|
4557
4536
|
*/
|
|
4558
|
-
proto.wechaty.puppet.
|
|
4537
|
+
proto.wechaty.puppet.MessageSendMiniProgramResponse.prototype.setId = function(value) {
|
|
4559
4538
|
return jspb.Message.setProto3StringField(this, 2, value);
|
|
4560
4539
|
};
|
|
4561
4540
|
|
|
@@ -4576,8 +4555,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
4576
4555
|
* http://goto/soy-param-migration
|
|
4577
4556
|
* @return {!Object}
|
|
4578
4557
|
*/
|
|
4579
|
-
proto.wechaty.puppet.
|
|
4580
|
-
return proto.wechaty.puppet.
|
|
4558
|
+
proto.wechaty.puppet.MessageSendUrlRequest.prototype.toObject = function(opt_includeInstance) {
|
|
4559
|
+
return proto.wechaty.puppet.MessageSendUrlRequest.toObject(opt_includeInstance, this);
|
|
4581
4560
|
};
|
|
4582
4561
|
|
|
4583
4562
|
|
|
@@ -4586,13 +4565,15 @@ proto.wechaty.puppet.MessageRecallRequest.prototype.toObject = function(opt_incl
|
|
|
4586
4565
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4587
4566
|
* the JSPB instance for transitional soy proto support:
|
|
4588
4567
|
* http://goto/soy-param-migration
|
|
4589
|
-
* @param {!proto.wechaty.puppet.
|
|
4568
|
+
* @param {!proto.wechaty.puppet.MessageSendUrlRequest} msg The msg instance to transform.
|
|
4590
4569
|
* @return {!Object}
|
|
4591
4570
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4592
4571
|
*/
|
|
4593
|
-
proto.wechaty.puppet.
|
|
4572
|
+
proto.wechaty.puppet.MessageSendUrlRequest.toObject = function(includeInstance, msg) {
|
|
4594
4573
|
var f, obj = {
|
|
4595
|
-
|
|
4574
|
+
conversationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
4575
|
+
urlLinkDeprecated: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
4576
|
+
urlLink: (f = msg.getUrlLink()) && wechaty_puppet_url$link_pb.UrlLinkPayload.toObject(includeInstance, f)
|
|
4596
4577
|
};
|
|
4597
4578
|
|
|
4598
4579
|
if (includeInstance) {
|
|
@@ -4606,23 +4587,23 @@ proto.wechaty.puppet.MessageRecallRequest.toObject = function(includeInstance, m
|
|
|
4606
4587
|
/**
|
|
4607
4588
|
* Deserializes binary data (in protobuf wire format).
|
|
4608
4589
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4609
|
-
* @return {!proto.wechaty.puppet.
|
|
4590
|
+
* @return {!proto.wechaty.puppet.MessageSendUrlRequest}
|
|
4610
4591
|
*/
|
|
4611
|
-
proto.wechaty.puppet.
|
|
4592
|
+
proto.wechaty.puppet.MessageSendUrlRequest.deserializeBinary = function(bytes) {
|
|
4612
4593
|
var reader = new jspb.BinaryReader(bytes);
|
|
4613
|
-
var msg = new proto.wechaty.puppet.
|
|
4614
|
-
return proto.wechaty.puppet.
|
|
4594
|
+
var msg = new proto.wechaty.puppet.MessageSendUrlRequest;
|
|
4595
|
+
return proto.wechaty.puppet.MessageSendUrlRequest.deserializeBinaryFromReader(msg, reader);
|
|
4615
4596
|
};
|
|
4616
4597
|
|
|
4617
4598
|
|
|
4618
4599
|
/**
|
|
4619
4600
|
* Deserializes binary data (in protobuf wire format) from the
|
|
4620
4601
|
* given reader into the given message object.
|
|
4621
|
-
* @param {!proto.wechaty.puppet.
|
|
4602
|
+
* @param {!proto.wechaty.puppet.MessageSendUrlRequest} msg The message object to deserialize into.
|
|
4622
4603
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4623
|
-
* @return {!proto.wechaty.puppet.
|
|
4604
|
+
* @return {!proto.wechaty.puppet.MessageSendUrlRequest}
|
|
4624
4605
|
*/
|
|
4625
|
-
proto.wechaty.puppet.
|
|
4606
|
+
proto.wechaty.puppet.MessageSendUrlRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
4626
4607
|
while (reader.nextField()) {
|
|
4627
4608
|
if (reader.isEndGroup()) {
|
|
4628
4609
|
break;
|
|
@@ -4631,12 +4612,532 @@ proto.wechaty.puppet.MessageRecallRequest.deserializeBinaryFromReader = function
|
|
|
4631
4612
|
switch (field) {
|
|
4632
4613
|
case 1:
|
|
4633
4614
|
var value = /** @type {string} */ (reader.readString());
|
|
4634
|
-
msg.
|
|
4635
|
-
break;
|
|
4636
|
-
default:
|
|
4637
|
-
reader.skipField();
|
|
4615
|
+
msg.setConversationId(value);
|
|
4638
4616
|
break;
|
|
4639
|
-
|
|
4617
|
+
case 2:
|
|
4618
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4619
|
+
msg.setUrlLinkDeprecated(value);
|
|
4620
|
+
break;
|
|
4621
|
+
case 3:
|
|
4622
|
+
var value = new wechaty_puppet_url$link_pb.UrlLinkPayload;
|
|
4623
|
+
reader.readMessage(value,wechaty_puppet_url$link_pb.UrlLinkPayload.deserializeBinaryFromReader);
|
|
4624
|
+
msg.setUrlLink(value);
|
|
4625
|
+
break;
|
|
4626
|
+
default:
|
|
4627
|
+
reader.skipField();
|
|
4628
|
+
break;
|
|
4629
|
+
}
|
|
4630
|
+
}
|
|
4631
|
+
return msg;
|
|
4632
|
+
};
|
|
4633
|
+
|
|
4634
|
+
|
|
4635
|
+
/**
|
|
4636
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
4637
|
+
* @return {!Uint8Array}
|
|
4638
|
+
*/
|
|
4639
|
+
proto.wechaty.puppet.MessageSendUrlRequest.prototype.serializeBinary = function() {
|
|
4640
|
+
var writer = new jspb.BinaryWriter();
|
|
4641
|
+
proto.wechaty.puppet.MessageSendUrlRequest.serializeBinaryToWriter(this, writer);
|
|
4642
|
+
return writer.getResultBuffer();
|
|
4643
|
+
};
|
|
4644
|
+
|
|
4645
|
+
|
|
4646
|
+
/**
|
|
4647
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
4648
|
+
* format), writing to the given BinaryWriter.
|
|
4649
|
+
* @param {!proto.wechaty.puppet.MessageSendUrlRequest} message
|
|
4650
|
+
* @param {!jspb.BinaryWriter} writer
|
|
4651
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4652
|
+
*/
|
|
4653
|
+
proto.wechaty.puppet.MessageSendUrlRequest.serializeBinaryToWriter = function(message, writer) {
|
|
4654
|
+
var f = undefined;
|
|
4655
|
+
f = message.getConversationId();
|
|
4656
|
+
if (f.length > 0) {
|
|
4657
|
+
writer.writeString(
|
|
4658
|
+
1,
|
|
4659
|
+
f
|
|
4660
|
+
);
|
|
4661
|
+
}
|
|
4662
|
+
f = message.getUrlLinkDeprecated();
|
|
4663
|
+
if (f.length > 0) {
|
|
4664
|
+
writer.writeString(
|
|
4665
|
+
2,
|
|
4666
|
+
f
|
|
4667
|
+
);
|
|
4668
|
+
}
|
|
4669
|
+
f = message.getUrlLink();
|
|
4670
|
+
if (f != null) {
|
|
4671
|
+
writer.writeMessage(
|
|
4672
|
+
3,
|
|
4673
|
+
f,
|
|
4674
|
+
wechaty_puppet_url$link_pb.UrlLinkPayload.serializeBinaryToWriter
|
|
4675
|
+
);
|
|
4676
|
+
}
|
|
4677
|
+
};
|
|
4678
|
+
|
|
4679
|
+
|
|
4680
|
+
/**
|
|
4681
|
+
* optional string conversation_id = 1;
|
|
4682
|
+
* @return {string}
|
|
4683
|
+
*/
|
|
4684
|
+
proto.wechaty.puppet.MessageSendUrlRequest.prototype.getConversationId = function() {
|
|
4685
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
4686
|
+
};
|
|
4687
|
+
|
|
4688
|
+
|
|
4689
|
+
/**
|
|
4690
|
+
* @param {string} value
|
|
4691
|
+
* @return {!proto.wechaty.puppet.MessageSendUrlRequest} returns this
|
|
4692
|
+
*/
|
|
4693
|
+
proto.wechaty.puppet.MessageSendUrlRequest.prototype.setConversationId = function(value) {
|
|
4694
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
4695
|
+
};
|
|
4696
|
+
|
|
4697
|
+
|
|
4698
|
+
/**
|
|
4699
|
+
* optional string url_link_deprecated = 2;
|
|
4700
|
+
* @return {string}
|
|
4701
|
+
*/
|
|
4702
|
+
proto.wechaty.puppet.MessageSendUrlRequest.prototype.getUrlLinkDeprecated = function() {
|
|
4703
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
4704
|
+
};
|
|
4705
|
+
|
|
4706
|
+
|
|
4707
|
+
/**
|
|
4708
|
+
* @param {string} value
|
|
4709
|
+
* @return {!proto.wechaty.puppet.MessageSendUrlRequest} returns this
|
|
4710
|
+
*/
|
|
4711
|
+
proto.wechaty.puppet.MessageSendUrlRequest.prototype.setUrlLinkDeprecated = function(value) {
|
|
4712
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
4713
|
+
};
|
|
4714
|
+
|
|
4715
|
+
|
|
4716
|
+
/**
|
|
4717
|
+
* optional UrlLinkPayload url_link = 3;
|
|
4718
|
+
* @return {?proto.wechaty.puppet.UrlLinkPayload}
|
|
4719
|
+
*/
|
|
4720
|
+
proto.wechaty.puppet.MessageSendUrlRequest.prototype.getUrlLink = function() {
|
|
4721
|
+
return /** @type{?proto.wechaty.puppet.UrlLinkPayload} */ (
|
|
4722
|
+
jspb.Message.getWrapperField(this, wechaty_puppet_url$link_pb.UrlLinkPayload, 3));
|
|
4723
|
+
};
|
|
4724
|
+
|
|
4725
|
+
|
|
4726
|
+
/**
|
|
4727
|
+
* @param {?proto.wechaty.puppet.UrlLinkPayload|undefined} value
|
|
4728
|
+
* @return {!proto.wechaty.puppet.MessageSendUrlRequest} returns this
|
|
4729
|
+
*/
|
|
4730
|
+
proto.wechaty.puppet.MessageSendUrlRequest.prototype.setUrlLink = function(value) {
|
|
4731
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
4732
|
+
};
|
|
4733
|
+
|
|
4734
|
+
|
|
4735
|
+
/**
|
|
4736
|
+
* Clears the message field making it undefined.
|
|
4737
|
+
* @return {!proto.wechaty.puppet.MessageSendUrlRequest} returns this
|
|
4738
|
+
*/
|
|
4739
|
+
proto.wechaty.puppet.MessageSendUrlRequest.prototype.clearUrlLink = function() {
|
|
4740
|
+
return this.setUrlLink(undefined);
|
|
4741
|
+
};
|
|
4742
|
+
|
|
4743
|
+
|
|
4744
|
+
/**
|
|
4745
|
+
* Returns whether this field is set.
|
|
4746
|
+
* @return {boolean}
|
|
4747
|
+
*/
|
|
4748
|
+
proto.wechaty.puppet.MessageSendUrlRequest.prototype.hasUrlLink = function() {
|
|
4749
|
+
return jspb.Message.getField(this, 3) != null;
|
|
4750
|
+
};
|
|
4751
|
+
|
|
4752
|
+
|
|
4753
|
+
|
|
4754
|
+
|
|
4755
|
+
|
|
4756
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4757
|
+
/**
|
|
4758
|
+
* Creates an object representation of this proto.
|
|
4759
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
4760
|
+
* Optional fields that are not set will be set to undefined.
|
|
4761
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
4762
|
+
* For the list of reserved names please see:
|
|
4763
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
4764
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
4765
|
+
* JSPB instance for transitional soy proto support:
|
|
4766
|
+
* http://goto/soy-param-migration
|
|
4767
|
+
* @return {!Object}
|
|
4768
|
+
*/
|
|
4769
|
+
proto.wechaty.puppet.MessageSendUrlResponse.prototype.toObject = function(opt_includeInstance) {
|
|
4770
|
+
return proto.wechaty.puppet.MessageSendUrlResponse.toObject(opt_includeInstance, this);
|
|
4771
|
+
};
|
|
4772
|
+
|
|
4773
|
+
|
|
4774
|
+
/**
|
|
4775
|
+
* Static version of the {@see toObject} method.
|
|
4776
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4777
|
+
* the JSPB instance for transitional soy proto support:
|
|
4778
|
+
* http://goto/soy-param-migration
|
|
4779
|
+
* @param {!proto.wechaty.puppet.MessageSendUrlResponse} msg The msg instance to transform.
|
|
4780
|
+
* @return {!Object}
|
|
4781
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4782
|
+
*/
|
|
4783
|
+
proto.wechaty.puppet.MessageSendUrlResponse.toObject = function(includeInstance, msg) {
|
|
4784
|
+
var f, obj = {
|
|
4785
|
+
idStringValueDeprecated: (f = msg.getIdStringValueDeprecated()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
|
|
4786
|
+
id: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
4787
|
+
};
|
|
4788
|
+
|
|
4789
|
+
if (includeInstance) {
|
|
4790
|
+
obj.$jspbMessageInstance = msg;
|
|
4791
|
+
}
|
|
4792
|
+
return obj;
|
|
4793
|
+
};
|
|
4794
|
+
}
|
|
4795
|
+
|
|
4796
|
+
|
|
4797
|
+
/**
|
|
4798
|
+
* Deserializes binary data (in protobuf wire format).
|
|
4799
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4800
|
+
* @return {!proto.wechaty.puppet.MessageSendUrlResponse}
|
|
4801
|
+
*/
|
|
4802
|
+
proto.wechaty.puppet.MessageSendUrlResponse.deserializeBinary = function(bytes) {
|
|
4803
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
4804
|
+
var msg = new proto.wechaty.puppet.MessageSendUrlResponse;
|
|
4805
|
+
return proto.wechaty.puppet.MessageSendUrlResponse.deserializeBinaryFromReader(msg, reader);
|
|
4806
|
+
};
|
|
4807
|
+
|
|
4808
|
+
|
|
4809
|
+
/**
|
|
4810
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
4811
|
+
* given reader into the given message object.
|
|
4812
|
+
* @param {!proto.wechaty.puppet.MessageSendUrlResponse} msg The message object to deserialize into.
|
|
4813
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4814
|
+
* @return {!proto.wechaty.puppet.MessageSendUrlResponse}
|
|
4815
|
+
*/
|
|
4816
|
+
proto.wechaty.puppet.MessageSendUrlResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
4817
|
+
while (reader.nextField()) {
|
|
4818
|
+
if (reader.isEndGroup()) {
|
|
4819
|
+
break;
|
|
4820
|
+
}
|
|
4821
|
+
var field = reader.getFieldNumber();
|
|
4822
|
+
switch (field) {
|
|
4823
|
+
case 1:
|
|
4824
|
+
var value = new google_protobuf_wrappers_pb.StringValue;
|
|
4825
|
+
reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
|
|
4826
|
+
msg.setIdStringValueDeprecated(value);
|
|
4827
|
+
break;
|
|
4828
|
+
case 2:
|
|
4829
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4830
|
+
msg.setId(value);
|
|
4831
|
+
break;
|
|
4832
|
+
default:
|
|
4833
|
+
reader.skipField();
|
|
4834
|
+
break;
|
|
4835
|
+
}
|
|
4836
|
+
}
|
|
4837
|
+
return msg;
|
|
4838
|
+
};
|
|
4839
|
+
|
|
4840
|
+
|
|
4841
|
+
/**
|
|
4842
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
4843
|
+
* @return {!Uint8Array}
|
|
4844
|
+
*/
|
|
4845
|
+
proto.wechaty.puppet.MessageSendUrlResponse.prototype.serializeBinary = function() {
|
|
4846
|
+
var writer = new jspb.BinaryWriter();
|
|
4847
|
+
proto.wechaty.puppet.MessageSendUrlResponse.serializeBinaryToWriter(this, writer);
|
|
4848
|
+
return writer.getResultBuffer();
|
|
4849
|
+
};
|
|
4850
|
+
|
|
4851
|
+
|
|
4852
|
+
/**
|
|
4853
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
4854
|
+
* format), writing to the given BinaryWriter.
|
|
4855
|
+
* @param {!proto.wechaty.puppet.MessageSendUrlResponse} message
|
|
4856
|
+
* @param {!jspb.BinaryWriter} writer
|
|
4857
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4858
|
+
*/
|
|
4859
|
+
proto.wechaty.puppet.MessageSendUrlResponse.serializeBinaryToWriter = function(message, writer) {
|
|
4860
|
+
var f = undefined;
|
|
4861
|
+
f = message.getIdStringValueDeprecated();
|
|
4862
|
+
if (f != null) {
|
|
4863
|
+
writer.writeMessage(
|
|
4864
|
+
1,
|
|
4865
|
+
f,
|
|
4866
|
+
google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
|
|
4867
|
+
);
|
|
4868
|
+
}
|
|
4869
|
+
f = message.getId();
|
|
4870
|
+
if (f.length > 0) {
|
|
4871
|
+
writer.writeString(
|
|
4872
|
+
2,
|
|
4873
|
+
f
|
|
4874
|
+
);
|
|
4875
|
+
}
|
|
4876
|
+
};
|
|
4877
|
+
|
|
4878
|
+
|
|
4879
|
+
/**
|
|
4880
|
+
* optional google.protobuf.StringValue id_string_value_deprecated = 1;
|
|
4881
|
+
* @return {?proto.google.protobuf.StringValue}
|
|
4882
|
+
*/
|
|
4883
|
+
proto.wechaty.puppet.MessageSendUrlResponse.prototype.getIdStringValueDeprecated = function() {
|
|
4884
|
+
return /** @type{?proto.google.protobuf.StringValue} */ (
|
|
4885
|
+
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 1));
|
|
4886
|
+
};
|
|
4887
|
+
|
|
4888
|
+
|
|
4889
|
+
/**
|
|
4890
|
+
* @param {?proto.google.protobuf.StringValue|undefined} value
|
|
4891
|
+
* @return {!proto.wechaty.puppet.MessageSendUrlResponse} returns this
|
|
4892
|
+
*/
|
|
4893
|
+
proto.wechaty.puppet.MessageSendUrlResponse.prototype.setIdStringValueDeprecated = function(value) {
|
|
4894
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
4895
|
+
};
|
|
4896
|
+
|
|
4897
|
+
|
|
4898
|
+
/**
|
|
4899
|
+
* Clears the message field making it undefined.
|
|
4900
|
+
* @return {!proto.wechaty.puppet.MessageSendUrlResponse} returns this
|
|
4901
|
+
*/
|
|
4902
|
+
proto.wechaty.puppet.MessageSendUrlResponse.prototype.clearIdStringValueDeprecated = function() {
|
|
4903
|
+
return this.setIdStringValueDeprecated(undefined);
|
|
4904
|
+
};
|
|
4905
|
+
|
|
4906
|
+
|
|
4907
|
+
/**
|
|
4908
|
+
* Returns whether this field is set.
|
|
4909
|
+
* @return {boolean}
|
|
4910
|
+
*/
|
|
4911
|
+
proto.wechaty.puppet.MessageSendUrlResponse.prototype.hasIdStringValueDeprecated = function() {
|
|
4912
|
+
return jspb.Message.getField(this, 1) != null;
|
|
4913
|
+
};
|
|
4914
|
+
|
|
4915
|
+
|
|
4916
|
+
/**
|
|
4917
|
+
* optional string id = 2;
|
|
4918
|
+
* @return {string}
|
|
4919
|
+
*/
|
|
4920
|
+
proto.wechaty.puppet.MessageSendUrlResponse.prototype.getId = function() {
|
|
4921
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
4922
|
+
};
|
|
4923
|
+
|
|
4924
|
+
|
|
4925
|
+
/**
|
|
4926
|
+
* @param {string} value
|
|
4927
|
+
* @return {!proto.wechaty.puppet.MessageSendUrlResponse} returns this
|
|
4928
|
+
*/
|
|
4929
|
+
proto.wechaty.puppet.MessageSendUrlResponse.prototype.setId = function(value) {
|
|
4930
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
4931
|
+
};
|
|
4932
|
+
|
|
4933
|
+
|
|
4934
|
+
|
|
4935
|
+
|
|
4936
|
+
|
|
4937
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4938
|
+
/**
|
|
4939
|
+
* Creates an object representation of this proto.
|
|
4940
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
4941
|
+
* Optional fields that are not set will be set to undefined.
|
|
4942
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
4943
|
+
* For the list of reserved names please see:
|
|
4944
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
4945
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
4946
|
+
* JSPB instance for transitional soy proto support:
|
|
4947
|
+
* http://goto/soy-param-migration
|
|
4948
|
+
* @return {!Object}
|
|
4949
|
+
*/
|
|
4950
|
+
proto.wechaty.puppet.MessageRecallRequest.prototype.toObject = function(opt_includeInstance) {
|
|
4951
|
+
return proto.wechaty.puppet.MessageRecallRequest.toObject(opt_includeInstance, this);
|
|
4952
|
+
};
|
|
4953
|
+
|
|
4954
|
+
|
|
4955
|
+
/**
|
|
4956
|
+
* Static version of the {@see toObject} method.
|
|
4957
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4958
|
+
* the JSPB instance for transitional soy proto support:
|
|
4959
|
+
* http://goto/soy-param-migration
|
|
4960
|
+
* @param {!proto.wechaty.puppet.MessageRecallRequest} msg The msg instance to transform.
|
|
4961
|
+
* @return {!Object}
|
|
4962
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4963
|
+
*/
|
|
4964
|
+
proto.wechaty.puppet.MessageRecallRequest.toObject = function(includeInstance, msg) {
|
|
4965
|
+
var f, obj = {
|
|
4966
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
4967
|
+
};
|
|
4968
|
+
|
|
4969
|
+
if (includeInstance) {
|
|
4970
|
+
obj.$jspbMessageInstance = msg;
|
|
4971
|
+
}
|
|
4972
|
+
return obj;
|
|
4973
|
+
};
|
|
4974
|
+
}
|
|
4975
|
+
|
|
4976
|
+
|
|
4977
|
+
/**
|
|
4978
|
+
* Deserializes binary data (in protobuf wire format).
|
|
4979
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4980
|
+
* @return {!proto.wechaty.puppet.MessageRecallRequest}
|
|
4981
|
+
*/
|
|
4982
|
+
proto.wechaty.puppet.MessageRecallRequest.deserializeBinary = function(bytes) {
|
|
4983
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
4984
|
+
var msg = new proto.wechaty.puppet.MessageRecallRequest;
|
|
4985
|
+
return proto.wechaty.puppet.MessageRecallRequest.deserializeBinaryFromReader(msg, reader);
|
|
4986
|
+
};
|
|
4987
|
+
|
|
4988
|
+
|
|
4989
|
+
/**
|
|
4990
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
4991
|
+
* given reader into the given message object.
|
|
4992
|
+
* @param {!proto.wechaty.puppet.MessageRecallRequest} msg The message object to deserialize into.
|
|
4993
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4994
|
+
* @return {!proto.wechaty.puppet.MessageRecallRequest}
|
|
4995
|
+
*/
|
|
4996
|
+
proto.wechaty.puppet.MessageRecallRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
4997
|
+
while (reader.nextField()) {
|
|
4998
|
+
if (reader.isEndGroup()) {
|
|
4999
|
+
break;
|
|
5000
|
+
}
|
|
5001
|
+
var field = reader.getFieldNumber();
|
|
5002
|
+
switch (field) {
|
|
5003
|
+
case 1:
|
|
5004
|
+
var value = /** @type {string} */ (reader.readString());
|
|
5005
|
+
msg.setId(value);
|
|
5006
|
+
break;
|
|
5007
|
+
default:
|
|
5008
|
+
reader.skipField();
|
|
5009
|
+
break;
|
|
5010
|
+
}
|
|
5011
|
+
}
|
|
5012
|
+
return msg;
|
|
5013
|
+
};
|
|
5014
|
+
|
|
5015
|
+
|
|
5016
|
+
/**
|
|
5017
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
5018
|
+
* @return {!Uint8Array}
|
|
5019
|
+
*/
|
|
5020
|
+
proto.wechaty.puppet.MessageRecallRequest.prototype.serializeBinary = function() {
|
|
5021
|
+
var writer = new jspb.BinaryWriter();
|
|
5022
|
+
proto.wechaty.puppet.MessageRecallRequest.serializeBinaryToWriter(this, writer);
|
|
5023
|
+
return writer.getResultBuffer();
|
|
5024
|
+
};
|
|
5025
|
+
|
|
5026
|
+
|
|
5027
|
+
/**
|
|
5028
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
5029
|
+
* format), writing to the given BinaryWriter.
|
|
5030
|
+
* @param {!proto.wechaty.puppet.MessageRecallRequest} message
|
|
5031
|
+
* @param {!jspb.BinaryWriter} writer
|
|
5032
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5033
|
+
*/
|
|
5034
|
+
proto.wechaty.puppet.MessageRecallRequest.serializeBinaryToWriter = function(message, writer) {
|
|
5035
|
+
var f = undefined;
|
|
5036
|
+
f = message.getId();
|
|
5037
|
+
if (f.length > 0) {
|
|
5038
|
+
writer.writeString(
|
|
5039
|
+
1,
|
|
5040
|
+
f
|
|
5041
|
+
);
|
|
5042
|
+
}
|
|
5043
|
+
};
|
|
5044
|
+
|
|
5045
|
+
|
|
5046
|
+
/**
|
|
5047
|
+
* optional string id = 1;
|
|
5048
|
+
* @return {string}
|
|
5049
|
+
*/
|
|
5050
|
+
proto.wechaty.puppet.MessageRecallRequest.prototype.getId = function() {
|
|
5051
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
5052
|
+
};
|
|
5053
|
+
|
|
5054
|
+
|
|
5055
|
+
/**
|
|
5056
|
+
* @param {string} value
|
|
5057
|
+
* @return {!proto.wechaty.puppet.MessageRecallRequest} returns this
|
|
5058
|
+
*/
|
|
5059
|
+
proto.wechaty.puppet.MessageRecallRequest.prototype.setId = function(value) {
|
|
5060
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
5061
|
+
};
|
|
5062
|
+
|
|
5063
|
+
|
|
5064
|
+
|
|
5065
|
+
|
|
5066
|
+
|
|
5067
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5068
|
+
/**
|
|
5069
|
+
* Creates an object representation of this proto.
|
|
5070
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
5071
|
+
* Optional fields that are not set will be set to undefined.
|
|
5072
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
5073
|
+
* For the list of reserved names please see:
|
|
5074
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
5075
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
5076
|
+
* JSPB instance for transitional soy proto support:
|
|
5077
|
+
* http://goto/soy-param-migration
|
|
5078
|
+
* @return {!Object}
|
|
5079
|
+
*/
|
|
5080
|
+
proto.wechaty.puppet.MessageRecallResponse.prototype.toObject = function(opt_includeInstance) {
|
|
5081
|
+
return proto.wechaty.puppet.MessageRecallResponse.toObject(opt_includeInstance, this);
|
|
5082
|
+
};
|
|
5083
|
+
|
|
5084
|
+
|
|
5085
|
+
/**
|
|
5086
|
+
* Static version of the {@see toObject} method.
|
|
5087
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
5088
|
+
* the JSPB instance for transitional soy proto support:
|
|
5089
|
+
* http://goto/soy-param-migration
|
|
5090
|
+
* @param {!proto.wechaty.puppet.MessageRecallResponse} msg The msg instance to transform.
|
|
5091
|
+
* @return {!Object}
|
|
5092
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5093
|
+
*/
|
|
5094
|
+
proto.wechaty.puppet.MessageRecallResponse.toObject = function(includeInstance, msg) {
|
|
5095
|
+
var f, obj = {
|
|
5096
|
+
success: jspb.Message.getBooleanFieldWithDefault(msg, 1, false)
|
|
5097
|
+
};
|
|
5098
|
+
|
|
5099
|
+
if (includeInstance) {
|
|
5100
|
+
obj.$jspbMessageInstance = msg;
|
|
5101
|
+
}
|
|
5102
|
+
return obj;
|
|
5103
|
+
};
|
|
5104
|
+
}
|
|
5105
|
+
|
|
5106
|
+
|
|
5107
|
+
/**
|
|
5108
|
+
* Deserializes binary data (in protobuf wire format).
|
|
5109
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
5110
|
+
* @return {!proto.wechaty.puppet.MessageRecallResponse}
|
|
5111
|
+
*/
|
|
5112
|
+
proto.wechaty.puppet.MessageRecallResponse.deserializeBinary = function(bytes) {
|
|
5113
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
5114
|
+
var msg = new proto.wechaty.puppet.MessageRecallResponse;
|
|
5115
|
+
return proto.wechaty.puppet.MessageRecallResponse.deserializeBinaryFromReader(msg, reader);
|
|
5116
|
+
};
|
|
5117
|
+
|
|
5118
|
+
|
|
5119
|
+
/**
|
|
5120
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
5121
|
+
* given reader into the given message object.
|
|
5122
|
+
* @param {!proto.wechaty.puppet.MessageRecallResponse} msg The message object to deserialize into.
|
|
5123
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
5124
|
+
* @return {!proto.wechaty.puppet.MessageRecallResponse}
|
|
5125
|
+
*/
|
|
5126
|
+
proto.wechaty.puppet.MessageRecallResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
5127
|
+
while (reader.nextField()) {
|
|
5128
|
+
if (reader.isEndGroup()) {
|
|
5129
|
+
break;
|
|
5130
|
+
}
|
|
5131
|
+
var field = reader.getFieldNumber();
|
|
5132
|
+
switch (field) {
|
|
5133
|
+
case 1:
|
|
5134
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
5135
|
+
msg.setSuccess(value);
|
|
5136
|
+
break;
|
|
5137
|
+
default:
|
|
5138
|
+
reader.skipField();
|
|
5139
|
+
break;
|
|
5140
|
+
}
|
|
4640
5141
|
}
|
|
4641
5142
|
return msg;
|
|
4642
5143
|
};
|
|
@@ -4646,9 +5147,9 @@ proto.wechaty.puppet.MessageRecallRequest.deserializeBinaryFromReader = function
|
|
|
4646
5147
|
* Serializes the message to binary data (in protobuf wire format).
|
|
4647
5148
|
* @return {!Uint8Array}
|
|
4648
5149
|
*/
|
|
4649
|
-
proto.wechaty.puppet.
|
|
5150
|
+
proto.wechaty.puppet.MessageRecallResponse.prototype.serializeBinary = function() {
|
|
4650
5151
|
var writer = new jspb.BinaryWriter();
|
|
4651
|
-
proto.wechaty.puppet.
|
|
5152
|
+
proto.wechaty.puppet.MessageRecallResponse.serializeBinaryToWriter(this, writer);
|
|
4652
5153
|
return writer.getResultBuffer();
|
|
4653
5154
|
};
|
|
4654
5155
|
|
|
@@ -4656,37 +5157,197 @@ proto.wechaty.puppet.MessageRecallRequest.prototype.serializeBinary = function()
|
|
|
4656
5157
|
/**
|
|
4657
5158
|
* Serializes the given message to binary data (in protobuf wire
|
|
4658
5159
|
* format), writing to the given BinaryWriter.
|
|
4659
|
-
* @param {!proto.wechaty.puppet.
|
|
5160
|
+
* @param {!proto.wechaty.puppet.MessageRecallResponse} message
|
|
4660
5161
|
* @param {!jspb.BinaryWriter} writer
|
|
4661
5162
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4662
5163
|
*/
|
|
4663
|
-
proto.wechaty.puppet.
|
|
5164
|
+
proto.wechaty.puppet.MessageRecallResponse.serializeBinaryToWriter = function(message, writer) {
|
|
4664
5165
|
var f = undefined;
|
|
4665
|
-
f = message.
|
|
5166
|
+
f = message.getSuccess();
|
|
5167
|
+
if (f) {
|
|
5168
|
+
writer.writeBool(
|
|
5169
|
+
1,
|
|
5170
|
+
f
|
|
5171
|
+
);
|
|
5172
|
+
}
|
|
5173
|
+
};
|
|
5174
|
+
|
|
5175
|
+
|
|
5176
|
+
/**
|
|
5177
|
+
* optional bool success = 1;
|
|
5178
|
+
* @return {boolean}
|
|
5179
|
+
*/
|
|
5180
|
+
proto.wechaty.puppet.MessageRecallResponse.prototype.getSuccess = function() {
|
|
5181
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
|
|
5182
|
+
};
|
|
5183
|
+
|
|
5184
|
+
|
|
5185
|
+
/**
|
|
5186
|
+
* @param {boolean} value
|
|
5187
|
+
* @return {!proto.wechaty.puppet.MessageRecallResponse} returns this
|
|
5188
|
+
*/
|
|
5189
|
+
proto.wechaty.puppet.MessageRecallResponse.prototype.setSuccess = function(value) {
|
|
5190
|
+
return jspb.Message.setProto3BooleanField(this, 1, value);
|
|
5191
|
+
};
|
|
5192
|
+
|
|
5193
|
+
|
|
5194
|
+
|
|
5195
|
+
|
|
5196
|
+
|
|
5197
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5198
|
+
/**
|
|
5199
|
+
* Creates an object representation of this proto.
|
|
5200
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
5201
|
+
* Optional fields that are not set will be set to undefined.
|
|
5202
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
5203
|
+
* For the list of reserved names please see:
|
|
5204
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
5205
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
5206
|
+
* JSPB instance for transitional soy proto support:
|
|
5207
|
+
* http://goto/soy-param-migration
|
|
5208
|
+
* @return {!Object}
|
|
5209
|
+
*/
|
|
5210
|
+
proto.wechaty.puppet.MessageForwardRequest.prototype.toObject = function(opt_includeInstance) {
|
|
5211
|
+
return proto.wechaty.puppet.MessageForwardRequest.toObject(opt_includeInstance, this);
|
|
5212
|
+
};
|
|
5213
|
+
|
|
5214
|
+
|
|
5215
|
+
/**
|
|
5216
|
+
* Static version of the {@see toObject} method.
|
|
5217
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
5218
|
+
* the JSPB instance for transitional soy proto support:
|
|
5219
|
+
* http://goto/soy-param-migration
|
|
5220
|
+
* @param {!proto.wechaty.puppet.MessageForwardRequest} msg The msg instance to transform.
|
|
5221
|
+
* @return {!Object}
|
|
5222
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5223
|
+
*/
|
|
5224
|
+
proto.wechaty.puppet.MessageForwardRequest.toObject = function(includeInstance, msg) {
|
|
5225
|
+
var f, obj = {
|
|
5226
|
+
messageId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
5227
|
+
conversationId: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
5228
|
+
};
|
|
5229
|
+
|
|
5230
|
+
if (includeInstance) {
|
|
5231
|
+
obj.$jspbMessageInstance = msg;
|
|
5232
|
+
}
|
|
5233
|
+
return obj;
|
|
5234
|
+
};
|
|
5235
|
+
}
|
|
5236
|
+
|
|
5237
|
+
|
|
5238
|
+
/**
|
|
5239
|
+
* Deserializes binary data (in protobuf wire format).
|
|
5240
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
5241
|
+
* @return {!proto.wechaty.puppet.MessageForwardRequest}
|
|
5242
|
+
*/
|
|
5243
|
+
proto.wechaty.puppet.MessageForwardRequest.deserializeBinary = function(bytes) {
|
|
5244
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
5245
|
+
var msg = new proto.wechaty.puppet.MessageForwardRequest;
|
|
5246
|
+
return proto.wechaty.puppet.MessageForwardRequest.deserializeBinaryFromReader(msg, reader);
|
|
5247
|
+
};
|
|
5248
|
+
|
|
5249
|
+
|
|
5250
|
+
/**
|
|
5251
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
5252
|
+
* given reader into the given message object.
|
|
5253
|
+
* @param {!proto.wechaty.puppet.MessageForwardRequest} msg The message object to deserialize into.
|
|
5254
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
5255
|
+
* @return {!proto.wechaty.puppet.MessageForwardRequest}
|
|
5256
|
+
*/
|
|
5257
|
+
proto.wechaty.puppet.MessageForwardRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
5258
|
+
while (reader.nextField()) {
|
|
5259
|
+
if (reader.isEndGroup()) {
|
|
5260
|
+
break;
|
|
5261
|
+
}
|
|
5262
|
+
var field = reader.getFieldNumber();
|
|
5263
|
+
switch (field) {
|
|
5264
|
+
case 1:
|
|
5265
|
+
var value = /** @type {string} */ (reader.readString());
|
|
5266
|
+
msg.setMessageId(value);
|
|
5267
|
+
break;
|
|
5268
|
+
case 2:
|
|
5269
|
+
var value = /** @type {string} */ (reader.readString());
|
|
5270
|
+
msg.setConversationId(value);
|
|
5271
|
+
break;
|
|
5272
|
+
default:
|
|
5273
|
+
reader.skipField();
|
|
5274
|
+
break;
|
|
5275
|
+
}
|
|
5276
|
+
}
|
|
5277
|
+
return msg;
|
|
5278
|
+
};
|
|
5279
|
+
|
|
5280
|
+
|
|
5281
|
+
/**
|
|
5282
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
5283
|
+
* @return {!Uint8Array}
|
|
5284
|
+
*/
|
|
5285
|
+
proto.wechaty.puppet.MessageForwardRequest.prototype.serializeBinary = function() {
|
|
5286
|
+
var writer = new jspb.BinaryWriter();
|
|
5287
|
+
proto.wechaty.puppet.MessageForwardRequest.serializeBinaryToWriter(this, writer);
|
|
5288
|
+
return writer.getResultBuffer();
|
|
5289
|
+
};
|
|
5290
|
+
|
|
5291
|
+
|
|
5292
|
+
/**
|
|
5293
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
5294
|
+
* format), writing to the given BinaryWriter.
|
|
5295
|
+
* @param {!proto.wechaty.puppet.MessageForwardRequest} message
|
|
5296
|
+
* @param {!jspb.BinaryWriter} writer
|
|
5297
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5298
|
+
*/
|
|
5299
|
+
proto.wechaty.puppet.MessageForwardRequest.serializeBinaryToWriter = function(message, writer) {
|
|
5300
|
+
var f = undefined;
|
|
5301
|
+
f = message.getMessageId();
|
|
4666
5302
|
if (f.length > 0) {
|
|
4667
5303
|
writer.writeString(
|
|
4668
5304
|
1,
|
|
4669
5305
|
f
|
|
4670
5306
|
);
|
|
4671
5307
|
}
|
|
5308
|
+
f = message.getConversationId();
|
|
5309
|
+
if (f.length > 0) {
|
|
5310
|
+
writer.writeString(
|
|
5311
|
+
2,
|
|
5312
|
+
f
|
|
5313
|
+
);
|
|
5314
|
+
}
|
|
4672
5315
|
};
|
|
4673
5316
|
|
|
4674
5317
|
|
|
4675
5318
|
/**
|
|
4676
|
-
* optional string
|
|
5319
|
+
* optional string message_id = 1;
|
|
4677
5320
|
* @return {string}
|
|
4678
5321
|
*/
|
|
4679
|
-
proto.wechaty.puppet.
|
|
5322
|
+
proto.wechaty.puppet.MessageForwardRequest.prototype.getMessageId = function() {
|
|
4680
5323
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
4681
5324
|
};
|
|
4682
5325
|
|
|
4683
5326
|
|
|
4684
5327
|
/**
|
|
4685
5328
|
* @param {string} value
|
|
4686
|
-
* @return {!proto.wechaty.puppet.
|
|
5329
|
+
* @return {!proto.wechaty.puppet.MessageForwardRequest} returns this
|
|
5330
|
+
*/
|
|
5331
|
+
proto.wechaty.puppet.MessageForwardRequest.prototype.setMessageId = function(value) {
|
|
5332
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
5333
|
+
};
|
|
5334
|
+
|
|
5335
|
+
|
|
5336
|
+
/**
|
|
5337
|
+
* optional string conversation_id = 2;
|
|
5338
|
+
* @return {string}
|
|
5339
|
+
*/
|
|
5340
|
+
proto.wechaty.puppet.MessageForwardRequest.prototype.getConversationId = function() {
|
|
5341
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
5342
|
+
};
|
|
5343
|
+
|
|
5344
|
+
|
|
5345
|
+
/**
|
|
5346
|
+
* @param {string} value
|
|
5347
|
+
* @return {!proto.wechaty.puppet.MessageForwardRequest} returns this
|
|
4687
5348
|
*/
|
|
4688
|
-
proto.wechaty.puppet.
|
|
4689
|
-
return jspb.Message.setProto3StringField(this,
|
|
5349
|
+
proto.wechaty.puppet.MessageForwardRequest.prototype.setConversationId = function(value) {
|
|
5350
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
4690
5351
|
};
|
|
4691
5352
|
|
|
4692
5353
|
|
|
@@ -4706,8 +5367,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
4706
5367
|
* http://goto/soy-param-migration
|
|
4707
5368
|
* @return {!Object}
|
|
4708
5369
|
*/
|
|
4709
|
-
proto.wechaty.puppet.
|
|
4710
|
-
return proto.wechaty.puppet.
|
|
5370
|
+
proto.wechaty.puppet.MessageForwardResponse.prototype.toObject = function(opt_includeInstance) {
|
|
5371
|
+
return proto.wechaty.puppet.MessageForwardResponse.toObject(opt_includeInstance, this);
|
|
4711
5372
|
};
|
|
4712
5373
|
|
|
4713
5374
|
|
|
@@ -4716,13 +5377,14 @@ proto.wechaty.puppet.MessageRecallResponse.prototype.toObject = function(opt_inc
|
|
|
4716
5377
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4717
5378
|
* the JSPB instance for transitional soy proto support:
|
|
4718
5379
|
* http://goto/soy-param-migration
|
|
4719
|
-
* @param {!proto.wechaty.puppet.
|
|
5380
|
+
* @param {!proto.wechaty.puppet.MessageForwardResponse} msg The msg instance to transform.
|
|
4720
5381
|
* @return {!Object}
|
|
4721
5382
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4722
5383
|
*/
|
|
4723
|
-
proto.wechaty.puppet.
|
|
5384
|
+
proto.wechaty.puppet.MessageForwardResponse.toObject = function(includeInstance, msg) {
|
|
4724
5385
|
var f, obj = {
|
|
4725
|
-
|
|
5386
|
+
idStringValueDeprecated: (f = msg.getIdStringValueDeprecated()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
|
|
5387
|
+
id: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
4726
5388
|
};
|
|
4727
5389
|
|
|
4728
5390
|
if (includeInstance) {
|
|
@@ -4736,23 +5398,23 @@ proto.wechaty.puppet.MessageRecallResponse.toObject = function(includeInstance,
|
|
|
4736
5398
|
/**
|
|
4737
5399
|
* Deserializes binary data (in protobuf wire format).
|
|
4738
5400
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4739
|
-
* @return {!proto.wechaty.puppet.
|
|
5401
|
+
* @return {!proto.wechaty.puppet.MessageForwardResponse}
|
|
4740
5402
|
*/
|
|
4741
|
-
proto.wechaty.puppet.
|
|
5403
|
+
proto.wechaty.puppet.MessageForwardResponse.deserializeBinary = function(bytes) {
|
|
4742
5404
|
var reader = new jspb.BinaryReader(bytes);
|
|
4743
|
-
var msg = new proto.wechaty.puppet.
|
|
4744
|
-
return proto.wechaty.puppet.
|
|
5405
|
+
var msg = new proto.wechaty.puppet.MessageForwardResponse;
|
|
5406
|
+
return proto.wechaty.puppet.MessageForwardResponse.deserializeBinaryFromReader(msg, reader);
|
|
4745
5407
|
};
|
|
4746
5408
|
|
|
4747
5409
|
|
|
4748
5410
|
/**
|
|
4749
5411
|
* Deserializes binary data (in protobuf wire format) from the
|
|
4750
5412
|
* given reader into the given message object.
|
|
4751
|
-
* @param {!proto.wechaty.puppet.
|
|
5413
|
+
* @param {!proto.wechaty.puppet.MessageForwardResponse} msg The message object to deserialize into.
|
|
4752
5414
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4753
|
-
* @return {!proto.wechaty.puppet.
|
|
5415
|
+
* @return {!proto.wechaty.puppet.MessageForwardResponse}
|
|
4754
5416
|
*/
|
|
4755
|
-
proto.wechaty.puppet.
|
|
5417
|
+
proto.wechaty.puppet.MessageForwardResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
4756
5418
|
while (reader.nextField()) {
|
|
4757
5419
|
if (reader.isEndGroup()) {
|
|
4758
5420
|
break;
|
|
@@ -4760,8 +5422,13 @@ proto.wechaty.puppet.MessageRecallResponse.deserializeBinaryFromReader = functio
|
|
|
4760
5422
|
var field = reader.getFieldNumber();
|
|
4761
5423
|
switch (field) {
|
|
4762
5424
|
case 1:
|
|
4763
|
-
var value =
|
|
4764
|
-
|
|
5425
|
+
var value = new google_protobuf_wrappers_pb.StringValue;
|
|
5426
|
+
reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
|
|
5427
|
+
msg.setIdStringValueDeprecated(value);
|
|
5428
|
+
break;
|
|
5429
|
+
case 2:
|
|
5430
|
+
var value = /** @type {string} */ (reader.readString());
|
|
5431
|
+
msg.setId(value);
|
|
4765
5432
|
break;
|
|
4766
5433
|
default:
|
|
4767
5434
|
reader.skipField();
|
|
@@ -4776,9 +5443,9 @@ proto.wechaty.puppet.MessageRecallResponse.deserializeBinaryFromReader = functio
|
|
|
4776
5443
|
* Serializes the message to binary data (in protobuf wire format).
|
|
4777
5444
|
* @return {!Uint8Array}
|
|
4778
5445
|
*/
|
|
4779
|
-
proto.wechaty.puppet.
|
|
5446
|
+
proto.wechaty.puppet.MessageForwardResponse.prototype.serializeBinary = function() {
|
|
4780
5447
|
var writer = new jspb.BinaryWriter();
|
|
4781
|
-
proto.wechaty.puppet.
|
|
5448
|
+
proto.wechaty.puppet.MessageForwardResponse.serializeBinaryToWriter(this, writer);
|
|
4782
5449
|
return writer.getResultBuffer();
|
|
4783
5450
|
};
|
|
4784
5451
|
|
|
@@ -4786,16 +5453,24 @@ proto.wechaty.puppet.MessageRecallResponse.prototype.serializeBinary = function(
|
|
|
4786
5453
|
/**
|
|
4787
5454
|
* Serializes the given message to binary data (in protobuf wire
|
|
4788
5455
|
* format), writing to the given BinaryWriter.
|
|
4789
|
-
* @param {!proto.wechaty.puppet.
|
|
5456
|
+
* @param {!proto.wechaty.puppet.MessageForwardResponse} message
|
|
4790
5457
|
* @param {!jspb.BinaryWriter} writer
|
|
4791
5458
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4792
5459
|
*/
|
|
4793
|
-
proto.wechaty.puppet.
|
|
5460
|
+
proto.wechaty.puppet.MessageForwardResponse.serializeBinaryToWriter = function(message, writer) {
|
|
4794
5461
|
var f = undefined;
|
|
4795
|
-
f = message.
|
|
4796
|
-
if (f) {
|
|
4797
|
-
writer.
|
|
5462
|
+
f = message.getIdStringValueDeprecated();
|
|
5463
|
+
if (f != null) {
|
|
5464
|
+
writer.writeMessage(
|
|
4798
5465
|
1,
|
|
5466
|
+
f,
|
|
5467
|
+
google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
|
|
5468
|
+
);
|
|
5469
|
+
}
|
|
5470
|
+
f = message.getId();
|
|
5471
|
+
if (f.length > 0) {
|
|
5472
|
+
writer.writeString(
|
|
5473
|
+
2,
|
|
4799
5474
|
f
|
|
4800
5475
|
);
|
|
4801
5476
|
}
|
|
@@ -4803,20 +5478,57 @@ proto.wechaty.puppet.MessageRecallResponse.serializeBinaryToWriter = function(me
|
|
|
4803
5478
|
|
|
4804
5479
|
|
|
4805
5480
|
/**
|
|
4806
|
-
* optional
|
|
5481
|
+
* optional google.protobuf.StringValue id_string_value_deprecated = 1;
|
|
5482
|
+
* @return {?proto.google.protobuf.StringValue}
|
|
5483
|
+
*/
|
|
5484
|
+
proto.wechaty.puppet.MessageForwardResponse.prototype.getIdStringValueDeprecated = function() {
|
|
5485
|
+
return /** @type{?proto.google.protobuf.StringValue} */ (
|
|
5486
|
+
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 1));
|
|
5487
|
+
};
|
|
5488
|
+
|
|
5489
|
+
|
|
5490
|
+
/**
|
|
5491
|
+
* @param {?proto.google.protobuf.StringValue|undefined} value
|
|
5492
|
+
* @return {!proto.wechaty.puppet.MessageForwardResponse} returns this
|
|
5493
|
+
*/
|
|
5494
|
+
proto.wechaty.puppet.MessageForwardResponse.prototype.setIdStringValueDeprecated = function(value) {
|
|
5495
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
5496
|
+
};
|
|
5497
|
+
|
|
5498
|
+
|
|
5499
|
+
/**
|
|
5500
|
+
* Clears the message field making it undefined.
|
|
5501
|
+
* @return {!proto.wechaty.puppet.MessageForwardResponse} returns this
|
|
5502
|
+
*/
|
|
5503
|
+
proto.wechaty.puppet.MessageForwardResponse.prototype.clearIdStringValueDeprecated = function() {
|
|
5504
|
+
return this.setIdStringValueDeprecated(undefined);
|
|
5505
|
+
};
|
|
5506
|
+
|
|
5507
|
+
|
|
5508
|
+
/**
|
|
5509
|
+
* Returns whether this field is set.
|
|
4807
5510
|
* @return {boolean}
|
|
4808
5511
|
*/
|
|
4809
|
-
proto.wechaty.puppet.
|
|
4810
|
-
return
|
|
5512
|
+
proto.wechaty.puppet.MessageForwardResponse.prototype.hasIdStringValueDeprecated = function() {
|
|
5513
|
+
return jspb.Message.getField(this, 1) != null;
|
|
4811
5514
|
};
|
|
4812
5515
|
|
|
4813
5516
|
|
|
4814
5517
|
/**
|
|
4815
|
-
*
|
|
4816
|
-
* @return {
|
|
5518
|
+
* optional string id = 2;
|
|
5519
|
+
* @return {string}
|
|
4817
5520
|
*/
|
|
4818
|
-
proto.wechaty.puppet.
|
|
4819
|
-
return jspb.Message.
|
|
5521
|
+
proto.wechaty.puppet.MessageForwardResponse.prototype.getId = function() {
|
|
5522
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
5523
|
+
};
|
|
5524
|
+
|
|
5525
|
+
|
|
5526
|
+
/**
|
|
5527
|
+
* @param {string} value
|
|
5528
|
+
* @return {!proto.wechaty.puppet.MessageForwardResponse} returns this
|
|
5529
|
+
*/
|
|
5530
|
+
proto.wechaty.puppet.MessageForwardResponse.prototype.setId = function(value) {
|
|
5531
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
4820
5532
|
};
|
|
4821
5533
|
|
|
4822
5534
|
|
|
@@ -4836,8 +5548,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
4836
5548
|
* http://goto/soy-param-migration
|
|
4837
5549
|
* @return {!Object}
|
|
4838
5550
|
*/
|
|
4839
|
-
proto.wechaty.puppet.
|
|
4840
|
-
return proto.wechaty.puppet.
|
|
5551
|
+
proto.wechaty.puppet.MessageLocationRequest.prototype.toObject = function(opt_includeInstance) {
|
|
5552
|
+
return proto.wechaty.puppet.MessageLocationRequest.toObject(opt_includeInstance, this);
|
|
4841
5553
|
};
|
|
4842
5554
|
|
|
4843
5555
|
|
|
@@ -4846,14 +5558,13 @@ proto.wechaty.puppet.MessageForwardRequest.prototype.toObject = function(opt_inc
|
|
|
4846
5558
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4847
5559
|
* the JSPB instance for transitional soy proto support:
|
|
4848
5560
|
* http://goto/soy-param-migration
|
|
4849
|
-
* @param {!proto.wechaty.puppet.
|
|
5561
|
+
* @param {!proto.wechaty.puppet.MessageLocationRequest} msg The msg instance to transform.
|
|
4850
5562
|
* @return {!Object}
|
|
4851
5563
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4852
5564
|
*/
|
|
4853
|
-
proto.wechaty.puppet.
|
|
5565
|
+
proto.wechaty.puppet.MessageLocationRequest.toObject = function(includeInstance, msg) {
|
|
4854
5566
|
var f, obj = {
|
|
4855
|
-
|
|
4856
|
-
conversationId: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
5567
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
4857
5568
|
};
|
|
4858
5569
|
|
|
4859
5570
|
if (includeInstance) {
|
|
@@ -4867,23 +5578,23 @@ proto.wechaty.puppet.MessageForwardRequest.toObject = function(includeInstance,
|
|
|
4867
5578
|
/**
|
|
4868
5579
|
* Deserializes binary data (in protobuf wire format).
|
|
4869
5580
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4870
|
-
* @return {!proto.wechaty.puppet.
|
|
5581
|
+
* @return {!proto.wechaty.puppet.MessageLocationRequest}
|
|
4871
5582
|
*/
|
|
4872
|
-
proto.wechaty.puppet.
|
|
5583
|
+
proto.wechaty.puppet.MessageLocationRequest.deserializeBinary = function(bytes) {
|
|
4873
5584
|
var reader = new jspb.BinaryReader(bytes);
|
|
4874
|
-
var msg = new proto.wechaty.puppet.
|
|
4875
|
-
return proto.wechaty.puppet.
|
|
5585
|
+
var msg = new proto.wechaty.puppet.MessageLocationRequest;
|
|
5586
|
+
return proto.wechaty.puppet.MessageLocationRequest.deserializeBinaryFromReader(msg, reader);
|
|
4876
5587
|
};
|
|
4877
5588
|
|
|
4878
5589
|
|
|
4879
5590
|
/**
|
|
4880
5591
|
* Deserializes binary data (in protobuf wire format) from the
|
|
4881
5592
|
* given reader into the given message object.
|
|
4882
|
-
* @param {!proto.wechaty.puppet.
|
|
5593
|
+
* @param {!proto.wechaty.puppet.MessageLocationRequest} msg The message object to deserialize into.
|
|
4883
5594
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4884
|
-
* @return {!proto.wechaty.puppet.
|
|
5595
|
+
* @return {!proto.wechaty.puppet.MessageLocationRequest}
|
|
4885
5596
|
*/
|
|
4886
|
-
proto.wechaty.puppet.
|
|
5597
|
+
proto.wechaty.puppet.MessageLocationRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
4887
5598
|
while (reader.nextField()) {
|
|
4888
5599
|
if (reader.isEndGroup()) {
|
|
4889
5600
|
break;
|
|
@@ -4892,11 +5603,7 @@ proto.wechaty.puppet.MessageForwardRequest.deserializeBinaryFromReader = functio
|
|
|
4892
5603
|
switch (field) {
|
|
4893
5604
|
case 1:
|
|
4894
5605
|
var value = /** @type {string} */ (reader.readString());
|
|
4895
|
-
msg.
|
|
4896
|
-
break;
|
|
4897
|
-
case 2:
|
|
4898
|
-
var value = /** @type {string} */ (reader.readString());
|
|
4899
|
-
msg.setConversationId(value);
|
|
5606
|
+
msg.setId(value);
|
|
4900
5607
|
break;
|
|
4901
5608
|
default:
|
|
4902
5609
|
reader.skipField();
|
|
@@ -4911,9 +5618,9 @@ proto.wechaty.puppet.MessageForwardRequest.deserializeBinaryFromReader = functio
|
|
|
4911
5618
|
* Serializes the message to binary data (in protobuf wire format).
|
|
4912
5619
|
* @return {!Uint8Array}
|
|
4913
5620
|
*/
|
|
4914
|
-
proto.wechaty.puppet.
|
|
5621
|
+
proto.wechaty.puppet.MessageLocationRequest.prototype.serializeBinary = function() {
|
|
4915
5622
|
var writer = new jspb.BinaryWriter();
|
|
4916
|
-
proto.wechaty.puppet.
|
|
5623
|
+
proto.wechaty.puppet.MessageLocationRequest.serializeBinaryToWriter(this, writer);
|
|
4917
5624
|
return writer.getResultBuffer();
|
|
4918
5625
|
};
|
|
4919
5626
|
|
|
@@ -4921,65 +5628,40 @@ proto.wechaty.puppet.MessageForwardRequest.prototype.serializeBinary = function(
|
|
|
4921
5628
|
/**
|
|
4922
5629
|
* Serializes the given message to binary data (in protobuf wire
|
|
4923
5630
|
* format), writing to the given BinaryWriter.
|
|
4924
|
-
* @param {!proto.wechaty.puppet.
|
|
5631
|
+
* @param {!proto.wechaty.puppet.MessageLocationRequest} message
|
|
4925
5632
|
* @param {!jspb.BinaryWriter} writer
|
|
4926
5633
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4927
5634
|
*/
|
|
4928
|
-
proto.wechaty.puppet.
|
|
5635
|
+
proto.wechaty.puppet.MessageLocationRequest.serializeBinaryToWriter = function(message, writer) {
|
|
4929
5636
|
var f = undefined;
|
|
4930
|
-
f = message.
|
|
5637
|
+
f = message.getId();
|
|
4931
5638
|
if (f.length > 0) {
|
|
4932
5639
|
writer.writeString(
|
|
4933
5640
|
1,
|
|
4934
5641
|
f
|
|
4935
5642
|
);
|
|
4936
5643
|
}
|
|
4937
|
-
f = message.getConversationId();
|
|
4938
|
-
if (f.length > 0) {
|
|
4939
|
-
writer.writeString(
|
|
4940
|
-
2,
|
|
4941
|
-
f
|
|
4942
|
-
);
|
|
4943
|
-
}
|
|
4944
5644
|
};
|
|
4945
5645
|
|
|
4946
5646
|
|
|
4947
5647
|
/**
|
|
4948
|
-
* optional string
|
|
5648
|
+
* optional string id = 1;
|
|
4949
5649
|
* @return {string}
|
|
4950
5650
|
*/
|
|
4951
|
-
proto.wechaty.puppet.
|
|
5651
|
+
proto.wechaty.puppet.MessageLocationRequest.prototype.getId = function() {
|
|
4952
5652
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
4953
5653
|
};
|
|
4954
5654
|
|
|
4955
5655
|
|
|
4956
5656
|
/**
|
|
4957
5657
|
* @param {string} value
|
|
4958
|
-
* @return {!proto.wechaty.puppet.
|
|
5658
|
+
* @return {!proto.wechaty.puppet.MessageLocationRequest} returns this
|
|
4959
5659
|
*/
|
|
4960
|
-
proto.wechaty.puppet.
|
|
5660
|
+
proto.wechaty.puppet.MessageLocationRequest.prototype.setId = function(value) {
|
|
4961
5661
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
4962
5662
|
};
|
|
4963
5663
|
|
|
4964
5664
|
|
|
4965
|
-
/**
|
|
4966
|
-
* optional string conversation_id = 2;
|
|
4967
|
-
* @return {string}
|
|
4968
|
-
*/
|
|
4969
|
-
proto.wechaty.puppet.MessageForwardRequest.prototype.getConversationId = function() {
|
|
4970
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
4971
|
-
};
|
|
4972
|
-
|
|
4973
|
-
|
|
4974
|
-
/**
|
|
4975
|
-
* @param {string} value
|
|
4976
|
-
* @return {!proto.wechaty.puppet.MessageForwardRequest} returns this
|
|
4977
|
-
*/
|
|
4978
|
-
proto.wechaty.puppet.MessageForwardRequest.prototype.setConversationId = function(value) {
|
|
4979
|
-
return jspb.Message.setProto3StringField(this, 2, value);
|
|
4980
|
-
};
|
|
4981
|
-
|
|
4982
|
-
|
|
4983
5665
|
|
|
4984
5666
|
|
|
4985
5667
|
|
|
@@ -4996,8 +5678,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
4996
5678
|
* http://goto/soy-param-migration
|
|
4997
5679
|
* @return {!Object}
|
|
4998
5680
|
*/
|
|
4999
|
-
proto.wechaty.puppet.
|
|
5000
|
-
return proto.wechaty.puppet.
|
|
5681
|
+
proto.wechaty.puppet.MessageLocationResponse.prototype.toObject = function(opt_includeInstance) {
|
|
5682
|
+
return proto.wechaty.puppet.MessageLocationResponse.toObject(opt_includeInstance, this);
|
|
5001
5683
|
};
|
|
5002
5684
|
|
|
5003
5685
|
|
|
@@ -5006,14 +5688,13 @@ proto.wechaty.puppet.MessageForwardResponse.prototype.toObject = function(opt_in
|
|
|
5006
5688
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
5007
5689
|
* the JSPB instance for transitional soy proto support:
|
|
5008
5690
|
* http://goto/soy-param-migration
|
|
5009
|
-
* @param {!proto.wechaty.puppet.
|
|
5691
|
+
* @param {!proto.wechaty.puppet.MessageLocationResponse} msg The msg instance to transform.
|
|
5010
5692
|
* @return {!Object}
|
|
5011
5693
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5012
5694
|
*/
|
|
5013
|
-
proto.wechaty.puppet.
|
|
5695
|
+
proto.wechaty.puppet.MessageLocationResponse.toObject = function(includeInstance, msg) {
|
|
5014
5696
|
var f, obj = {
|
|
5015
|
-
|
|
5016
|
-
id: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
5697
|
+
location: (f = msg.getLocation()) && wechaty_puppet_location_pb.LocationPayload.toObject(includeInstance, f)
|
|
5017
5698
|
};
|
|
5018
5699
|
|
|
5019
5700
|
if (includeInstance) {
|
|
@@ -5027,23 +5708,23 @@ proto.wechaty.puppet.MessageForwardResponse.toObject = function(includeInstance,
|
|
|
5027
5708
|
/**
|
|
5028
5709
|
* Deserializes binary data (in protobuf wire format).
|
|
5029
5710
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
5030
|
-
* @return {!proto.wechaty.puppet.
|
|
5711
|
+
* @return {!proto.wechaty.puppet.MessageLocationResponse}
|
|
5031
5712
|
*/
|
|
5032
|
-
proto.wechaty.puppet.
|
|
5713
|
+
proto.wechaty.puppet.MessageLocationResponse.deserializeBinary = function(bytes) {
|
|
5033
5714
|
var reader = new jspb.BinaryReader(bytes);
|
|
5034
|
-
var msg = new proto.wechaty.puppet.
|
|
5035
|
-
return proto.wechaty.puppet.
|
|
5715
|
+
var msg = new proto.wechaty.puppet.MessageLocationResponse;
|
|
5716
|
+
return proto.wechaty.puppet.MessageLocationResponse.deserializeBinaryFromReader(msg, reader);
|
|
5036
5717
|
};
|
|
5037
5718
|
|
|
5038
5719
|
|
|
5039
5720
|
/**
|
|
5040
5721
|
* Deserializes binary data (in protobuf wire format) from the
|
|
5041
5722
|
* given reader into the given message object.
|
|
5042
|
-
* @param {!proto.wechaty.puppet.
|
|
5723
|
+
* @param {!proto.wechaty.puppet.MessageLocationResponse} msg The message object to deserialize into.
|
|
5043
5724
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
5044
|
-
* @return {!proto.wechaty.puppet.
|
|
5725
|
+
* @return {!proto.wechaty.puppet.MessageLocationResponse}
|
|
5045
5726
|
*/
|
|
5046
|
-
proto.wechaty.puppet.
|
|
5727
|
+
proto.wechaty.puppet.MessageLocationResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
5047
5728
|
while (reader.nextField()) {
|
|
5048
5729
|
if (reader.isEndGroup()) {
|
|
5049
5730
|
break;
|
|
@@ -5051,13 +5732,9 @@ proto.wechaty.puppet.MessageForwardResponse.deserializeBinaryFromReader = functi
|
|
|
5051
5732
|
var field = reader.getFieldNumber();
|
|
5052
5733
|
switch (field) {
|
|
5053
5734
|
case 1:
|
|
5054
|
-
var value = new
|
|
5055
|
-
reader.readMessage(value,
|
|
5056
|
-
msg.
|
|
5057
|
-
break;
|
|
5058
|
-
case 2:
|
|
5059
|
-
var value = /** @type {string} */ (reader.readString());
|
|
5060
|
-
msg.setId(value);
|
|
5735
|
+
var value = new wechaty_puppet_location_pb.LocationPayload;
|
|
5736
|
+
reader.readMessage(value,wechaty_puppet_location_pb.LocationPayload.deserializeBinaryFromReader);
|
|
5737
|
+
msg.setLocation(value);
|
|
5061
5738
|
break;
|
|
5062
5739
|
default:
|
|
5063
5740
|
reader.skipField();
|
|
@@ -5072,9 +5749,9 @@ proto.wechaty.puppet.MessageForwardResponse.deserializeBinaryFromReader = functi
|
|
|
5072
5749
|
* Serializes the message to binary data (in protobuf wire format).
|
|
5073
5750
|
* @return {!Uint8Array}
|
|
5074
5751
|
*/
|
|
5075
|
-
proto.wechaty.puppet.
|
|
5752
|
+
proto.wechaty.puppet.MessageLocationResponse.prototype.serializeBinary = function() {
|
|
5076
5753
|
var writer = new jspb.BinaryWriter();
|
|
5077
|
-
proto.wechaty.puppet.
|
|
5754
|
+
proto.wechaty.puppet.MessageLocationResponse.serializeBinaryToWriter(this, writer);
|
|
5078
5755
|
return writer.getResultBuffer();
|
|
5079
5756
|
};
|
|
5080
5757
|
|
|
@@ -5082,55 +5759,48 @@ proto.wechaty.puppet.MessageForwardResponse.prototype.serializeBinary = function
|
|
|
5082
5759
|
/**
|
|
5083
5760
|
* Serializes the given message to binary data (in protobuf wire
|
|
5084
5761
|
* format), writing to the given BinaryWriter.
|
|
5085
|
-
* @param {!proto.wechaty.puppet.
|
|
5762
|
+
* @param {!proto.wechaty.puppet.MessageLocationResponse} message
|
|
5086
5763
|
* @param {!jspb.BinaryWriter} writer
|
|
5087
5764
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5088
5765
|
*/
|
|
5089
|
-
proto.wechaty.puppet.
|
|
5766
|
+
proto.wechaty.puppet.MessageLocationResponse.serializeBinaryToWriter = function(message, writer) {
|
|
5090
5767
|
var f = undefined;
|
|
5091
|
-
f = message.
|
|
5768
|
+
f = message.getLocation();
|
|
5092
5769
|
if (f != null) {
|
|
5093
5770
|
writer.writeMessage(
|
|
5094
5771
|
1,
|
|
5095
5772
|
f,
|
|
5096
|
-
|
|
5097
|
-
);
|
|
5098
|
-
}
|
|
5099
|
-
f = message.getId();
|
|
5100
|
-
if (f.length > 0) {
|
|
5101
|
-
writer.writeString(
|
|
5102
|
-
2,
|
|
5103
|
-
f
|
|
5773
|
+
wechaty_puppet_location_pb.LocationPayload.serializeBinaryToWriter
|
|
5104
5774
|
);
|
|
5105
5775
|
}
|
|
5106
5776
|
};
|
|
5107
5777
|
|
|
5108
5778
|
|
|
5109
5779
|
/**
|
|
5110
|
-
* optional
|
|
5111
|
-
* @return {?proto.
|
|
5780
|
+
* optional LocationPayload location = 1;
|
|
5781
|
+
* @return {?proto.wechaty.puppet.LocationPayload}
|
|
5112
5782
|
*/
|
|
5113
|
-
proto.wechaty.puppet.
|
|
5114
|
-
return /** @type{?proto.
|
|
5115
|
-
jspb.Message.getWrapperField(this,
|
|
5783
|
+
proto.wechaty.puppet.MessageLocationResponse.prototype.getLocation = function() {
|
|
5784
|
+
return /** @type{?proto.wechaty.puppet.LocationPayload} */ (
|
|
5785
|
+
jspb.Message.getWrapperField(this, wechaty_puppet_location_pb.LocationPayload, 1));
|
|
5116
5786
|
};
|
|
5117
5787
|
|
|
5118
5788
|
|
|
5119
5789
|
/**
|
|
5120
|
-
* @param {?proto.
|
|
5121
|
-
* @return {!proto.wechaty.puppet.
|
|
5790
|
+
* @param {?proto.wechaty.puppet.LocationPayload|undefined} value
|
|
5791
|
+
* @return {!proto.wechaty.puppet.MessageLocationResponse} returns this
|
|
5122
5792
|
*/
|
|
5123
|
-
proto.wechaty.puppet.
|
|
5793
|
+
proto.wechaty.puppet.MessageLocationResponse.prototype.setLocation = function(value) {
|
|
5124
5794
|
return jspb.Message.setWrapperField(this, 1, value);
|
|
5125
5795
|
};
|
|
5126
5796
|
|
|
5127
5797
|
|
|
5128
5798
|
/**
|
|
5129
5799
|
* Clears the message field making it undefined.
|
|
5130
|
-
* @return {!proto.wechaty.puppet.
|
|
5800
|
+
* @return {!proto.wechaty.puppet.MessageLocationResponse} returns this
|
|
5131
5801
|
*/
|
|
5132
|
-
proto.wechaty.puppet.
|
|
5133
|
-
return this.
|
|
5802
|
+
proto.wechaty.puppet.MessageLocationResponse.prototype.clearLocation = function() {
|
|
5803
|
+
return this.setLocation(undefined);
|
|
5134
5804
|
};
|
|
5135
5805
|
|
|
5136
5806
|
|
|
@@ -5138,29 +5808,11 @@ proto.wechaty.puppet.MessageForwardResponse.prototype.clearIdStringValueDeprecat
|
|
|
5138
5808
|
* Returns whether this field is set.
|
|
5139
5809
|
* @return {boolean}
|
|
5140
5810
|
*/
|
|
5141
|
-
proto.wechaty.puppet.
|
|
5811
|
+
proto.wechaty.puppet.MessageLocationResponse.prototype.hasLocation = function() {
|
|
5142
5812
|
return jspb.Message.getField(this, 1) != null;
|
|
5143
5813
|
};
|
|
5144
5814
|
|
|
5145
5815
|
|
|
5146
|
-
/**
|
|
5147
|
-
* optional string id = 2;
|
|
5148
|
-
* @return {string}
|
|
5149
|
-
*/
|
|
5150
|
-
proto.wechaty.puppet.MessageForwardResponse.prototype.getId = function() {
|
|
5151
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
5152
|
-
};
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
-
/**
|
|
5156
|
-
* @param {string} value
|
|
5157
|
-
* @return {!proto.wechaty.puppet.MessageForwardResponse} returns this
|
|
5158
|
-
*/
|
|
5159
|
-
proto.wechaty.puppet.MessageForwardResponse.prototype.setId = function(value) {
|
|
5160
|
-
return jspb.Message.setProto3StringField(this, 2, value);
|
|
5161
|
-
};
|
|
5162
|
-
|
|
5163
|
-
|
|
5164
5816
|
|
|
5165
5817
|
|
|
5166
5818
|
|
|
@@ -5177,8 +5829,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
5177
5829
|
* http://goto/soy-param-migration
|
|
5178
5830
|
* @return {!Object}
|
|
5179
5831
|
*/
|
|
5180
|
-
proto.wechaty.puppet.
|
|
5181
|
-
return proto.wechaty.puppet.
|
|
5832
|
+
proto.wechaty.puppet.MessageSendLocationRequest.prototype.toObject = function(opt_includeInstance) {
|
|
5833
|
+
return proto.wechaty.puppet.MessageSendLocationRequest.toObject(opt_includeInstance, this);
|
|
5182
5834
|
};
|
|
5183
5835
|
|
|
5184
5836
|
|
|
@@ -5187,13 +5839,14 @@ proto.wechaty.puppet.MessageLocationRequest.prototype.toObject = function(opt_in
|
|
|
5187
5839
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
5188
5840
|
* the JSPB instance for transitional soy proto support:
|
|
5189
5841
|
* http://goto/soy-param-migration
|
|
5190
|
-
* @param {!proto.wechaty.puppet.
|
|
5842
|
+
* @param {!proto.wechaty.puppet.MessageSendLocationRequest} msg The msg instance to transform.
|
|
5191
5843
|
* @return {!Object}
|
|
5192
5844
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5193
5845
|
*/
|
|
5194
|
-
proto.wechaty.puppet.
|
|
5846
|
+
proto.wechaty.puppet.MessageSendLocationRequest.toObject = function(includeInstance, msg) {
|
|
5195
5847
|
var f, obj = {
|
|
5196
|
-
|
|
5848
|
+
conversationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
5849
|
+
location: (f = msg.getLocation()) && wechaty_puppet_location_pb.LocationPayload.toObject(includeInstance, f)
|
|
5197
5850
|
};
|
|
5198
5851
|
|
|
5199
5852
|
if (includeInstance) {
|
|
@@ -5207,23 +5860,23 @@ proto.wechaty.puppet.MessageLocationRequest.toObject = function(includeInstance,
|
|
|
5207
5860
|
/**
|
|
5208
5861
|
* Deserializes binary data (in protobuf wire format).
|
|
5209
5862
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
5210
|
-
* @return {!proto.wechaty.puppet.
|
|
5863
|
+
* @return {!proto.wechaty.puppet.MessageSendLocationRequest}
|
|
5211
5864
|
*/
|
|
5212
|
-
proto.wechaty.puppet.
|
|
5865
|
+
proto.wechaty.puppet.MessageSendLocationRequest.deserializeBinary = function(bytes) {
|
|
5213
5866
|
var reader = new jspb.BinaryReader(bytes);
|
|
5214
|
-
var msg = new proto.wechaty.puppet.
|
|
5215
|
-
return proto.wechaty.puppet.
|
|
5867
|
+
var msg = new proto.wechaty.puppet.MessageSendLocationRequest;
|
|
5868
|
+
return proto.wechaty.puppet.MessageSendLocationRequest.deserializeBinaryFromReader(msg, reader);
|
|
5216
5869
|
};
|
|
5217
5870
|
|
|
5218
5871
|
|
|
5219
5872
|
/**
|
|
5220
5873
|
* Deserializes binary data (in protobuf wire format) from the
|
|
5221
5874
|
* given reader into the given message object.
|
|
5222
|
-
* @param {!proto.wechaty.puppet.
|
|
5875
|
+
* @param {!proto.wechaty.puppet.MessageSendLocationRequest} msg The message object to deserialize into.
|
|
5223
5876
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
5224
|
-
* @return {!proto.wechaty.puppet.
|
|
5877
|
+
* @return {!proto.wechaty.puppet.MessageSendLocationRequest}
|
|
5225
5878
|
*/
|
|
5226
|
-
proto.wechaty.puppet.
|
|
5879
|
+
proto.wechaty.puppet.MessageSendLocationRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
5227
5880
|
while (reader.nextField()) {
|
|
5228
5881
|
if (reader.isEndGroup()) {
|
|
5229
5882
|
break;
|
|
@@ -5232,7 +5885,12 @@ proto.wechaty.puppet.MessageLocationRequest.deserializeBinaryFromReader = functi
|
|
|
5232
5885
|
switch (field) {
|
|
5233
5886
|
case 1:
|
|
5234
5887
|
var value = /** @type {string} */ (reader.readString());
|
|
5235
|
-
msg.
|
|
5888
|
+
msg.setConversationId(value);
|
|
5889
|
+
break;
|
|
5890
|
+
case 2:
|
|
5891
|
+
var value = new wechaty_puppet_location_pb.LocationPayload;
|
|
5892
|
+
reader.readMessage(value,wechaty_puppet_location_pb.LocationPayload.deserializeBinaryFromReader);
|
|
5893
|
+
msg.setLocation(value);
|
|
5236
5894
|
break;
|
|
5237
5895
|
default:
|
|
5238
5896
|
reader.skipField();
|
|
@@ -5247,9 +5905,9 @@ proto.wechaty.puppet.MessageLocationRequest.deserializeBinaryFromReader = functi
|
|
|
5247
5905
|
* Serializes the message to binary data (in protobuf wire format).
|
|
5248
5906
|
* @return {!Uint8Array}
|
|
5249
5907
|
*/
|
|
5250
|
-
proto.wechaty.puppet.
|
|
5908
|
+
proto.wechaty.puppet.MessageSendLocationRequest.prototype.serializeBinary = function() {
|
|
5251
5909
|
var writer = new jspb.BinaryWriter();
|
|
5252
|
-
proto.wechaty.puppet.
|
|
5910
|
+
proto.wechaty.puppet.MessageSendLocationRequest.serializeBinaryToWriter(this, writer);
|
|
5253
5911
|
return writer.getResultBuffer();
|
|
5254
5912
|
};
|
|
5255
5913
|
|
|
@@ -5257,40 +5915,85 @@ proto.wechaty.puppet.MessageLocationRequest.prototype.serializeBinary = function
|
|
|
5257
5915
|
/**
|
|
5258
5916
|
* Serializes the given message to binary data (in protobuf wire
|
|
5259
5917
|
* format), writing to the given BinaryWriter.
|
|
5260
|
-
* @param {!proto.wechaty.puppet.
|
|
5918
|
+
* @param {!proto.wechaty.puppet.MessageSendLocationRequest} message
|
|
5261
5919
|
* @param {!jspb.BinaryWriter} writer
|
|
5262
5920
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5263
5921
|
*/
|
|
5264
|
-
proto.wechaty.puppet.
|
|
5922
|
+
proto.wechaty.puppet.MessageSendLocationRequest.serializeBinaryToWriter = function(message, writer) {
|
|
5265
5923
|
var f = undefined;
|
|
5266
|
-
f = message.
|
|
5924
|
+
f = message.getConversationId();
|
|
5267
5925
|
if (f.length > 0) {
|
|
5268
5926
|
writer.writeString(
|
|
5269
5927
|
1,
|
|
5270
5928
|
f
|
|
5271
5929
|
);
|
|
5272
5930
|
}
|
|
5931
|
+
f = message.getLocation();
|
|
5932
|
+
if (f != null) {
|
|
5933
|
+
writer.writeMessage(
|
|
5934
|
+
2,
|
|
5935
|
+
f,
|
|
5936
|
+
wechaty_puppet_location_pb.LocationPayload.serializeBinaryToWriter
|
|
5937
|
+
);
|
|
5938
|
+
}
|
|
5273
5939
|
};
|
|
5274
5940
|
|
|
5275
5941
|
|
|
5276
5942
|
/**
|
|
5277
|
-
* optional string
|
|
5943
|
+
* optional string conversation_id = 1;
|
|
5278
5944
|
* @return {string}
|
|
5279
5945
|
*/
|
|
5280
|
-
proto.wechaty.puppet.
|
|
5946
|
+
proto.wechaty.puppet.MessageSendLocationRequest.prototype.getConversationId = function() {
|
|
5281
5947
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
5282
5948
|
};
|
|
5283
5949
|
|
|
5284
5950
|
|
|
5285
5951
|
/**
|
|
5286
5952
|
* @param {string} value
|
|
5287
|
-
* @return {!proto.wechaty.puppet.
|
|
5953
|
+
* @return {!proto.wechaty.puppet.MessageSendLocationRequest} returns this
|
|
5288
5954
|
*/
|
|
5289
|
-
proto.wechaty.puppet.
|
|
5955
|
+
proto.wechaty.puppet.MessageSendLocationRequest.prototype.setConversationId = function(value) {
|
|
5290
5956
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
5291
5957
|
};
|
|
5292
5958
|
|
|
5293
5959
|
|
|
5960
|
+
/**
|
|
5961
|
+
* optional LocationPayload location = 2;
|
|
5962
|
+
* @return {?proto.wechaty.puppet.LocationPayload}
|
|
5963
|
+
*/
|
|
5964
|
+
proto.wechaty.puppet.MessageSendLocationRequest.prototype.getLocation = function() {
|
|
5965
|
+
return /** @type{?proto.wechaty.puppet.LocationPayload} */ (
|
|
5966
|
+
jspb.Message.getWrapperField(this, wechaty_puppet_location_pb.LocationPayload, 2));
|
|
5967
|
+
};
|
|
5968
|
+
|
|
5969
|
+
|
|
5970
|
+
/**
|
|
5971
|
+
* @param {?proto.wechaty.puppet.LocationPayload|undefined} value
|
|
5972
|
+
* @return {!proto.wechaty.puppet.MessageSendLocationRequest} returns this
|
|
5973
|
+
*/
|
|
5974
|
+
proto.wechaty.puppet.MessageSendLocationRequest.prototype.setLocation = function(value) {
|
|
5975
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
5976
|
+
};
|
|
5977
|
+
|
|
5978
|
+
|
|
5979
|
+
/**
|
|
5980
|
+
* Clears the message field making it undefined.
|
|
5981
|
+
* @return {!proto.wechaty.puppet.MessageSendLocationRequest} returns this
|
|
5982
|
+
*/
|
|
5983
|
+
proto.wechaty.puppet.MessageSendLocationRequest.prototype.clearLocation = function() {
|
|
5984
|
+
return this.setLocation(undefined);
|
|
5985
|
+
};
|
|
5986
|
+
|
|
5987
|
+
|
|
5988
|
+
/**
|
|
5989
|
+
* Returns whether this field is set.
|
|
5990
|
+
* @return {boolean}
|
|
5991
|
+
*/
|
|
5992
|
+
proto.wechaty.puppet.MessageSendLocationRequest.prototype.hasLocation = function() {
|
|
5993
|
+
return jspb.Message.getField(this, 2) != null;
|
|
5994
|
+
};
|
|
5995
|
+
|
|
5996
|
+
|
|
5294
5997
|
|
|
5295
5998
|
|
|
5296
5999
|
|
|
@@ -5307,8 +6010,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
5307
6010
|
* http://goto/soy-param-migration
|
|
5308
6011
|
* @return {!Object}
|
|
5309
6012
|
*/
|
|
5310
|
-
proto.wechaty.puppet.
|
|
5311
|
-
return proto.wechaty.puppet.
|
|
6013
|
+
proto.wechaty.puppet.MessageSendLocationResponse.prototype.toObject = function(opt_includeInstance) {
|
|
6014
|
+
return proto.wechaty.puppet.MessageSendLocationResponse.toObject(opt_includeInstance, this);
|
|
5312
6015
|
};
|
|
5313
6016
|
|
|
5314
6017
|
|
|
@@ -5317,13 +6020,13 @@ proto.wechaty.puppet.MessageLocationResponse.prototype.toObject = function(opt_i
|
|
|
5317
6020
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
5318
6021
|
* the JSPB instance for transitional soy proto support:
|
|
5319
6022
|
* http://goto/soy-param-migration
|
|
5320
|
-
* @param {!proto.wechaty.puppet.
|
|
6023
|
+
* @param {!proto.wechaty.puppet.MessageSendLocationResponse} msg The msg instance to transform.
|
|
5321
6024
|
* @return {!Object}
|
|
5322
6025
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5323
6026
|
*/
|
|
5324
|
-
proto.wechaty.puppet.
|
|
6027
|
+
proto.wechaty.puppet.MessageSendLocationResponse.toObject = function(includeInstance, msg) {
|
|
5325
6028
|
var f, obj = {
|
|
5326
|
-
|
|
6029
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
5327
6030
|
};
|
|
5328
6031
|
|
|
5329
6032
|
if (includeInstance) {
|
|
@@ -5337,23 +6040,23 @@ proto.wechaty.puppet.MessageLocationResponse.toObject = function(includeInstance
|
|
|
5337
6040
|
/**
|
|
5338
6041
|
* Deserializes binary data (in protobuf wire format).
|
|
5339
6042
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
5340
|
-
* @return {!proto.wechaty.puppet.
|
|
6043
|
+
* @return {!proto.wechaty.puppet.MessageSendLocationResponse}
|
|
5341
6044
|
*/
|
|
5342
|
-
proto.wechaty.puppet.
|
|
6045
|
+
proto.wechaty.puppet.MessageSendLocationResponse.deserializeBinary = function(bytes) {
|
|
5343
6046
|
var reader = new jspb.BinaryReader(bytes);
|
|
5344
|
-
var msg = new proto.wechaty.puppet.
|
|
5345
|
-
return proto.wechaty.puppet.
|
|
6047
|
+
var msg = new proto.wechaty.puppet.MessageSendLocationResponse;
|
|
6048
|
+
return proto.wechaty.puppet.MessageSendLocationResponse.deserializeBinaryFromReader(msg, reader);
|
|
5346
6049
|
};
|
|
5347
6050
|
|
|
5348
6051
|
|
|
5349
6052
|
/**
|
|
5350
6053
|
* Deserializes binary data (in protobuf wire format) from the
|
|
5351
6054
|
* given reader into the given message object.
|
|
5352
|
-
* @param {!proto.wechaty.puppet.
|
|
6055
|
+
* @param {!proto.wechaty.puppet.MessageSendLocationResponse} msg The message object to deserialize into.
|
|
5353
6056
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
5354
|
-
* @return {!proto.wechaty.puppet.
|
|
6057
|
+
* @return {!proto.wechaty.puppet.MessageSendLocationResponse}
|
|
5355
6058
|
*/
|
|
5356
|
-
proto.wechaty.puppet.
|
|
6059
|
+
proto.wechaty.puppet.MessageSendLocationResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
5357
6060
|
while (reader.nextField()) {
|
|
5358
6061
|
if (reader.isEndGroup()) {
|
|
5359
6062
|
break;
|
|
@@ -5361,9 +6064,8 @@ proto.wechaty.puppet.MessageLocationResponse.deserializeBinaryFromReader = funct
|
|
|
5361
6064
|
var field = reader.getFieldNumber();
|
|
5362
6065
|
switch (field) {
|
|
5363
6066
|
case 1:
|
|
5364
|
-
var value =
|
|
5365
|
-
|
|
5366
|
-
msg.setLocation(value);
|
|
6067
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6068
|
+
msg.setId(value);
|
|
5367
6069
|
break;
|
|
5368
6070
|
default:
|
|
5369
6071
|
reader.skipField();
|
|
@@ -5378,9 +6080,9 @@ proto.wechaty.puppet.MessageLocationResponse.deserializeBinaryFromReader = funct
|
|
|
5378
6080
|
* Serializes the message to binary data (in protobuf wire format).
|
|
5379
6081
|
* @return {!Uint8Array}
|
|
5380
6082
|
*/
|
|
5381
|
-
proto.wechaty.puppet.
|
|
6083
|
+
proto.wechaty.puppet.MessageSendLocationResponse.prototype.serializeBinary = function() {
|
|
5382
6084
|
var writer = new jspb.BinaryWriter();
|
|
5383
|
-
proto.wechaty.puppet.
|
|
6085
|
+
proto.wechaty.puppet.MessageSendLocationResponse.serializeBinaryToWriter(this, writer);
|
|
5384
6086
|
return writer.getResultBuffer();
|
|
5385
6087
|
};
|
|
5386
6088
|
|
|
@@ -5388,57 +6090,37 @@ proto.wechaty.puppet.MessageLocationResponse.prototype.serializeBinary = functio
|
|
|
5388
6090
|
/**
|
|
5389
6091
|
* Serializes the given message to binary data (in protobuf wire
|
|
5390
6092
|
* format), writing to the given BinaryWriter.
|
|
5391
|
-
* @param {!proto.wechaty.puppet.
|
|
6093
|
+
* @param {!proto.wechaty.puppet.MessageSendLocationResponse} message
|
|
5392
6094
|
* @param {!jspb.BinaryWriter} writer
|
|
5393
6095
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5394
6096
|
*/
|
|
5395
|
-
proto.wechaty.puppet.
|
|
6097
|
+
proto.wechaty.puppet.MessageSendLocationResponse.serializeBinaryToWriter = function(message, writer) {
|
|
5396
6098
|
var f = undefined;
|
|
5397
|
-
f = message.
|
|
5398
|
-
if (f
|
|
5399
|
-
writer.
|
|
6099
|
+
f = message.getId();
|
|
6100
|
+
if (f.length > 0) {
|
|
6101
|
+
writer.writeString(
|
|
5400
6102
|
1,
|
|
5401
|
-
f
|
|
5402
|
-
wechaty_puppet_location_pb.LocationPayload.serializeBinaryToWriter
|
|
6103
|
+
f
|
|
5403
6104
|
);
|
|
5404
6105
|
}
|
|
5405
6106
|
};
|
|
5406
6107
|
|
|
5407
6108
|
|
|
5408
6109
|
/**
|
|
5409
|
-
* optional
|
|
5410
|
-
* @return {
|
|
5411
|
-
*/
|
|
5412
|
-
proto.wechaty.puppet.MessageLocationResponse.prototype.getLocation = function() {
|
|
5413
|
-
return /** @type{?proto.wechaty.puppet.LocationPayload} */ (
|
|
5414
|
-
jspb.Message.getWrapperField(this, wechaty_puppet_location_pb.LocationPayload, 1));
|
|
5415
|
-
};
|
|
5416
|
-
|
|
5417
|
-
|
|
5418
|
-
/**
|
|
5419
|
-
* @param {?proto.wechaty.puppet.LocationPayload|undefined} value
|
|
5420
|
-
* @return {!proto.wechaty.puppet.MessageLocationResponse} returns this
|
|
5421
|
-
*/
|
|
5422
|
-
proto.wechaty.puppet.MessageLocationResponse.prototype.setLocation = function(value) {
|
|
5423
|
-
return jspb.Message.setWrapperField(this, 1, value);
|
|
5424
|
-
};
|
|
5425
|
-
|
|
5426
|
-
|
|
5427
|
-
/**
|
|
5428
|
-
* Clears the message field making it undefined.
|
|
5429
|
-
* @return {!proto.wechaty.puppet.MessageLocationResponse} returns this
|
|
6110
|
+
* optional string id = 1;
|
|
6111
|
+
* @return {string}
|
|
5430
6112
|
*/
|
|
5431
|
-
proto.wechaty.puppet.
|
|
5432
|
-
return
|
|
6113
|
+
proto.wechaty.puppet.MessageSendLocationResponse.prototype.getId = function() {
|
|
6114
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
5433
6115
|
};
|
|
5434
6116
|
|
|
5435
6117
|
|
|
5436
6118
|
/**
|
|
5437
|
-
*
|
|
5438
|
-
* @return {
|
|
6119
|
+
* @param {string} value
|
|
6120
|
+
* @return {!proto.wechaty.puppet.MessageSendLocationResponse} returns this
|
|
5439
6121
|
*/
|
|
5440
|
-
proto.wechaty.puppet.
|
|
5441
|
-
return jspb.Message.
|
|
6122
|
+
proto.wechaty.puppet.MessageSendLocationResponse.prototype.setId = function(value) {
|
|
6123
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
5442
6124
|
};
|
|
5443
6125
|
|
|
5444
6126
|
|
|
@@ -5458,8 +6140,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
5458
6140
|
* http://goto/soy-param-migration
|
|
5459
6141
|
* @return {!Object}
|
|
5460
6142
|
*/
|
|
5461
|
-
proto.wechaty.puppet.
|
|
5462
|
-
return proto.wechaty.puppet.
|
|
6143
|
+
proto.wechaty.puppet.MessageSendChannelRequest.prototype.toObject = function(opt_includeInstance) {
|
|
6144
|
+
return proto.wechaty.puppet.MessageSendChannelRequest.toObject(opt_includeInstance, this);
|
|
5463
6145
|
};
|
|
5464
6146
|
|
|
5465
6147
|
|
|
@@ -5468,14 +6150,14 @@ proto.wechaty.puppet.MessageSendLocationRequest.prototype.toObject = function(op
|
|
|
5468
6150
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
5469
6151
|
* the JSPB instance for transitional soy proto support:
|
|
5470
6152
|
* http://goto/soy-param-migration
|
|
5471
|
-
* @param {!proto.wechaty.puppet.
|
|
6153
|
+
* @param {!proto.wechaty.puppet.MessageSendChannelRequest} msg The msg instance to transform.
|
|
5472
6154
|
* @return {!Object}
|
|
5473
6155
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5474
6156
|
*/
|
|
5475
|
-
proto.wechaty.puppet.
|
|
6157
|
+
proto.wechaty.puppet.MessageSendChannelRequest.toObject = function(includeInstance, msg) {
|
|
5476
6158
|
var f, obj = {
|
|
5477
6159
|
conversationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
5478
|
-
|
|
6160
|
+
channel: (f = msg.getChannel()) && wechaty_puppet_channel_pb.ChannelPayload.toObject(includeInstance, f)
|
|
5479
6161
|
};
|
|
5480
6162
|
|
|
5481
6163
|
if (includeInstance) {
|
|
@@ -5489,23 +6171,23 @@ proto.wechaty.puppet.MessageSendLocationRequest.toObject = function(includeInsta
|
|
|
5489
6171
|
/**
|
|
5490
6172
|
* Deserializes binary data (in protobuf wire format).
|
|
5491
6173
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
5492
|
-
* @return {!proto.wechaty.puppet.
|
|
6174
|
+
* @return {!proto.wechaty.puppet.MessageSendChannelRequest}
|
|
5493
6175
|
*/
|
|
5494
|
-
proto.wechaty.puppet.
|
|
6176
|
+
proto.wechaty.puppet.MessageSendChannelRequest.deserializeBinary = function(bytes) {
|
|
5495
6177
|
var reader = new jspb.BinaryReader(bytes);
|
|
5496
|
-
var msg = new proto.wechaty.puppet.
|
|
5497
|
-
return proto.wechaty.puppet.
|
|
6178
|
+
var msg = new proto.wechaty.puppet.MessageSendChannelRequest;
|
|
6179
|
+
return proto.wechaty.puppet.MessageSendChannelRequest.deserializeBinaryFromReader(msg, reader);
|
|
5498
6180
|
};
|
|
5499
6181
|
|
|
5500
6182
|
|
|
5501
6183
|
/**
|
|
5502
6184
|
* Deserializes binary data (in protobuf wire format) from the
|
|
5503
6185
|
* given reader into the given message object.
|
|
5504
|
-
* @param {!proto.wechaty.puppet.
|
|
6186
|
+
* @param {!proto.wechaty.puppet.MessageSendChannelRequest} msg The message object to deserialize into.
|
|
5505
6187
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
5506
|
-
* @return {!proto.wechaty.puppet.
|
|
6188
|
+
* @return {!proto.wechaty.puppet.MessageSendChannelRequest}
|
|
5507
6189
|
*/
|
|
5508
|
-
proto.wechaty.puppet.
|
|
6190
|
+
proto.wechaty.puppet.MessageSendChannelRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
5509
6191
|
while (reader.nextField()) {
|
|
5510
6192
|
if (reader.isEndGroup()) {
|
|
5511
6193
|
break;
|
|
@@ -5517,9 +6199,9 @@ proto.wechaty.puppet.MessageSendLocationRequest.deserializeBinaryFromReader = fu
|
|
|
5517
6199
|
msg.setConversationId(value);
|
|
5518
6200
|
break;
|
|
5519
6201
|
case 2:
|
|
5520
|
-
var value = new
|
|
5521
|
-
reader.readMessage(value,
|
|
5522
|
-
msg.
|
|
6202
|
+
var value = new wechaty_puppet_channel_pb.ChannelPayload;
|
|
6203
|
+
reader.readMessage(value,wechaty_puppet_channel_pb.ChannelPayload.deserializeBinaryFromReader);
|
|
6204
|
+
msg.setChannel(value);
|
|
5523
6205
|
break;
|
|
5524
6206
|
default:
|
|
5525
6207
|
reader.skipField();
|
|
@@ -5534,9 +6216,9 @@ proto.wechaty.puppet.MessageSendLocationRequest.deserializeBinaryFromReader = fu
|
|
|
5534
6216
|
* Serializes the message to binary data (in protobuf wire format).
|
|
5535
6217
|
* @return {!Uint8Array}
|
|
5536
6218
|
*/
|
|
5537
|
-
proto.wechaty.puppet.
|
|
6219
|
+
proto.wechaty.puppet.MessageSendChannelRequest.prototype.serializeBinary = function() {
|
|
5538
6220
|
var writer = new jspb.BinaryWriter();
|
|
5539
|
-
proto.wechaty.puppet.
|
|
6221
|
+
proto.wechaty.puppet.MessageSendChannelRequest.serializeBinaryToWriter(this, writer);
|
|
5540
6222
|
return writer.getResultBuffer();
|
|
5541
6223
|
};
|
|
5542
6224
|
|
|
@@ -5544,11 +6226,11 @@ proto.wechaty.puppet.MessageSendLocationRequest.prototype.serializeBinary = func
|
|
|
5544
6226
|
/**
|
|
5545
6227
|
* Serializes the given message to binary data (in protobuf wire
|
|
5546
6228
|
* format), writing to the given BinaryWriter.
|
|
5547
|
-
* @param {!proto.wechaty.puppet.
|
|
6229
|
+
* @param {!proto.wechaty.puppet.MessageSendChannelRequest} message
|
|
5548
6230
|
* @param {!jspb.BinaryWriter} writer
|
|
5549
6231
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5550
6232
|
*/
|
|
5551
|
-
proto.wechaty.puppet.
|
|
6233
|
+
proto.wechaty.puppet.MessageSendChannelRequest.serializeBinaryToWriter = function(message, writer) {
|
|
5552
6234
|
var f = undefined;
|
|
5553
6235
|
f = message.getConversationId();
|
|
5554
6236
|
if (f.length > 0) {
|
|
@@ -5557,12 +6239,12 @@ proto.wechaty.puppet.MessageSendLocationRequest.serializeBinaryToWriter = functi
|
|
|
5557
6239
|
f
|
|
5558
6240
|
);
|
|
5559
6241
|
}
|
|
5560
|
-
f = message.
|
|
6242
|
+
f = message.getChannel();
|
|
5561
6243
|
if (f != null) {
|
|
5562
6244
|
writer.writeMessage(
|
|
5563
6245
|
2,
|
|
5564
6246
|
f,
|
|
5565
|
-
|
|
6247
|
+
wechaty_puppet_channel_pb.ChannelPayload.serializeBinaryToWriter
|
|
5566
6248
|
);
|
|
5567
6249
|
}
|
|
5568
6250
|
};
|
|
@@ -5572,45 +6254,45 @@ proto.wechaty.puppet.MessageSendLocationRequest.serializeBinaryToWriter = functi
|
|
|
5572
6254
|
* optional string conversation_id = 1;
|
|
5573
6255
|
* @return {string}
|
|
5574
6256
|
*/
|
|
5575
|
-
proto.wechaty.puppet.
|
|
6257
|
+
proto.wechaty.puppet.MessageSendChannelRequest.prototype.getConversationId = function() {
|
|
5576
6258
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
5577
6259
|
};
|
|
5578
6260
|
|
|
5579
6261
|
|
|
5580
6262
|
/**
|
|
5581
6263
|
* @param {string} value
|
|
5582
|
-
* @return {!proto.wechaty.puppet.
|
|
6264
|
+
* @return {!proto.wechaty.puppet.MessageSendChannelRequest} returns this
|
|
5583
6265
|
*/
|
|
5584
|
-
proto.wechaty.puppet.
|
|
6266
|
+
proto.wechaty.puppet.MessageSendChannelRequest.prototype.setConversationId = function(value) {
|
|
5585
6267
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
5586
6268
|
};
|
|
5587
6269
|
|
|
5588
6270
|
|
|
5589
6271
|
/**
|
|
5590
|
-
* optional
|
|
5591
|
-
* @return {?proto.wechaty.puppet.
|
|
6272
|
+
* optional ChannelPayload channel = 2;
|
|
6273
|
+
* @return {?proto.wechaty.puppet.ChannelPayload}
|
|
5592
6274
|
*/
|
|
5593
|
-
proto.wechaty.puppet.
|
|
5594
|
-
return /** @type{?proto.wechaty.puppet.
|
|
5595
|
-
jspb.Message.getWrapperField(this,
|
|
6275
|
+
proto.wechaty.puppet.MessageSendChannelRequest.prototype.getChannel = function() {
|
|
6276
|
+
return /** @type{?proto.wechaty.puppet.ChannelPayload} */ (
|
|
6277
|
+
jspb.Message.getWrapperField(this, wechaty_puppet_channel_pb.ChannelPayload, 2));
|
|
5596
6278
|
};
|
|
5597
6279
|
|
|
5598
6280
|
|
|
5599
6281
|
/**
|
|
5600
|
-
* @param {?proto.wechaty.puppet.
|
|
5601
|
-
* @return {!proto.wechaty.puppet.
|
|
6282
|
+
* @param {?proto.wechaty.puppet.ChannelPayload|undefined} value
|
|
6283
|
+
* @return {!proto.wechaty.puppet.MessageSendChannelRequest} returns this
|
|
5602
6284
|
*/
|
|
5603
|
-
proto.wechaty.puppet.
|
|
6285
|
+
proto.wechaty.puppet.MessageSendChannelRequest.prototype.setChannel = function(value) {
|
|
5604
6286
|
return jspb.Message.setWrapperField(this, 2, value);
|
|
5605
6287
|
};
|
|
5606
6288
|
|
|
5607
6289
|
|
|
5608
6290
|
/**
|
|
5609
6291
|
* Clears the message field making it undefined.
|
|
5610
|
-
* @return {!proto.wechaty.puppet.
|
|
6292
|
+
* @return {!proto.wechaty.puppet.MessageSendChannelRequest} returns this
|
|
5611
6293
|
*/
|
|
5612
|
-
proto.wechaty.puppet.
|
|
5613
|
-
return this.
|
|
6294
|
+
proto.wechaty.puppet.MessageSendChannelRequest.prototype.clearChannel = function() {
|
|
6295
|
+
return this.setChannel(undefined);
|
|
5614
6296
|
};
|
|
5615
6297
|
|
|
5616
6298
|
|
|
@@ -5618,7 +6300,7 @@ proto.wechaty.puppet.MessageSendLocationRequest.prototype.clearLocation = functi
|
|
|
5618
6300
|
* Returns whether this field is set.
|
|
5619
6301
|
* @return {boolean}
|
|
5620
6302
|
*/
|
|
5621
|
-
proto.wechaty.puppet.
|
|
6303
|
+
proto.wechaty.puppet.MessageSendChannelRequest.prototype.hasChannel = function() {
|
|
5622
6304
|
return jspb.Message.getField(this, 2) != null;
|
|
5623
6305
|
};
|
|
5624
6306
|
|
|
@@ -5639,8 +6321,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
5639
6321
|
* http://goto/soy-param-migration
|
|
5640
6322
|
* @return {!Object}
|
|
5641
6323
|
*/
|
|
5642
|
-
proto.wechaty.puppet.
|
|
5643
|
-
return proto.wechaty.puppet.
|
|
6324
|
+
proto.wechaty.puppet.MessageSendChannelResponse.prototype.toObject = function(opt_includeInstance) {
|
|
6325
|
+
return proto.wechaty.puppet.MessageSendChannelResponse.toObject(opt_includeInstance, this);
|
|
5644
6326
|
};
|
|
5645
6327
|
|
|
5646
6328
|
|
|
@@ -5649,11 +6331,11 @@ proto.wechaty.puppet.MessageSendLocationResponse.prototype.toObject = function(o
|
|
|
5649
6331
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
5650
6332
|
* the JSPB instance for transitional soy proto support:
|
|
5651
6333
|
* http://goto/soy-param-migration
|
|
5652
|
-
* @param {!proto.wechaty.puppet.
|
|
6334
|
+
* @param {!proto.wechaty.puppet.MessageSendChannelResponse} msg The msg instance to transform.
|
|
5653
6335
|
* @return {!Object}
|
|
5654
6336
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5655
6337
|
*/
|
|
5656
|
-
proto.wechaty.puppet.
|
|
6338
|
+
proto.wechaty.puppet.MessageSendChannelResponse.toObject = function(includeInstance, msg) {
|
|
5657
6339
|
var f, obj = {
|
|
5658
6340
|
id: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
5659
6341
|
};
|
|
@@ -5669,23 +6351,23 @@ proto.wechaty.puppet.MessageSendLocationResponse.toObject = function(includeInst
|
|
|
5669
6351
|
/**
|
|
5670
6352
|
* Deserializes binary data (in protobuf wire format).
|
|
5671
6353
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
5672
|
-
* @return {!proto.wechaty.puppet.
|
|
6354
|
+
* @return {!proto.wechaty.puppet.MessageSendChannelResponse}
|
|
5673
6355
|
*/
|
|
5674
|
-
proto.wechaty.puppet.
|
|
6356
|
+
proto.wechaty.puppet.MessageSendChannelResponse.deserializeBinary = function(bytes) {
|
|
5675
6357
|
var reader = new jspb.BinaryReader(bytes);
|
|
5676
|
-
var msg = new proto.wechaty.puppet.
|
|
5677
|
-
return proto.wechaty.puppet.
|
|
6358
|
+
var msg = new proto.wechaty.puppet.MessageSendChannelResponse;
|
|
6359
|
+
return proto.wechaty.puppet.MessageSendChannelResponse.deserializeBinaryFromReader(msg, reader);
|
|
5678
6360
|
};
|
|
5679
6361
|
|
|
5680
6362
|
|
|
5681
6363
|
/**
|
|
5682
6364
|
* Deserializes binary data (in protobuf wire format) from the
|
|
5683
6365
|
* given reader into the given message object.
|
|
5684
|
-
* @param {!proto.wechaty.puppet.
|
|
6366
|
+
* @param {!proto.wechaty.puppet.MessageSendChannelResponse} msg The message object to deserialize into.
|
|
5685
6367
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
5686
|
-
* @return {!proto.wechaty.puppet.
|
|
6368
|
+
* @return {!proto.wechaty.puppet.MessageSendChannelResponse}
|
|
5687
6369
|
*/
|
|
5688
|
-
proto.wechaty.puppet.
|
|
6370
|
+
proto.wechaty.puppet.MessageSendChannelResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
5689
6371
|
while (reader.nextField()) {
|
|
5690
6372
|
if (reader.isEndGroup()) {
|
|
5691
6373
|
break;
|
|
@@ -5709,9 +6391,9 @@ proto.wechaty.puppet.MessageSendLocationResponse.deserializeBinaryFromReader = f
|
|
|
5709
6391
|
* Serializes the message to binary data (in protobuf wire format).
|
|
5710
6392
|
* @return {!Uint8Array}
|
|
5711
6393
|
*/
|
|
5712
|
-
proto.wechaty.puppet.
|
|
6394
|
+
proto.wechaty.puppet.MessageSendChannelResponse.prototype.serializeBinary = function() {
|
|
5713
6395
|
var writer = new jspb.BinaryWriter();
|
|
5714
|
-
proto.wechaty.puppet.
|
|
6396
|
+
proto.wechaty.puppet.MessageSendChannelResponse.serializeBinaryToWriter(this, writer);
|
|
5715
6397
|
return writer.getResultBuffer();
|
|
5716
6398
|
};
|
|
5717
6399
|
|
|
@@ -5719,11 +6401,11 @@ proto.wechaty.puppet.MessageSendLocationResponse.prototype.serializeBinary = fun
|
|
|
5719
6401
|
/**
|
|
5720
6402
|
* Serializes the given message to binary data (in protobuf wire
|
|
5721
6403
|
* format), writing to the given BinaryWriter.
|
|
5722
|
-
* @param {!proto.wechaty.puppet.
|
|
6404
|
+
* @param {!proto.wechaty.puppet.MessageSendChannelResponse} message
|
|
5723
6405
|
* @param {!jspb.BinaryWriter} writer
|
|
5724
6406
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5725
6407
|
*/
|
|
5726
|
-
proto.wechaty.puppet.
|
|
6408
|
+
proto.wechaty.puppet.MessageSendChannelResponse.serializeBinaryToWriter = function(message, writer) {
|
|
5727
6409
|
var f = undefined;
|
|
5728
6410
|
f = message.getId();
|
|
5729
6411
|
if (f.length > 0) {
|
|
@@ -5739,16 +6421,16 @@ proto.wechaty.puppet.MessageSendLocationResponse.serializeBinaryToWriter = funct
|
|
|
5739
6421
|
* optional string id = 1;
|
|
5740
6422
|
* @return {string}
|
|
5741
6423
|
*/
|
|
5742
|
-
proto.wechaty.puppet.
|
|
6424
|
+
proto.wechaty.puppet.MessageSendChannelResponse.prototype.getId = function() {
|
|
5743
6425
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
5744
6426
|
};
|
|
5745
6427
|
|
|
5746
6428
|
|
|
5747
6429
|
/**
|
|
5748
6430
|
* @param {string} value
|
|
5749
|
-
* @return {!proto.wechaty.puppet.
|
|
6431
|
+
* @return {!proto.wechaty.puppet.MessageSendChannelResponse} returns this
|
|
5750
6432
|
*/
|
|
5751
|
-
proto.wechaty.puppet.
|
|
6433
|
+
proto.wechaty.puppet.MessageSendChannelResponse.prototype.setId = function(value) {
|
|
5752
6434
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
5753
6435
|
};
|
|
5754
6436
|
|
|
@@ -5771,7 +6453,8 @@ proto.wechaty.puppet.MessageType = {
|
|
|
5771
6453
|
MESSAGE_TYPE_TRANSFER: 11,
|
|
5772
6454
|
MESSAGE_TYPE_RED_ENVELOPE: 12,
|
|
5773
6455
|
MESSAGE_TYPE_RECALLED: 13,
|
|
5774
|
-
MESSAGE_TYPE_URL: 14
|
|
6456
|
+
MESSAGE_TYPE_URL: 14,
|
|
6457
|
+
MESSAGE_TYPE_CHANNEL: 15
|
|
5775
6458
|
};
|
|
5776
6459
|
|
|
5777
6460
|
goog.object.extend(exports, proto.wechaty.puppet);
|