@juzi/wechaty-grpc 1.0.0 → 1.0.3
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 +102 -0
- package/dist/cjs/out/wechaty/puppet/message_pb.js +1500 -721
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +82 -4
- package/dist/cjs/out/wechaty/puppet.swagger.json +129 -4
- 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 +21 -3
- 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 +102 -0
- package/dist/esm/out/wechaty/puppet/message_pb.js +1500 -721
- package/dist/esm/out/wechaty/puppet.openapi.yaml +82 -4
- package/dist/esm/out/wechaty/puppet.swagger.json +129 -4
- 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 +21 -3
- 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 +102 -0
- package/out/wechaty/puppet/message_pb.js +1500 -721
- package/out/wechaty/puppet.openapi.yaml +82 -4
- package/out/wechaty/puppet.swagger.json +129 -4
- 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
|
|
|
@@ -866,7 +956,8 @@ proto.wechaty.puppet.MessagePayloadResponse.toObject = function(includeInstance,
|
|
|
866
956
|
roomId: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
867
957
|
listenerId: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
868
958
|
mentionIdsList: (f = jspb.Message.getRepeatedField(msg, 9)) == null ? undefined : f,
|
|
869
|
-
receiveTime: (f = msg.getReceiveTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
|
|
959
|
+
receiveTime: (f = msg.getReceiveTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
960
|
+
quoteId: jspb.Message.getFieldWithDefault(msg, 11, "")
|
|
870
961
|
};
|
|
871
962
|
|
|
872
963
|
if (includeInstance) {
|
|
@@ -944,6 +1035,10 @@ proto.wechaty.puppet.MessagePayloadResponse.deserializeBinaryFromReader = functi
|
|
|
944
1035
|
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
945
1036
|
msg.setReceiveTime(value);
|
|
946
1037
|
break;
|
|
1038
|
+
case 11:
|
|
1039
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1040
|
+
msg.setQuoteId(value);
|
|
1041
|
+
break;
|
|
947
1042
|
default:
|
|
948
1043
|
reader.skipField();
|
|
949
1044
|
break;
|
|
@@ -1044,6 +1139,13 @@ proto.wechaty.puppet.MessagePayloadResponse.serializeBinaryToWriter = function(m
|
|
|
1044
1139
|
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
1045
1140
|
);
|
|
1046
1141
|
}
|
|
1142
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 11));
|
|
1143
|
+
if (f != null) {
|
|
1144
|
+
writer.writeString(
|
|
1145
|
+
11,
|
|
1146
|
+
f
|
|
1147
|
+
);
|
|
1148
|
+
}
|
|
1047
1149
|
};
|
|
1048
1150
|
|
|
1049
1151
|
|
|
@@ -1265,6 +1367,42 @@ proto.wechaty.puppet.MessagePayloadResponse.prototype.hasReceiveTime = function(
|
|
|
1265
1367
|
};
|
|
1266
1368
|
|
|
1267
1369
|
|
|
1370
|
+
/**
|
|
1371
|
+
* optional string quote_id = 11;
|
|
1372
|
+
* @return {string}
|
|
1373
|
+
*/
|
|
1374
|
+
proto.wechaty.puppet.MessagePayloadResponse.prototype.getQuoteId = function() {
|
|
1375
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
|
|
1376
|
+
};
|
|
1377
|
+
|
|
1378
|
+
|
|
1379
|
+
/**
|
|
1380
|
+
* @param {string} value
|
|
1381
|
+
* @return {!proto.wechaty.puppet.MessagePayloadResponse} returns this
|
|
1382
|
+
*/
|
|
1383
|
+
proto.wechaty.puppet.MessagePayloadResponse.prototype.setQuoteId = function(value) {
|
|
1384
|
+
return jspb.Message.setField(this, 11, value);
|
|
1385
|
+
};
|
|
1386
|
+
|
|
1387
|
+
|
|
1388
|
+
/**
|
|
1389
|
+
* Clears the field making it undefined.
|
|
1390
|
+
* @return {!proto.wechaty.puppet.MessagePayloadResponse} returns this
|
|
1391
|
+
*/
|
|
1392
|
+
proto.wechaty.puppet.MessagePayloadResponse.prototype.clearQuoteId = function() {
|
|
1393
|
+
return jspb.Message.setField(this, 11, undefined);
|
|
1394
|
+
};
|
|
1395
|
+
|
|
1396
|
+
|
|
1397
|
+
/**
|
|
1398
|
+
* Returns whether this field is set.
|
|
1399
|
+
* @return {boolean}
|
|
1400
|
+
*/
|
|
1401
|
+
proto.wechaty.puppet.MessagePayloadResponse.prototype.hasQuoteId = function() {
|
|
1402
|
+
return jspb.Message.getField(this, 11) != null;
|
|
1403
|
+
};
|
|
1404
|
+
|
|
1405
|
+
|
|
1268
1406
|
|
|
1269
1407
|
|
|
1270
1408
|
|
|
@@ -2713,8 +2851,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
2713
2851
|
* http://goto/soy-param-migration
|
|
2714
2852
|
* @return {!Object}
|
|
2715
2853
|
*/
|
|
2716
|
-
proto.wechaty.puppet.
|
|
2717
|
-
return proto.wechaty.puppet.
|
|
2854
|
+
proto.wechaty.puppet.MessageChannelRequest.prototype.toObject = function(opt_includeInstance) {
|
|
2855
|
+
return proto.wechaty.puppet.MessageChannelRequest.toObject(opt_includeInstance, this);
|
|
2718
2856
|
};
|
|
2719
2857
|
|
|
2720
2858
|
|
|
@@ -2723,14 +2861,13 @@ proto.wechaty.puppet.MessageSendContactRequest.prototype.toObject = function(opt
|
|
|
2723
2861
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2724
2862
|
* the JSPB instance for transitional soy proto support:
|
|
2725
2863
|
* http://goto/soy-param-migration
|
|
2726
|
-
* @param {!proto.wechaty.puppet.
|
|
2864
|
+
* @param {!proto.wechaty.puppet.MessageChannelRequest} msg The msg instance to transform.
|
|
2727
2865
|
* @return {!Object}
|
|
2728
2866
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2729
2867
|
*/
|
|
2730
|
-
proto.wechaty.puppet.
|
|
2868
|
+
proto.wechaty.puppet.MessageChannelRequest.toObject = function(includeInstance, msg) {
|
|
2731
2869
|
var f, obj = {
|
|
2732
|
-
|
|
2733
|
-
contactId: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
2870
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
2734
2871
|
};
|
|
2735
2872
|
|
|
2736
2873
|
if (includeInstance) {
|
|
@@ -2744,23 +2881,23 @@ proto.wechaty.puppet.MessageSendContactRequest.toObject = function(includeInstan
|
|
|
2744
2881
|
/**
|
|
2745
2882
|
* Deserializes binary data (in protobuf wire format).
|
|
2746
2883
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2747
|
-
* @return {!proto.wechaty.puppet.
|
|
2884
|
+
* @return {!proto.wechaty.puppet.MessageChannelRequest}
|
|
2748
2885
|
*/
|
|
2749
|
-
proto.wechaty.puppet.
|
|
2886
|
+
proto.wechaty.puppet.MessageChannelRequest.deserializeBinary = function(bytes) {
|
|
2750
2887
|
var reader = new jspb.BinaryReader(bytes);
|
|
2751
|
-
var msg = new proto.wechaty.puppet.
|
|
2752
|
-
return proto.wechaty.puppet.
|
|
2888
|
+
var msg = new proto.wechaty.puppet.MessageChannelRequest;
|
|
2889
|
+
return proto.wechaty.puppet.MessageChannelRequest.deserializeBinaryFromReader(msg, reader);
|
|
2753
2890
|
};
|
|
2754
2891
|
|
|
2755
2892
|
|
|
2756
2893
|
/**
|
|
2757
2894
|
* Deserializes binary data (in protobuf wire format) from the
|
|
2758
2895
|
* given reader into the given message object.
|
|
2759
|
-
* @param {!proto.wechaty.puppet.
|
|
2896
|
+
* @param {!proto.wechaty.puppet.MessageChannelRequest} msg The message object to deserialize into.
|
|
2760
2897
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2761
|
-
* @return {!proto.wechaty.puppet.
|
|
2898
|
+
* @return {!proto.wechaty.puppet.MessageChannelRequest}
|
|
2762
2899
|
*/
|
|
2763
|
-
proto.wechaty.puppet.
|
|
2900
|
+
proto.wechaty.puppet.MessageChannelRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
2764
2901
|
while (reader.nextField()) {
|
|
2765
2902
|
if (reader.isEndGroup()) {
|
|
2766
2903
|
break;
|
|
@@ -2769,11 +2906,7 @@ proto.wechaty.puppet.MessageSendContactRequest.deserializeBinaryFromReader = fun
|
|
|
2769
2906
|
switch (field) {
|
|
2770
2907
|
case 1:
|
|
2771
2908
|
var value = /** @type {string} */ (reader.readString());
|
|
2772
|
-
msg.
|
|
2773
|
-
break;
|
|
2774
|
-
case 2:
|
|
2775
|
-
var value = /** @type {string} */ (reader.readString());
|
|
2776
|
-
msg.setContactId(value);
|
|
2909
|
+
msg.setId(value);
|
|
2777
2910
|
break;
|
|
2778
2911
|
default:
|
|
2779
2912
|
reader.skipField();
|
|
@@ -2788,9 +2921,9 @@ proto.wechaty.puppet.MessageSendContactRequest.deserializeBinaryFromReader = fun
|
|
|
2788
2921
|
* Serializes the message to binary data (in protobuf wire format).
|
|
2789
2922
|
* @return {!Uint8Array}
|
|
2790
2923
|
*/
|
|
2791
|
-
proto.wechaty.puppet.
|
|
2924
|
+
proto.wechaty.puppet.MessageChannelRequest.prototype.serializeBinary = function() {
|
|
2792
2925
|
var writer = new jspb.BinaryWriter();
|
|
2793
|
-
proto.wechaty.puppet.
|
|
2926
|
+
proto.wechaty.puppet.MessageChannelRequest.serializeBinaryToWriter(this, writer);
|
|
2794
2927
|
return writer.getResultBuffer();
|
|
2795
2928
|
};
|
|
2796
2929
|
|
|
@@ -2798,65 +2931,40 @@ proto.wechaty.puppet.MessageSendContactRequest.prototype.serializeBinary = funct
|
|
|
2798
2931
|
/**
|
|
2799
2932
|
* Serializes the given message to binary data (in protobuf wire
|
|
2800
2933
|
* format), writing to the given BinaryWriter.
|
|
2801
|
-
* @param {!proto.wechaty.puppet.
|
|
2934
|
+
* @param {!proto.wechaty.puppet.MessageChannelRequest} message
|
|
2802
2935
|
* @param {!jspb.BinaryWriter} writer
|
|
2803
2936
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2804
2937
|
*/
|
|
2805
|
-
proto.wechaty.puppet.
|
|
2938
|
+
proto.wechaty.puppet.MessageChannelRequest.serializeBinaryToWriter = function(message, writer) {
|
|
2806
2939
|
var f = undefined;
|
|
2807
|
-
f = message.
|
|
2940
|
+
f = message.getId();
|
|
2808
2941
|
if (f.length > 0) {
|
|
2809
2942
|
writer.writeString(
|
|
2810
2943
|
1,
|
|
2811
2944
|
f
|
|
2812
2945
|
);
|
|
2813
2946
|
}
|
|
2814
|
-
f = message.getContactId();
|
|
2815
|
-
if (f.length > 0) {
|
|
2816
|
-
writer.writeString(
|
|
2817
|
-
2,
|
|
2818
|
-
f
|
|
2819
|
-
);
|
|
2820
|
-
}
|
|
2821
2947
|
};
|
|
2822
2948
|
|
|
2823
2949
|
|
|
2824
2950
|
/**
|
|
2825
|
-
* optional string
|
|
2951
|
+
* optional string id = 1;
|
|
2826
2952
|
* @return {string}
|
|
2827
2953
|
*/
|
|
2828
|
-
proto.wechaty.puppet.
|
|
2954
|
+
proto.wechaty.puppet.MessageChannelRequest.prototype.getId = function() {
|
|
2829
2955
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
2830
2956
|
};
|
|
2831
2957
|
|
|
2832
2958
|
|
|
2833
2959
|
/**
|
|
2834
2960
|
* @param {string} value
|
|
2835
|
-
* @return {!proto.wechaty.puppet.
|
|
2961
|
+
* @return {!proto.wechaty.puppet.MessageChannelRequest} returns this
|
|
2836
2962
|
*/
|
|
2837
|
-
proto.wechaty.puppet.
|
|
2963
|
+
proto.wechaty.puppet.MessageChannelRequest.prototype.setId = function(value) {
|
|
2838
2964
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
2839
2965
|
};
|
|
2840
2966
|
|
|
2841
2967
|
|
|
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
2968
|
|
|
2861
2969
|
|
|
2862
2970
|
|
|
@@ -2873,8 +2981,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
2873
2981
|
* http://goto/soy-param-migration
|
|
2874
2982
|
* @return {!Object}
|
|
2875
2983
|
*/
|
|
2876
|
-
proto.wechaty.puppet.
|
|
2877
|
-
return proto.wechaty.puppet.
|
|
2984
|
+
proto.wechaty.puppet.MessageChannelResponse.prototype.toObject = function(opt_includeInstance) {
|
|
2985
|
+
return proto.wechaty.puppet.MessageChannelResponse.toObject(opt_includeInstance, this);
|
|
2878
2986
|
};
|
|
2879
2987
|
|
|
2880
2988
|
|
|
@@ -2883,14 +2991,13 @@ proto.wechaty.puppet.MessageSendContactResponse.prototype.toObject = function(op
|
|
|
2883
2991
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2884
2992
|
* the JSPB instance for transitional soy proto support:
|
|
2885
2993
|
* http://goto/soy-param-migration
|
|
2886
|
-
* @param {!proto.wechaty.puppet.
|
|
2994
|
+
* @param {!proto.wechaty.puppet.MessageChannelResponse} msg The msg instance to transform.
|
|
2887
2995
|
* @return {!Object}
|
|
2888
2996
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2889
2997
|
*/
|
|
2890
|
-
proto.wechaty.puppet.
|
|
2998
|
+
proto.wechaty.puppet.MessageChannelResponse.toObject = function(includeInstance, msg) {
|
|
2891
2999
|
var f, obj = {
|
|
2892
|
-
|
|
2893
|
-
id: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
3000
|
+
channel: (f = msg.getChannel()) && wechaty_puppet_channel_pb.ChannelPayload.toObject(includeInstance, f)
|
|
2894
3001
|
};
|
|
2895
3002
|
|
|
2896
3003
|
if (includeInstance) {
|
|
@@ -2904,23 +3011,23 @@ proto.wechaty.puppet.MessageSendContactResponse.toObject = function(includeInsta
|
|
|
2904
3011
|
/**
|
|
2905
3012
|
* Deserializes binary data (in protobuf wire format).
|
|
2906
3013
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2907
|
-
* @return {!proto.wechaty.puppet.
|
|
3014
|
+
* @return {!proto.wechaty.puppet.MessageChannelResponse}
|
|
2908
3015
|
*/
|
|
2909
|
-
proto.wechaty.puppet.
|
|
3016
|
+
proto.wechaty.puppet.MessageChannelResponse.deserializeBinary = function(bytes) {
|
|
2910
3017
|
var reader = new jspb.BinaryReader(bytes);
|
|
2911
|
-
var msg = new proto.wechaty.puppet.
|
|
2912
|
-
return proto.wechaty.puppet.
|
|
3018
|
+
var msg = new proto.wechaty.puppet.MessageChannelResponse;
|
|
3019
|
+
return proto.wechaty.puppet.MessageChannelResponse.deserializeBinaryFromReader(msg, reader);
|
|
2913
3020
|
};
|
|
2914
3021
|
|
|
2915
3022
|
|
|
2916
3023
|
/**
|
|
2917
3024
|
* Deserializes binary data (in protobuf wire format) from the
|
|
2918
3025
|
* given reader into the given message object.
|
|
2919
|
-
* @param {!proto.wechaty.puppet.
|
|
3026
|
+
* @param {!proto.wechaty.puppet.MessageChannelResponse} msg The message object to deserialize into.
|
|
2920
3027
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2921
|
-
* @return {!proto.wechaty.puppet.
|
|
3028
|
+
* @return {!proto.wechaty.puppet.MessageChannelResponse}
|
|
2922
3029
|
*/
|
|
2923
|
-
proto.wechaty.puppet.
|
|
3030
|
+
proto.wechaty.puppet.MessageChannelResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
2924
3031
|
while (reader.nextField()) {
|
|
2925
3032
|
if (reader.isEndGroup()) {
|
|
2926
3033
|
break;
|
|
@@ -2928,13 +3035,9 @@ proto.wechaty.puppet.MessageSendContactResponse.deserializeBinaryFromReader = fu
|
|
|
2928
3035
|
var field = reader.getFieldNumber();
|
|
2929
3036
|
switch (field) {
|
|
2930
3037
|
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);
|
|
3038
|
+
var value = new wechaty_puppet_channel_pb.ChannelPayload;
|
|
3039
|
+
reader.readMessage(value,wechaty_puppet_channel_pb.ChannelPayload.deserializeBinaryFromReader);
|
|
3040
|
+
msg.setChannel(value);
|
|
2938
3041
|
break;
|
|
2939
3042
|
default:
|
|
2940
3043
|
reader.skipField();
|
|
@@ -2949,9 +3052,9 @@ proto.wechaty.puppet.MessageSendContactResponse.deserializeBinaryFromReader = fu
|
|
|
2949
3052
|
* Serializes the message to binary data (in protobuf wire format).
|
|
2950
3053
|
* @return {!Uint8Array}
|
|
2951
3054
|
*/
|
|
2952
|
-
proto.wechaty.puppet.
|
|
3055
|
+
proto.wechaty.puppet.MessageChannelResponse.prototype.serializeBinary = function() {
|
|
2953
3056
|
var writer = new jspb.BinaryWriter();
|
|
2954
|
-
proto.wechaty.puppet.
|
|
3057
|
+
proto.wechaty.puppet.MessageChannelResponse.serializeBinaryToWriter(this, writer);
|
|
2955
3058
|
return writer.getResultBuffer();
|
|
2956
3059
|
};
|
|
2957
3060
|
|
|
@@ -2959,55 +3062,48 @@ proto.wechaty.puppet.MessageSendContactResponse.prototype.serializeBinary = func
|
|
|
2959
3062
|
/**
|
|
2960
3063
|
* Serializes the given message to binary data (in protobuf wire
|
|
2961
3064
|
* format), writing to the given BinaryWriter.
|
|
2962
|
-
* @param {!proto.wechaty.puppet.
|
|
3065
|
+
* @param {!proto.wechaty.puppet.MessageChannelResponse} message
|
|
2963
3066
|
* @param {!jspb.BinaryWriter} writer
|
|
2964
3067
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2965
3068
|
*/
|
|
2966
|
-
proto.wechaty.puppet.
|
|
3069
|
+
proto.wechaty.puppet.MessageChannelResponse.serializeBinaryToWriter = function(message, writer) {
|
|
2967
3070
|
var f = undefined;
|
|
2968
|
-
f = message.
|
|
3071
|
+
f = message.getChannel();
|
|
2969
3072
|
if (f != null) {
|
|
2970
3073
|
writer.writeMessage(
|
|
2971
3074
|
1,
|
|
2972
3075
|
f,
|
|
2973
|
-
|
|
2974
|
-
);
|
|
2975
|
-
}
|
|
2976
|
-
f = message.getId();
|
|
2977
|
-
if (f.length > 0) {
|
|
2978
|
-
writer.writeString(
|
|
2979
|
-
2,
|
|
2980
|
-
f
|
|
3076
|
+
wechaty_puppet_channel_pb.ChannelPayload.serializeBinaryToWriter
|
|
2981
3077
|
);
|
|
2982
3078
|
}
|
|
2983
3079
|
};
|
|
2984
3080
|
|
|
2985
3081
|
|
|
2986
3082
|
/**
|
|
2987
|
-
* optional
|
|
2988
|
-
* @return {?proto.
|
|
3083
|
+
* optional ChannelPayload channel = 1;
|
|
3084
|
+
* @return {?proto.wechaty.puppet.ChannelPayload}
|
|
2989
3085
|
*/
|
|
2990
|
-
proto.wechaty.puppet.
|
|
2991
|
-
return /** @type{?proto.
|
|
2992
|
-
jspb.Message.getWrapperField(this,
|
|
3086
|
+
proto.wechaty.puppet.MessageChannelResponse.prototype.getChannel = function() {
|
|
3087
|
+
return /** @type{?proto.wechaty.puppet.ChannelPayload} */ (
|
|
3088
|
+
jspb.Message.getWrapperField(this, wechaty_puppet_channel_pb.ChannelPayload, 1));
|
|
2993
3089
|
};
|
|
2994
3090
|
|
|
2995
3091
|
|
|
2996
3092
|
/**
|
|
2997
|
-
* @param {?proto.
|
|
2998
|
-
* @return {!proto.wechaty.puppet.
|
|
3093
|
+
* @param {?proto.wechaty.puppet.ChannelPayload|undefined} value
|
|
3094
|
+
* @return {!proto.wechaty.puppet.MessageChannelResponse} returns this
|
|
2999
3095
|
*/
|
|
3000
|
-
proto.wechaty.puppet.
|
|
3096
|
+
proto.wechaty.puppet.MessageChannelResponse.prototype.setChannel = function(value) {
|
|
3001
3097
|
return jspb.Message.setWrapperField(this, 1, value);
|
|
3002
3098
|
};
|
|
3003
3099
|
|
|
3004
3100
|
|
|
3005
3101
|
/**
|
|
3006
3102
|
* Clears the message field making it undefined.
|
|
3007
|
-
* @return {!proto.wechaty.puppet.
|
|
3103
|
+
* @return {!proto.wechaty.puppet.MessageChannelResponse} returns this
|
|
3008
3104
|
*/
|
|
3009
|
-
proto.wechaty.puppet.
|
|
3010
|
-
return this.
|
|
3105
|
+
proto.wechaty.puppet.MessageChannelResponse.prototype.clearChannel = function() {
|
|
3106
|
+
return this.setChannel(undefined);
|
|
3011
3107
|
};
|
|
3012
3108
|
|
|
3013
3109
|
|
|
@@ -3015,29 +3111,11 @@ proto.wechaty.puppet.MessageSendContactResponse.prototype.clearIdStringValueDepr
|
|
|
3015
3111
|
* Returns whether this field is set.
|
|
3016
3112
|
* @return {boolean}
|
|
3017
3113
|
*/
|
|
3018
|
-
proto.wechaty.puppet.
|
|
3114
|
+
proto.wechaty.puppet.MessageChannelResponse.prototype.hasChannel = function() {
|
|
3019
3115
|
return jspb.Message.getField(this, 1) != null;
|
|
3020
3116
|
};
|
|
3021
3117
|
|
|
3022
3118
|
|
|
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
3119
|
|
|
3042
3120
|
|
|
3043
3121
|
|
|
@@ -3054,8 +3132,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
3054
3132
|
* http://goto/soy-param-migration
|
|
3055
3133
|
* @return {!Object}
|
|
3056
3134
|
*/
|
|
3057
|
-
proto.wechaty.puppet.
|
|
3058
|
-
return proto.wechaty.puppet.
|
|
3135
|
+
proto.wechaty.puppet.MessageSendContactRequest.prototype.toObject = function(opt_includeInstance) {
|
|
3136
|
+
return proto.wechaty.puppet.MessageSendContactRequest.toObject(opt_includeInstance, this);
|
|
3059
3137
|
};
|
|
3060
3138
|
|
|
3061
3139
|
|
|
@@ -3064,14 +3142,14 @@ proto.wechaty.puppet.MessageSendFileRequest.prototype.toObject = function(opt_in
|
|
|
3064
3142
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3065
3143
|
* the JSPB instance for transitional soy proto support:
|
|
3066
3144
|
* http://goto/soy-param-migration
|
|
3067
|
-
* @param {!proto.wechaty.puppet.
|
|
3145
|
+
* @param {!proto.wechaty.puppet.MessageSendContactRequest} msg The msg instance to transform.
|
|
3068
3146
|
* @return {!Object}
|
|
3069
3147
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3070
3148
|
*/
|
|
3071
|
-
proto.wechaty.puppet.
|
|
3149
|
+
proto.wechaty.puppet.MessageSendContactRequest.toObject = function(includeInstance, msg) {
|
|
3072
3150
|
var f, obj = {
|
|
3073
3151
|
conversationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
3074
|
-
|
|
3152
|
+
contactId: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
3075
3153
|
};
|
|
3076
3154
|
|
|
3077
3155
|
if (includeInstance) {
|
|
@@ -3085,23 +3163,23 @@ proto.wechaty.puppet.MessageSendFileRequest.toObject = function(includeInstance,
|
|
|
3085
3163
|
/**
|
|
3086
3164
|
* Deserializes binary data (in protobuf wire format).
|
|
3087
3165
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3088
|
-
* @return {!proto.wechaty.puppet.
|
|
3166
|
+
* @return {!proto.wechaty.puppet.MessageSendContactRequest}
|
|
3089
3167
|
*/
|
|
3090
|
-
proto.wechaty.puppet.
|
|
3168
|
+
proto.wechaty.puppet.MessageSendContactRequest.deserializeBinary = function(bytes) {
|
|
3091
3169
|
var reader = new jspb.BinaryReader(bytes);
|
|
3092
|
-
var msg = new proto.wechaty.puppet.
|
|
3093
|
-
return proto.wechaty.puppet.
|
|
3170
|
+
var msg = new proto.wechaty.puppet.MessageSendContactRequest;
|
|
3171
|
+
return proto.wechaty.puppet.MessageSendContactRequest.deserializeBinaryFromReader(msg, reader);
|
|
3094
3172
|
};
|
|
3095
3173
|
|
|
3096
3174
|
|
|
3097
3175
|
/**
|
|
3098
3176
|
* Deserializes binary data (in protobuf wire format) from the
|
|
3099
3177
|
* given reader into the given message object.
|
|
3100
|
-
* @param {!proto.wechaty.puppet.
|
|
3178
|
+
* @param {!proto.wechaty.puppet.MessageSendContactRequest} msg The message object to deserialize into.
|
|
3101
3179
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3102
|
-
* @return {!proto.wechaty.puppet.
|
|
3180
|
+
* @return {!proto.wechaty.puppet.MessageSendContactRequest}
|
|
3103
3181
|
*/
|
|
3104
|
-
proto.wechaty.puppet.
|
|
3182
|
+
proto.wechaty.puppet.MessageSendContactRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
3105
3183
|
while (reader.nextField()) {
|
|
3106
3184
|
if (reader.isEndGroup()) {
|
|
3107
3185
|
break;
|
|
@@ -3114,7 +3192,7 @@ proto.wechaty.puppet.MessageSendFileRequest.deserializeBinaryFromReader = functi
|
|
|
3114
3192
|
break;
|
|
3115
3193
|
case 2:
|
|
3116
3194
|
var value = /** @type {string} */ (reader.readString());
|
|
3117
|
-
msg.
|
|
3195
|
+
msg.setContactId(value);
|
|
3118
3196
|
break;
|
|
3119
3197
|
default:
|
|
3120
3198
|
reader.skipField();
|
|
@@ -3129,9 +3207,9 @@ proto.wechaty.puppet.MessageSendFileRequest.deserializeBinaryFromReader = functi
|
|
|
3129
3207
|
* Serializes the message to binary data (in protobuf wire format).
|
|
3130
3208
|
* @return {!Uint8Array}
|
|
3131
3209
|
*/
|
|
3132
|
-
proto.wechaty.puppet.
|
|
3210
|
+
proto.wechaty.puppet.MessageSendContactRequest.prototype.serializeBinary = function() {
|
|
3133
3211
|
var writer = new jspb.BinaryWriter();
|
|
3134
|
-
proto.wechaty.puppet.
|
|
3212
|
+
proto.wechaty.puppet.MessageSendContactRequest.serializeBinaryToWriter(this, writer);
|
|
3135
3213
|
return writer.getResultBuffer();
|
|
3136
3214
|
};
|
|
3137
3215
|
|
|
@@ -3139,11 +3217,11 @@ proto.wechaty.puppet.MessageSendFileRequest.prototype.serializeBinary = function
|
|
|
3139
3217
|
/**
|
|
3140
3218
|
* Serializes the given message to binary data (in protobuf wire
|
|
3141
3219
|
* format), writing to the given BinaryWriter.
|
|
3142
|
-
* @param {!proto.wechaty.puppet.
|
|
3220
|
+
* @param {!proto.wechaty.puppet.MessageSendContactRequest} message
|
|
3143
3221
|
* @param {!jspb.BinaryWriter} writer
|
|
3144
3222
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3145
3223
|
*/
|
|
3146
|
-
proto.wechaty.puppet.
|
|
3224
|
+
proto.wechaty.puppet.MessageSendContactRequest.serializeBinaryToWriter = function(message, writer) {
|
|
3147
3225
|
var f = undefined;
|
|
3148
3226
|
f = message.getConversationId();
|
|
3149
3227
|
if (f.length > 0) {
|
|
@@ -3152,7 +3230,7 @@ proto.wechaty.puppet.MessageSendFileRequest.serializeBinaryToWriter = function(m
|
|
|
3152
3230
|
f
|
|
3153
3231
|
);
|
|
3154
3232
|
}
|
|
3155
|
-
f = message.
|
|
3233
|
+
f = message.getContactId();
|
|
3156
3234
|
if (f.length > 0) {
|
|
3157
3235
|
writer.writeString(
|
|
3158
3236
|
2,
|
|
@@ -3166,34 +3244,34 @@ proto.wechaty.puppet.MessageSendFileRequest.serializeBinaryToWriter = function(m
|
|
|
3166
3244
|
* optional string conversation_id = 1;
|
|
3167
3245
|
* @return {string}
|
|
3168
3246
|
*/
|
|
3169
|
-
proto.wechaty.puppet.
|
|
3247
|
+
proto.wechaty.puppet.MessageSendContactRequest.prototype.getConversationId = function() {
|
|
3170
3248
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
3171
3249
|
};
|
|
3172
3250
|
|
|
3173
3251
|
|
|
3174
3252
|
/**
|
|
3175
3253
|
* @param {string} value
|
|
3176
|
-
* @return {!proto.wechaty.puppet.
|
|
3254
|
+
* @return {!proto.wechaty.puppet.MessageSendContactRequest} returns this
|
|
3177
3255
|
*/
|
|
3178
|
-
proto.wechaty.puppet.
|
|
3256
|
+
proto.wechaty.puppet.MessageSendContactRequest.prototype.setConversationId = function(value) {
|
|
3179
3257
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
3180
3258
|
};
|
|
3181
3259
|
|
|
3182
3260
|
|
|
3183
3261
|
/**
|
|
3184
|
-
* optional string
|
|
3262
|
+
* optional string contact_id = 2;
|
|
3185
3263
|
* @return {string}
|
|
3186
3264
|
*/
|
|
3187
|
-
proto.wechaty.puppet.
|
|
3265
|
+
proto.wechaty.puppet.MessageSendContactRequest.prototype.getContactId = function() {
|
|
3188
3266
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
3189
3267
|
};
|
|
3190
3268
|
|
|
3191
3269
|
|
|
3192
3270
|
/**
|
|
3193
3271
|
* @param {string} value
|
|
3194
|
-
* @return {!proto.wechaty.puppet.
|
|
3272
|
+
* @return {!proto.wechaty.puppet.MessageSendContactRequest} returns this
|
|
3195
3273
|
*/
|
|
3196
|
-
proto.wechaty.puppet.
|
|
3274
|
+
proto.wechaty.puppet.MessageSendContactRequest.prototype.setContactId = function(value) {
|
|
3197
3275
|
return jspb.Message.setProto3StringField(this, 2, value);
|
|
3198
3276
|
};
|
|
3199
3277
|
|
|
@@ -3214,8 +3292,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
3214
3292
|
* http://goto/soy-param-migration
|
|
3215
3293
|
* @return {!Object}
|
|
3216
3294
|
*/
|
|
3217
|
-
proto.wechaty.puppet.
|
|
3218
|
-
return proto.wechaty.puppet.
|
|
3295
|
+
proto.wechaty.puppet.MessageSendContactResponse.prototype.toObject = function(opt_includeInstance) {
|
|
3296
|
+
return proto.wechaty.puppet.MessageSendContactResponse.toObject(opt_includeInstance, this);
|
|
3219
3297
|
};
|
|
3220
3298
|
|
|
3221
3299
|
|
|
@@ -3224,11 +3302,11 @@ proto.wechaty.puppet.MessageSendFileResponse.prototype.toObject = function(opt_i
|
|
|
3224
3302
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3225
3303
|
* the JSPB instance for transitional soy proto support:
|
|
3226
3304
|
* http://goto/soy-param-migration
|
|
3227
|
-
* @param {!proto.wechaty.puppet.
|
|
3305
|
+
* @param {!proto.wechaty.puppet.MessageSendContactResponse} msg The msg instance to transform.
|
|
3228
3306
|
* @return {!Object}
|
|
3229
3307
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3230
3308
|
*/
|
|
3231
|
-
proto.wechaty.puppet.
|
|
3309
|
+
proto.wechaty.puppet.MessageSendContactResponse.toObject = function(includeInstance, msg) {
|
|
3232
3310
|
var f, obj = {
|
|
3233
3311
|
idStringValueDeprecated: (f = msg.getIdStringValueDeprecated()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
|
|
3234
3312
|
id: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
@@ -3245,23 +3323,23 @@ proto.wechaty.puppet.MessageSendFileResponse.toObject = function(includeInstance
|
|
|
3245
3323
|
/**
|
|
3246
3324
|
* Deserializes binary data (in protobuf wire format).
|
|
3247
3325
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3248
|
-
* @return {!proto.wechaty.puppet.
|
|
3326
|
+
* @return {!proto.wechaty.puppet.MessageSendContactResponse}
|
|
3249
3327
|
*/
|
|
3250
|
-
proto.wechaty.puppet.
|
|
3328
|
+
proto.wechaty.puppet.MessageSendContactResponse.deserializeBinary = function(bytes) {
|
|
3251
3329
|
var reader = new jspb.BinaryReader(bytes);
|
|
3252
|
-
var msg = new proto.wechaty.puppet.
|
|
3253
|
-
return proto.wechaty.puppet.
|
|
3330
|
+
var msg = new proto.wechaty.puppet.MessageSendContactResponse;
|
|
3331
|
+
return proto.wechaty.puppet.MessageSendContactResponse.deserializeBinaryFromReader(msg, reader);
|
|
3254
3332
|
};
|
|
3255
3333
|
|
|
3256
3334
|
|
|
3257
3335
|
/**
|
|
3258
3336
|
* Deserializes binary data (in protobuf wire format) from the
|
|
3259
3337
|
* given reader into the given message object.
|
|
3260
|
-
* @param {!proto.wechaty.puppet.
|
|
3338
|
+
* @param {!proto.wechaty.puppet.MessageSendContactResponse} msg The message object to deserialize into.
|
|
3261
3339
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3262
|
-
* @return {!proto.wechaty.puppet.
|
|
3340
|
+
* @return {!proto.wechaty.puppet.MessageSendContactResponse}
|
|
3263
3341
|
*/
|
|
3264
|
-
proto.wechaty.puppet.
|
|
3342
|
+
proto.wechaty.puppet.MessageSendContactResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
3265
3343
|
while (reader.nextField()) {
|
|
3266
3344
|
if (reader.isEndGroup()) {
|
|
3267
3345
|
break;
|
|
@@ -3290,9 +3368,9 @@ proto.wechaty.puppet.MessageSendFileResponse.deserializeBinaryFromReader = funct
|
|
|
3290
3368
|
* Serializes the message to binary data (in protobuf wire format).
|
|
3291
3369
|
* @return {!Uint8Array}
|
|
3292
3370
|
*/
|
|
3293
|
-
proto.wechaty.puppet.
|
|
3371
|
+
proto.wechaty.puppet.MessageSendContactResponse.prototype.serializeBinary = function() {
|
|
3294
3372
|
var writer = new jspb.BinaryWriter();
|
|
3295
|
-
proto.wechaty.puppet.
|
|
3373
|
+
proto.wechaty.puppet.MessageSendContactResponse.serializeBinaryToWriter(this, writer);
|
|
3296
3374
|
return writer.getResultBuffer();
|
|
3297
3375
|
};
|
|
3298
3376
|
|
|
@@ -3300,11 +3378,11 @@ proto.wechaty.puppet.MessageSendFileResponse.prototype.serializeBinary = functio
|
|
|
3300
3378
|
/**
|
|
3301
3379
|
* Serializes the given message to binary data (in protobuf wire
|
|
3302
3380
|
* format), writing to the given BinaryWriter.
|
|
3303
|
-
* @param {!proto.wechaty.puppet.
|
|
3381
|
+
* @param {!proto.wechaty.puppet.MessageSendContactResponse} message
|
|
3304
3382
|
* @param {!jspb.BinaryWriter} writer
|
|
3305
3383
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3306
3384
|
*/
|
|
3307
|
-
proto.wechaty.puppet.
|
|
3385
|
+
proto.wechaty.puppet.MessageSendContactResponse.serializeBinaryToWriter = function(message, writer) {
|
|
3308
3386
|
var f = undefined;
|
|
3309
3387
|
f = message.getIdStringValueDeprecated();
|
|
3310
3388
|
if (f != null) {
|
|
@@ -3328,7 +3406,7 @@ proto.wechaty.puppet.MessageSendFileResponse.serializeBinaryToWriter = function(
|
|
|
3328
3406
|
* optional google.protobuf.StringValue id_string_value_deprecated = 1;
|
|
3329
3407
|
* @return {?proto.google.protobuf.StringValue}
|
|
3330
3408
|
*/
|
|
3331
|
-
proto.wechaty.puppet.
|
|
3409
|
+
proto.wechaty.puppet.MessageSendContactResponse.prototype.getIdStringValueDeprecated = function() {
|
|
3332
3410
|
return /** @type{?proto.google.protobuf.StringValue} */ (
|
|
3333
3411
|
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 1));
|
|
3334
3412
|
};
|
|
@@ -3336,18 +3414,18 @@ proto.wechaty.puppet.MessageSendFileResponse.prototype.getIdStringValueDeprecate
|
|
|
3336
3414
|
|
|
3337
3415
|
/**
|
|
3338
3416
|
* @param {?proto.google.protobuf.StringValue|undefined} value
|
|
3339
|
-
* @return {!proto.wechaty.puppet.
|
|
3417
|
+
* @return {!proto.wechaty.puppet.MessageSendContactResponse} returns this
|
|
3340
3418
|
*/
|
|
3341
|
-
proto.wechaty.puppet.
|
|
3419
|
+
proto.wechaty.puppet.MessageSendContactResponse.prototype.setIdStringValueDeprecated = function(value) {
|
|
3342
3420
|
return jspb.Message.setWrapperField(this, 1, value);
|
|
3343
3421
|
};
|
|
3344
3422
|
|
|
3345
3423
|
|
|
3346
3424
|
/**
|
|
3347
3425
|
* Clears the message field making it undefined.
|
|
3348
|
-
* @return {!proto.wechaty.puppet.
|
|
3426
|
+
* @return {!proto.wechaty.puppet.MessageSendContactResponse} returns this
|
|
3349
3427
|
*/
|
|
3350
|
-
proto.wechaty.puppet.
|
|
3428
|
+
proto.wechaty.puppet.MessageSendContactResponse.prototype.clearIdStringValueDeprecated = function() {
|
|
3351
3429
|
return this.setIdStringValueDeprecated(undefined);
|
|
3352
3430
|
};
|
|
3353
3431
|
|
|
@@ -3356,7 +3434,7 @@ proto.wechaty.puppet.MessageSendFileResponse.prototype.clearIdStringValueDepreca
|
|
|
3356
3434
|
* Returns whether this field is set.
|
|
3357
3435
|
* @return {boolean}
|
|
3358
3436
|
*/
|
|
3359
|
-
proto.wechaty.puppet.
|
|
3437
|
+
proto.wechaty.puppet.MessageSendContactResponse.prototype.hasIdStringValueDeprecated = function() {
|
|
3360
3438
|
return jspb.Message.getField(this, 1) != null;
|
|
3361
3439
|
};
|
|
3362
3440
|
|
|
@@ -3365,28 +3443,21 @@ proto.wechaty.puppet.MessageSendFileResponse.prototype.hasIdStringValueDeprecate
|
|
|
3365
3443
|
* optional string id = 2;
|
|
3366
3444
|
* @return {string}
|
|
3367
3445
|
*/
|
|
3368
|
-
proto.wechaty.puppet.
|
|
3446
|
+
proto.wechaty.puppet.MessageSendContactResponse.prototype.getId = function() {
|
|
3369
3447
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
3370
3448
|
};
|
|
3371
3449
|
|
|
3372
3450
|
|
|
3373
3451
|
/**
|
|
3374
3452
|
* @param {string} value
|
|
3375
|
-
* @return {!proto.wechaty.puppet.
|
|
3453
|
+
* @return {!proto.wechaty.puppet.MessageSendContactResponse} returns this
|
|
3376
3454
|
*/
|
|
3377
|
-
proto.wechaty.puppet.
|
|
3455
|
+
proto.wechaty.puppet.MessageSendContactResponse.prototype.setId = function(value) {
|
|
3378
3456
|
return jspb.Message.setProto3StringField(this, 2, value);
|
|
3379
3457
|
};
|
|
3380
3458
|
|
|
3381
3459
|
|
|
3382
3460
|
|
|
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
3461
|
|
|
3391
3462
|
|
|
3392
3463
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -3402,8 +3473,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
3402
3473
|
* http://goto/soy-param-migration
|
|
3403
3474
|
* @return {!Object}
|
|
3404
3475
|
*/
|
|
3405
|
-
proto.wechaty.puppet.
|
|
3406
|
-
return proto.wechaty.puppet.
|
|
3476
|
+
proto.wechaty.puppet.MessageSendFileRequest.prototype.toObject = function(opt_includeInstance) {
|
|
3477
|
+
return proto.wechaty.puppet.MessageSendFileRequest.toObject(opt_includeInstance, this);
|
|
3407
3478
|
};
|
|
3408
3479
|
|
|
3409
3480
|
|
|
@@ -3412,15 +3483,14 @@ proto.wechaty.puppet.MessageSendTextRequest.prototype.toObject = function(opt_in
|
|
|
3412
3483
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3413
3484
|
* the JSPB instance for transitional soy proto support:
|
|
3414
3485
|
* http://goto/soy-param-migration
|
|
3415
|
-
* @param {!proto.wechaty.puppet.
|
|
3486
|
+
* @param {!proto.wechaty.puppet.MessageSendFileRequest} msg The msg instance to transform.
|
|
3416
3487
|
* @return {!Object}
|
|
3417
3488
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3418
3489
|
*/
|
|
3419
|
-
proto.wechaty.puppet.
|
|
3490
|
+
proto.wechaty.puppet.MessageSendFileRequest.toObject = function(includeInstance, msg) {
|
|
3420
3491
|
var f, obj = {
|
|
3421
3492
|
conversationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
3422
|
-
|
|
3423
|
-
mentionalIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
|
|
3493
|
+
fileBox: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
3424
3494
|
};
|
|
3425
3495
|
|
|
3426
3496
|
if (includeInstance) {
|
|
@@ -3434,23 +3504,23 @@ proto.wechaty.puppet.MessageSendTextRequest.toObject = function(includeInstance,
|
|
|
3434
3504
|
/**
|
|
3435
3505
|
* Deserializes binary data (in protobuf wire format).
|
|
3436
3506
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3437
|
-
* @return {!proto.wechaty.puppet.
|
|
3507
|
+
* @return {!proto.wechaty.puppet.MessageSendFileRequest}
|
|
3438
3508
|
*/
|
|
3439
|
-
proto.wechaty.puppet.
|
|
3509
|
+
proto.wechaty.puppet.MessageSendFileRequest.deserializeBinary = function(bytes) {
|
|
3440
3510
|
var reader = new jspb.BinaryReader(bytes);
|
|
3441
|
-
var msg = new proto.wechaty.puppet.
|
|
3442
|
-
return proto.wechaty.puppet.
|
|
3511
|
+
var msg = new proto.wechaty.puppet.MessageSendFileRequest;
|
|
3512
|
+
return proto.wechaty.puppet.MessageSendFileRequest.deserializeBinaryFromReader(msg, reader);
|
|
3443
3513
|
};
|
|
3444
3514
|
|
|
3445
3515
|
|
|
3446
3516
|
/**
|
|
3447
3517
|
* Deserializes binary data (in protobuf wire format) from the
|
|
3448
3518
|
* given reader into the given message object.
|
|
3449
|
-
* @param {!proto.wechaty.puppet.
|
|
3519
|
+
* @param {!proto.wechaty.puppet.MessageSendFileRequest} msg The message object to deserialize into.
|
|
3450
3520
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3451
|
-
* @return {!proto.wechaty.puppet.
|
|
3521
|
+
* @return {!proto.wechaty.puppet.MessageSendFileRequest}
|
|
3452
3522
|
*/
|
|
3453
|
-
proto.wechaty.puppet.
|
|
3523
|
+
proto.wechaty.puppet.MessageSendFileRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
3454
3524
|
while (reader.nextField()) {
|
|
3455
3525
|
if (reader.isEndGroup()) {
|
|
3456
3526
|
break;
|
|
@@ -3463,11 +3533,7 @@ proto.wechaty.puppet.MessageSendTextRequest.deserializeBinaryFromReader = functi
|
|
|
3463
3533
|
break;
|
|
3464
3534
|
case 2:
|
|
3465
3535
|
var value = /** @type {string} */ (reader.readString());
|
|
3466
|
-
msg.
|
|
3467
|
-
break;
|
|
3468
|
-
case 3:
|
|
3469
|
-
var value = /** @type {string} */ (reader.readString());
|
|
3470
|
-
msg.addMentionalIds(value);
|
|
3536
|
+
msg.setFileBox(value);
|
|
3471
3537
|
break;
|
|
3472
3538
|
default:
|
|
3473
3539
|
reader.skipField();
|
|
@@ -3482,9 +3548,9 @@ proto.wechaty.puppet.MessageSendTextRequest.deserializeBinaryFromReader = functi
|
|
|
3482
3548
|
* Serializes the message to binary data (in protobuf wire format).
|
|
3483
3549
|
* @return {!Uint8Array}
|
|
3484
3550
|
*/
|
|
3485
|
-
proto.wechaty.puppet.
|
|
3551
|
+
proto.wechaty.puppet.MessageSendFileRequest.prototype.serializeBinary = function() {
|
|
3486
3552
|
var writer = new jspb.BinaryWriter();
|
|
3487
|
-
proto.wechaty.puppet.
|
|
3553
|
+
proto.wechaty.puppet.MessageSendFileRequest.serializeBinaryToWriter(this, writer);
|
|
3488
3554
|
return writer.getResultBuffer();
|
|
3489
3555
|
};
|
|
3490
3556
|
|
|
@@ -3492,11 +3558,11 @@ proto.wechaty.puppet.MessageSendTextRequest.prototype.serializeBinary = function
|
|
|
3492
3558
|
/**
|
|
3493
3559
|
* Serializes the given message to binary data (in protobuf wire
|
|
3494
3560
|
* format), writing to the given BinaryWriter.
|
|
3495
|
-
* @param {!proto.wechaty.puppet.
|
|
3561
|
+
* @param {!proto.wechaty.puppet.MessageSendFileRequest} message
|
|
3496
3562
|
* @param {!jspb.BinaryWriter} writer
|
|
3497
3563
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3498
3564
|
*/
|
|
3499
|
-
proto.wechaty.puppet.
|
|
3565
|
+
proto.wechaty.puppet.MessageSendFileRequest.serializeBinaryToWriter = function(message, writer) {
|
|
3500
3566
|
var f = undefined;
|
|
3501
3567
|
f = message.getConversationId();
|
|
3502
3568
|
if (f.length > 0) {
|
|
@@ -3505,20 +3571,13 @@ proto.wechaty.puppet.MessageSendTextRequest.serializeBinaryToWriter = function(m
|
|
|
3505
3571
|
f
|
|
3506
3572
|
);
|
|
3507
3573
|
}
|
|
3508
|
-
f = message.
|
|
3574
|
+
f = message.getFileBox();
|
|
3509
3575
|
if (f.length > 0) {
|
|
3510
3576
|
writer.writeString(
|
|
3511
3577
|
2,
|
|
3512
3578
|
f
|
|
3513
3579
|
);
|
|
3514
3580
|
}
|
|
3515
|
-
f = message.getMentionalIdsList();
|
|
3516
|
-
if (f.length > 0) {
|
|
3517
|
-
writer.writeRepeatedString(
|
|
3518
|
-
3,
|
|
3519
|
-
f
|
|
3520
|
-
);
|
|
3521
|
-
}
|
|
3522
3581
|
};
|
|
3523
3582
|
|
|
3524
3583
|
|
|
@@ -3526,75 +3585,38 @@ proto.wechaty.puppet.MessageSendTextRequest.serializeBinaryToWriter = function(m
|
|
|
3526
3585
|
* optional string conversation_id = 1;
|
|
3527
3586
|
* @return {string}
|
|
3528
3587
|
*/
|
|
3529
|
-
proto.wechaty.puppet.
|
|
3588
|
+
proto.wechaty.puppet.MessageSendFileRequest.prototype.getConversationId = function() {
|
|
3530
3589
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
3531
3590
|
};
|
|
3532
3591
|
|
|
3533
3592
|
|
|
3534
3593
|
/**
|
|
3535
3594
|
* @param {string} value
|
|
3536
|
-
* @return {!proto.wechaty.puppet.
|
|
3595
|
+
* @return {!proto.wechaty.puppet.MessageSendFileRequest} returns this
|
|
3537
3596
|
*/
|
|
3538
|
-
proto.wechaty.puppet.
|
|
3597
|
+
proto.wechaty.puppet.MessageSendFileRequest.prototype.setConversationId = function(value) {
|
|
3539
3598
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
3540
3599
|
};
|
|
3541
3600
|
|
|
3542
3601
|
|
|
3543
3602
|
/**
|
|
3544
|
-
* optional string
|
|
3603
|
+
* optional string file_box = 2;
|
|
3545
3604
|
* @return {string}
|
|
3546
3605
|
*/
|
|
3547
|
-
proto.wechaty.puppet.
|
|
3606
|
+
proto.wechaty.puppet.MessageSendFileRequest.prototype.getFileBox = function() {
|
|
3548
3607
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
3549
3608
|
};
|
|
3550
3609
|
|
|
3551
3610
|
|
|
3552
3611
|
/**
|
|
3553
3612
|
* @param {string} value
|
|
3554
|
-
* @return {!proto.wechaty.puppet.
|
|
3613
|
+
* @return {!proto.wechaty.puppet.MessageSendFileRequest} returns this
|
|
3555
3614
|
*/
|
|
3556
|
-
proto.wechaty.puppet.
|
|
3615
|
+
proto.wechaty.puppet.MessageSendFileRequest.prototype.setFileBox = function(value) {
|
|
3557
3616
|
return jspb.Message.setProto3StringField(this, 2, value);
|
|
3558
3617
|
};
|
|
3559
3618
|
|
|
3560
3619
|
|
|
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
3620
|
|
|
3599
3621
|
|
|
3600
3622
|
|
|
@@ -3611,8 +3633,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
3611
3633
|
* http://goto/soy-param-migration
|
|
3612
3634
|
* @return {!Object}
|
|
3613
3635
|
*/
|
|
3614
|
-
proto.wechaty.puppet.
|
|
3615
|
-
return proto.wechaty.puppet.
|
|
3636
|
+
proto.wechaty.puppet.MessageSendFileResponse.prototype.toObject = function(opt_includeInstance) {
|
|
3637
|
+
return proto.wechaty.puppet.MessageSendFileResponse.toObject(opt_includeInstance, this);
|
|
3616
3638
|
};
|
|
3617
3639
|
|
|
3618
3640
|
|
|
@@ -3621,11 +3643,11 @@ proto.wechaty.puppet.MessageSendTextResponse.prototype.toObject = function(opt_i
|
|
|
3621
3643
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3622
3644
|
* the JSPB instance for transitional soy proto support:
|
|
3623
3645
|
* http://goto/soy-param-migration
|
|
3624
|
-
* @param {!proto.wechaty.puppet.
|
|
3646
|
+
* @param {!proto.wechaty.puppet.MessageSendFileResponse} msg The msg instance to transform.
|
|
3625
3647
|
* @return {!Object}
|
|
3626
3648
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3627
3649
|
*/
|
|
3628
|
-
proto.wechaty.puppet.
|
|
3650
|
+
proto.wechaty.puppet.MessageSendFileResponse.toObject = function(includeInstance, msg) {
|
|
3629
3651
|
var f, obj = {
|
|
3630
3652
|
idStringValueDeprecated: (f = msg.getIdStringValueDeprecated()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
|
|
3631
3653
|
id: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
@@ -3642,23 +3664,23 @@ proto.wechaty.puppet.MessageSendTextResponse.toObject = function(includeInstance
|
|
|
3642
3664
|
/**
|
|
3643
3665
|
* Deserializes binary data (in protobuf wire format).
|
|
3644
3666
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3645
|
-
* @return {!proto.wechaty.puppet.
|
|
3667
|
+
* @return {!proto.wechaty.puppet.MessageSendFileResponse}
|
|
3646
3668
|
*/
|
|
3647
|
-
proto.wechaty.puppet.
|
|
3669
|
+
proto.wechaty.puppet.MessageSendFileResponse.deserializeBinary = function(bytes) {
|
|
3648
3670
|
var reader = new jspb.BinaryReader(bytes);
|
|
3649
|
-
var msg = new proto.wechaty.puppet.
|
|
3650
|
-
return proto.wechaty.puppet.
|
|
3671
|
+
var msg = new proto.wechaty.puppet.MessageSendFileResponse;
|
|
3672
|
+
return proto.wechaty.puppet.MessageSendFileResponse.deserializeBinaryFromReader(msg, reader);
|
|
3651
3673
|
};
|
|
3652
3674
|
|
|
3653
3675
|
|
|
3654
3676
|
/**
|
|
3655
3677
|
* Deserializes binary data (in protobuf wire format) from the
|
|
3656
3678
|
* given reader into the given message object.
|
|
3657
|
-
* @param {!proto.wechaty.puppet.
|
|
3679
|
+
* @param {!proto.wechaty.puppet.MessageSendFileResponse} msg The message object to deserialize into.
|
|
3658
3680
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3659
|
-
* @return {!proto.wechaty.puppet.
|
|
3681
|
+
* @return {!proto.wechaty.puppet.MessageSendFileResponse}
|
|
3660
3682
|
*/
|
|
3661
|
-
proto.wechaty.puppet.
|
|
3683
|
+
proto.wechaty.puppet.MessageSendFileResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
3662
3684
|
while (reader.nextField()) {
|
|
3663
3685
|
if (reader.isEndGroup()) {
|
|
3664
3686
|
break;
|
|
@@ -3687,9 +3709,9 @@ proto.wechaty.puppet.MessageSendTextResponse.deserializeBinaryFromReader = funct
|
|
|
3687
3709
|
* Serializes the message to binary data (in protobuf wire format).
|
|
3688
3710
|
* @return {!Uint8Array}
|
|
3689
3711
|
*/
|
|
3690
|
-
proto.wechaty.puppet.
|
|
3712
|
+
proto.wechaty.puppet.MessageSendFileResponse.prototype.serializeBinary = function() {
|
|
3691
3713
|
var writer = new jspb.BinaryWriter();
|
|
3692
|
-
proto.wechaty.puppet.
|
|
3714
|
+
proto.wechaty.puppet.MessageSendFileResponse.serializeBinaryToWriter(this, writer);
|
|
3693
3715
|
return writer.getResultBuffer();
|
|
3694
3716
|
};
|
|
3695
3717
|
|
|
@@ -3697,11 +3719,11 @@ proto.wechaty.puppet.MessageSendTextResponse.prototype.serializeBinary = functio
|
|
|
3697
3719
|
/**
|
|
3698
3720
|
* Serializes the given message to binary data (in protobuf wire
|
|
3699
3721
|
* format), writing to the given BinaryWriter.
|
|
3700
|
-
* @param {!proto.wechaty.puppet.
|
|
3722
|
+
* @param {!proto.wechaty.puppet.MessageSendFileResponse} message
|
|
3701
3723
|
* @param {!jspb.BinaryWriter} writer
|
|
3702
3724
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3703
3725
|
*/
|
|
3704
|
-
proto.wechaty.puppet.
|
|
3726
|
+
proto.wechaty.puppet.MessageSendFileResponse.serializeBinaryToWriter = function(message, writer) {
|
|
3705
3727
|
var f = undefined;
|
|
3706
3728
|
f = message.getIdStringValueDeprecated();
|
|
3707
3729
|
if (f != null) {
|
|
@@ -3725,7 +3747,7 @@ proto.wechaty.puppet.MessageSendTextResponse.serializeBinaryToWriter = function(
|
|
|
3725
3747
|
* optional google.protobuf.StringValue id_string_value_deprecated = 1;
|
|
3726
3748
|
* @return {?proto.google.protobuf.StringValue}
|
|
3727
3749
|
*/
|
|
3728
|
-
proto.wechaty.puppet.
|
|
3750
|
+
proto.wechaty.puppet.MessageSendFileResponse.prototype.getIdStringValueDeprecated = function() {
|
|
3729
3751
|
return /** @type{?proto.google.protobuf.StringValue} */ (
|
|
3730
3752
|
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 1));
|
|
3731
3753
|
};
|
|
@@ -3733,18 +3755,18 @@ proto.wechaty.puppet.MessageSendTextResponse.prototype.getIdStringValueDeprecate
|
|
|
3733
3755
|
|
|
3734
3756
|
/**
|
|
3735
3757
|
* @param {?proto.google.protobuf.StringValue|undefined} value
|
|
3736
|
-
* @return {!proto.wechaty.puppet.
|
|
3758
|
+
* @return {!proto.wechaty.puppet.MessageSendFileResponse} returns this
|
|
3737
3759
|
*/
|
|
3738
|
-
proto.wechaty.puppet.
|
|
3760
|
+
proto.wechaty.puppet.MessageSendFileResponse.prototype.setIdStringValueDeprecated = function(value) {
|
|
3739
3761
|
return jspb.Message.setWrapperField(this, 1, value);
|
|
3740
3762
|
};
|
|
3741
3763
|
|
|
3742
3764
|
|
|
3743
3765
|
/**
|
|
3744
3766
|
* Clears the message field making it undefined.
|
|
3745
|
-
* @return {!proto.wechaty.puppet.
|
|
3767
|
+
* @return {!proto.wechaty.puppet.MessageSendFileResponse} returns this
|
|
3746
3768
|
*/
|
|
3747
|
-
proto.wechaty.puppet.
|
|
3769
|
+
proto.wechaty.puppet.MessageSendFileResponse.prototype.clearIdStringValueDeprecated = function() {
|
|
3748
3770
|
return this.setIdStringValueDeprecated(undefined);
|
|
3749
3771
|
};
|
|
3750
3772
|
|
|
@@ -3753,7 +3775,7 @@ proto.wechaty.puppet.MessageSendTextResponse.prototype.clearIdStringValueDepreca
|
|
|
3753
3775
|
* Returns whether this field is set.
|
|
3754
3776
|
* @return {boolean}
|
|
3755
3777
|
*/
|
|
3756
|
-
proto.wechaty.puppet.
|
|
3778
|
+
proto.wechaty.puppet.MessageSendFileResponse.prototype.hasIdStringValueDeprecated = function() {
|
|
3757
3779
|
return jspb.Message.getField(this, 1) != null;
|
|
3758
3780
|
};
|
|
3759
3781
|
|
|
@@ -3762,21 +3784,28 @@ proto.wechaty.puppet.MessageSendTextResponse.prototype.hasIdStringValueDeprecate
|
|
|
3762
3784
|
* optional string id = 2;
|
|
3763
3785
|
* @return {string}
|
|
3764
3786
|
*/
|
|
3765
|
-
proto.wechaty.puppet.
|
|
3787
|
+
proto.wechaty.puppet.MessageSendFileResponse.prototype.getId = function() {
|
|
3766
3788
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
3767
3789
|
};
|
|
3768
3790
|
|
|
3769
3791
|
|
|
3770
3792
|
/**
|
|
3771
3793
|
* @param {string} value
|
|
3772
|
-
* @return {!proto.wechaty.puppet.
|
|
3794
|
+
* @return {!proto.wechaty.puppet.MessageSendFileResponse} returns this
|
|
3773
3795
|
*/
|
|
3774
|
-
proto.wechaty.puppet.
|
|
3796
|
+
proto.wechaty.puppet.MessageSendFileResponse.prototype.setId = function(value) {
|
|
3775
3797
|
return jspb.Message.setProto3StringField(this, 2, value);
|
|
3776
3798
|
};
|
|
3777
3799
|
|
|
3778
3800
|
|
|
3779
3801
|
|
|
3802
|
+
/**
|
|
3803
|
+
* List of repeated fields within this message type.
|
|
3804
|
+
* @private {!Array<number>}
|
|
3805
|
+
* @const
|
|
3806
|
+
*/
|
|
3807
|
+
proto.wechaty.puppet.MessageSendTextRequest.repeatedFields_ = [3];
|
|
3808
|
+
|
|
3780
3809
|
|
|
3781
3810
|
|
|
3782
3811
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -3792,8 +3821,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
3792
3821
|
* http://goto/soy-param-migration
|
|
3793
3822
|
* @return {!Object}
|
|
3794
3823
|
*/
|
|
3795
|
-
proto.wechaty.puppet.
|
|
3796
|
-
return proto.wechaty.puppet.
|
|
3824
|
+
proto.wechaty.puppet.MessageSendTextRequest.prototype.toObject = function(opt_includeInstance) {
|
|
3825
|
+
return proto.wechaty.puppet.MessageSendTextRequest.toObject(opt_includeInstance, this);
|
|
3797
3826
|
};
|
|
3798
3827
|
|
|
3799
3828
|
|
|
@@ -3802,15 +3831,16 @@ proto.wechaty.puppet.MessageSendMiniProgramRequest.prototype.toObject = function
|
|
|
3802
3831
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3803
3832
|
* the JSPB instance for transitional soy proto support:
|
|
3804
3833
|
* http://goto/soy-param-migration
|
|
3805
|
-
* @param {!proto.wechaty.puppet.
|
|
3834
|
+
* @param {!proto.wechaty.puppet.MessageSendTextRequest} msg The msg instance to transform.
|
|
3806
3835
|
* @return {!Object}
|
|
3807
3836
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3808
3837
|
*/
|
|
3809
|
-
proto.wechaty.puppet.
|
|
3838
|
+
proto.wechaty.puppet.MessageSendTextRequest.toObject = function(includeInstance, msg) {
|
|
3810
3839
|
var f, obj = {
|
|
3811
3840
|
conversationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
3812
|
-
|
|
3813
|
-
|
|
3841
|
+
text: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
3842
|
+
mentionalIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
|
|
3843
|
+
quoteId: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
3814
3844
|
};
|
|
3815
3845
|
|
|
3816
3846
|
if (includeInstance) {
|
|
@@ -3824,23 +3854,23 @@ proto.wechaty.puppet.MessageSendMiniProgramRequest.toObject = function(includeIn
|
|
|
3824
3854
|
/**
|
|
3825
3855
|
* Deserializes binary data (in protobuf wire format).
|
|
3826
3856
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3827
|
-
* @return {!proto.wechaty.puppet.
|
|
3857
|
+
* @return {!proto.wechaty.puppet.MessageSendTextRequest}
|
|
3828
3858
|
*/
|
|
3829
|
-
proto.wechaty.puppet.
|
|
3859
|
+
proto.wechaty.puppet.MessageSendTextRequest.deserializeBinary = function(bytes) {
|
|
3830
3860
|
var reader = new jspb.BinaryReader(bytes);
|
|
3831
|
-
var msg = new proto.wechaty.puppet.
|
|
3832
|
-
return proto.wechaty.puppet.
|
|
3861
|
+
var msg = new proto.wechaty.puppet.MessageSendTextRequest;
|
|
3862
|
+
return proto.wechaty.puppet.MessageSendTextRequest.deserializeBinaryFromReader(msg, reader);
|
|
3833
3863
|
};
|
|
3834
3864
|
|
|
3835
3865
|
|
|
3836
3866
|
/**
|
|
3837
3867
|
* Deserializes binary data (in protobuf wire format) from the
|
|
3838
3868
|
* given reader into the given message object.
|
|
3839
|
-
* @param {!proto.wechaty.puppet.
|
|
3869
|
+
* @param {!proto.wechaty.puppet.MessageSendTextRequest} msg The message object to deserialize into.
|
|
3840
3870
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3841
|
-
* @return {!proto.wechaty.puppet.
|
|
3871
|
+
* @return {!proto.wechaty.puppet.MessageSendTextRequest}
|
|
3842
3872
|
*/
|
|
3843
|
-
proto.wechaty.puppet.
|
|
3873
|
+
proto.wechaty.puppet.MessageSendTextRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
3844
3874
|
while (reader.nextField()) {
|
|
3845
3875
|
if (reader.isEndGroup()) {
|
|
3846
3876
|
break;
|
|
@@ -3853,12 +3883,15 @@ proto.wechaty.puppet.MessageSendMiniProgramRequest.deserializeBinaryFromReader =
|
|
|
3853
3883
|
break;
|
|
3854
3884
|
case 2:
|
|
3855
3885
|
var value = /** @type {string} */ (reader.readString());
|
|
3856
|
-
msg.
|
|
3886
|
+
msg.setText(value);
|
|
3857
3887
|
break;
|
|
3858
3888
|
case 3:
|
|
3859
|
-
var value =
|
|
3860
|
-
|
|
3861
|
-
|
|
3889
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3890
|
+
msg.addMentionalIds(value);
|
|
3891
|
+
break;
|
|
3892
|
+
case 4:
|
|
3893
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3894
|
+
msg.setQuoteId(value);
|
|
3862
3895
|
break;
|
|
3863
3896
|
default:
|
|
3864
3897
|
reader.skipField();
|
|
@@ -3873,9 +3906,9 @@ proto.wechaty.puppet.MessageSendMiniProgramRequest.deserializeBinaryFromReader =
|
|
|
3873
3906
|
* Serializes the message to binary data (in protobuf wire format).
|
|
3874
3907
|
* @return {!Uint8Array}
|
|
3875
3908
|
*/
|
|
3876
|
-
proto.wechaty.puppet.
|
|
3909
|
+
proto.wechaty.puppet.MessageSendTextRequest.prototype.serializeBinary = function() {
|
|
3877
3910
|
var writer = new jspb.BinaryWriter();
|
|
3878
|
-
proto.wechaty.puppet.
|
|
3911
|
+
proto.wechaty.puppet.MessageSendTextRequest.serializeBinaryToWriter(this, writer);
|
|
3879
3912
|
return writer.getResultBuffer();
|
|
3880
3913
|
};
|
|
3881
3914
|
|
|
@@ -3883,11 +3916,11 @@ proto.wechaty.puppet.MessageSendMiniProgramRequest.prototype.serializeBinary = f
|
|
|
3883
3916
|
/**
|
|
3884
3917
|
* Serializes the given message to binary data (in protobuf wire
|
|
3885
3918
|
* format), writing to the given BinaryWriter.
|
|
3886
|
-
* @param {!proto.wechaty.puppet.
|
|
3919
|
+
* @param {!proto.wechaty.puppet.MessageSendTextRequest} message
|
|
3887
3920
|
* @param {!jspb.BinaryWriter} writer
|
|
3888
3921
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3889
3922
|
*/
|
|
3890
|
-
proto.wechaty.puppet.
|
|
3923
|
+
proto.wechaty.puppet.MessageSendTextRequest.serializeBinaryToWriter = function(message, writer) {
|
|
3891
3924
|
var f = undefined;
|
|
3892
3925
|
f = message.getConversationId();
|
|
3893
3926
|
if (f.length > 0) {
|
|
@@ -3896,19 +3929,25 @@ proto.wechaty.puppet.MessageSendMiniProgramRequest.serializeBinaryToWriter = fun
|
|
|
3896
3929
|
f
|
|
3897
3930
|
);
|
|
3898
3931
|
}
|
|
3899
|
-
f = message.
|
|
3932
|
+
f = message.getText();
|
|
3900
3933
|
if (f.length > 0) {
|
|
3901
3934
|
writer.writeString(
|
|
3902
3935
|
2,
|
|
3903
3936
|
f
|
|
3904
3937
|
);
|
|
3905
3938
|
}
|
|
3906
|
-
f = message.
|
|
3907
|
-
if (f
|
|
3908
|
-
writer.
|
|
3939
|
+
f = message.getMentionalIdsList();
|
|
3940
|
+
if (f.length > 0) {
|
|
3941
|
+
writer.writeRepeatedString(
|
|
3909
3942
|
3,
|
|
3910
|
-
f
|
|
3911
|
-
|
|
3943
|
+
f
|
|
3944
|
+
);
|
|
3945
|
+
}
|
|
3946
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
|
3947
|
+
if (f != null) {
|
|
3948
|
+
writer.writeString(
|
|
3949
|
+
4,
|
|
3950
|
+
f
|
|
3912
3951
|
);
|
|
3913
3952
|
}
|
|
3914
3953
|
};
|
|
@@ -3918,63 +3957,99 @@ proto.wechaty.puppet.MessageSendMiniProgramRequest.serializeBinaryToWriter = fun
|
|
|
3918
3957
|
* optional string conversation_id = 1;
|
|
3919
3958
|
* @return {string}
|
|
3920
3959
|
*/
|
|
3921
|
-
proto.wechaty.puppet.
|
|
3960
|
+
proto.wechaty.puppet.MessageSendTextRequest.prototype.getConversationId = function() {
|
|
3922
3961
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
3923
3962
|
};
|
|
3924
3963
|
|
|
3925
3964
|
|
|
3926
3965
|
/**
|
|
3927
3966
|
* @param {string} value
|
|
3928
|
-
* @return {!proto.wechaty.puppet.
|
|
3967
|
+
* @return {!proto.wechaty.puppet.MessageSendTextRequest} returns this
|
|
3929
3968
|
*/
|
|
3930
|
-
proto.wechaty.puppet.
|
|
3969
|
+
proto.wechaty.puppet.MessageSendTextRequest.prototype.setConversationId = function(value) {
|
|
3931
3970
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
3932
3971
|
};
|
|
3933
3972
|
|
|
3934
3973
|
|
|
3935
3974
|
/**
|
|
3936
|
-
* optional string
|
|
3975
|
+
* optional string text = 2;
|
|
3937
3976
|
* @return {string}
|
|
3938
3977
|
*/
|
|
3939
|
-
proto.wechaty.puppet.
|
|
3978
|
+
proto.wechaty.puppet.MessageSendTextRequest.prototype.getText = function() {
|
|
3940
3979
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
3941
3980
|
};
|
|
3942
3981
|
|
|
3943
3982
|
|
|
3944
3983
|
/**
|
|
3945
3984
|
* @param {string} value
|
|
3946
|
-
* @return {!proto.wechaty.puppet.
|
|
3985
|
+
* @return {!proto.wechaty.puppet.MessageSendTextRequest} returns this
|
|
3947
3986
|
*/
|
|
3948
|
-
proto.wechaty.puppet.
|
|
3987
|
+
proto.wechaty.puppet.MessageSendTextRequest.prototype.setText = function(value) {
|
|
3949
3988
|
return jspb.Message.setProto3StringField(this, 2, value);
|
|
3950
3989
|
};
|
|
3951
3990
|
|
|
3952
3991
|
|
|
3953
3992
|
/**
|
|
3954
|
-
*
|
|
3955
|
-
* @return {
|
|
3993
|
+
* repeated string mentional_ids = 3;
|
|
3994
|
+
* @return {!Array<string>}
|
|
3956
3995
|
*/
|
|
3957
|
-
proto.wechaty.puppet.
|
|
3958
|
-
return /** @type{
|
|
3959
|
-
jspb.Message.getWrapperField(this, wechaty_puppet_mini$program_pb.MiniProgramPayload, 3));
|
|
3996
|
+
proto.wechaty.puppet.MessageSendTextRequest.prototype.getMentionalIdsList = function() {
|
|
3997
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
|
|
3960
3998
|
};
|
|
3961
3999
|
|
|
3962
4000
|
|
|
3963
4001
|
/**
|
|
3964
|
-
* @param {
|
|
3965
|
-
* @return {!proto.wechaty.puppet.
|
|
3966
|
-
*/
|
|
3967
|
-
proto.wechaty.puppet.
|
|
3968
|
-
return jspb.Message.
|
|
4002
|
+
* @param {!Array<string>} value
|
|
4003
|
+
* @return {!proto.wechaty.puppet.MessageSendTextRequest} returns this
|
|
4004
|
+
*/
|
|
4005
|
+
proto.wechaty.puppet.MessageSendTextRequest.prototype.setMentionalIdsList = function(value) {
|
|
4006
|
+
return jspb.Message.setField(this, 3, value || []);
|
|
3969
4007
|
};
|
|
3970
4008
|
|
|
3971
4009
|
|
|
3972
4010
|
/**
|
|
3973
|
-
*
|
|
3974
|
-
* @
|
|
4011
|
+
* @param {string} value
|
|
4012
|
+
* @param {number=} opt_index
|
|
4013
|
+
* @return {!proto.wechaty.puppet.MessageSendTextRequest} returns this
|
|
3975
4014
|
*/
|
|
3976
|
-
proto.wechaty.puppet.
|
|
3977
|
-
return
|
|
4015
|
+
proto.wechaty.puppet.MessageSendTextRequest.prototype.addMentionalIds = function(value, opt_index) {
|
|
4016
|
+
return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
|
|
4017
|
+
};
|
|
4018
|
+
|
|
4019
|
+
|
|
4020
|
+
/**
|
|
4021
|
+
* Clears the list making it empty but non-null.
|
|
4022
|
+
* @return {!proto.wechaty.puppet.MessageSendTextRequest} returns this
|
|
4023
|
+
*/
|
|
4024
|
+
proto.wechaty.puppet.MessageSendTextRequest.prototype.clearMentionalIdsList = function() {
|
|
4025
|
+
return this.setMentionalIdsList([]);
|
|
4026
|
+
};
|
|
4027
|
+
|
|
4028
|
+
|
|
4029
|
+
/**
|
|
4030
|
+
* optional string quote_id = 4;
|
|
4031
|
+
* @return {string}
|
|
4032
|
+
*/
|
|
4033
|
+
proto.wechaty.puppet.MessageSendTextRequest.prototype.getQuoteId = function() {
|
|
4034
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
4035
|
+
};
|
|
4036
|
+
|
|
4037
|
+
|
|
4038
|
+
/**
|
|
4039
|
+
* @param {string} value
|
|
4040
|
+
* @return {!proto.wechaty.puppet.MessageSendTextRequest} returns this
|
|
4041
|
+
*/
|
|
4042
|
+
proto.wechaty.puppet.MessageSendTextRequest.prototype.setQuoteId = function(value) {
|
|
4043
|
+
return jspb.Message.setField(this, 4, value);
|
|
4044
|
+
};
|
|
4045
|
+
|
|
4046
|
+
|
|
4047
|
+
/**
|
|
4048
|
+
* Clears the field making it undefined.
|
|
4049
|
+
* @return {!proto.wechaty.puppet.MessageSendTextRequest} returns this
|
|
4050
|
+
*/
|
|
4051
|
+
proto.wechaty.puppet.MessageSendTextRequest.prototype.clearQuoteId = function() {
|
|
4052
|
+
return jspb.Message.setField(this, 4, undefined);
|
|
3978
4053
|
};
|
|
3979
4054
|
|
|
3980
4055
|
|
|
@@ -3982,8 +4057,8 @@ proto.wechaty.puppet.MessageSendMiniProgramRequest.prototype.clearMiniProgram =
|
|
|
3982
4057
|
* Returns whether this field is set.
|
|
3983
4058
|
* @return {boolean}
|
|
3984
4059
|
*/
|
|
3985
|
-
proto.wechaty.puppet.
|
|
3986
|
-
return jspb.Message.getField(this,
|
|
4060
|
+
proto.wechaty.puppet.MessageSendTextRequest.prototype.hasQuoteId = function() {
|
|
4061
|
+
return jspb.Message.getField(this, 4) != null;
|
|
3987
4062
|
};
|
|
3988
4063
|
|
|
3989
4064
|
|
|
@@ -4003,8 +4078,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
4003
4078
|
* http://goto/soy-param-migration
|
|
4004
4079
|
* @return {!Object}
|
|
4005
4080
|
*/
|
|
4006
|
-
proto.wechaty.puppet.
|
|
4007
|
-
return proto.wechaty.puppet.
|
|
4081
|
+
proto.wechaty.puppet.MessageSendTextResponse.prototype.toObject = function(opt_includeInstance) {
|
|
4082
|
+
return proto.wechaty.puppet.MessageSendTextResponse.toObject(opt_includeInstance, this);
|
|
4008
4083
|
};
|
|
4009
4084
|
|
|
4010
4085
|
|
|
@@ -4013,11 +4088,11 @@ proto.wechaty.puppet.MessageSendMiniProgramResponse.prototype.toObject = functio
|
|
|
4013
4088
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4014
4089
|
* the JSPB instance for transitional soy proto support:
|
|
4015
4090
|
* http://goto/soy-param-migration
|
|
4016
|
-
* @param {!proto.wechaty.puppet.
|
|
4091
|
+
* @param {!proto.wechaty.puppet.MessageSendTextResponse} msg The msg instance to transform.
|
|
4017
4092
|
* @return {!Object}
|
|
4018
4093
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4019
4094
|
*/
|
|
4020
|
-
proto.wechaty.puppet.
|
|
4095
|
+
proto.wechaty.puppet.MessageSendTextResponse.toObject = function(includeInstance, msg) {
|
|
4021
4096
|
var f, obj = {
|
|
4022
4097
|
idStringValueDeprecated: (f = msg.getIdStringValueDeprecated()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
|
|
4023
4098
|
id: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
@@ -4034,23 +4109,23 @@ proto.wechaty.puppet.MessageSendMiniProgramResponse.toObject = function(includeI
|
|
|
4034
4109
|
/**
|
|
4035
4110
|
* Deserializes binary data (in protobuf wire format).
|
|
4036
4111
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4037
|
-
* @return {!proto.wechaty.puppet.
|
|
4112
|
+
* @return {!proto.wechaty.puppet.MessageSendTextResponse}
|
|
4038
4113
|
*/
|
|
4039
|
-
proto.wechaty.puppet.
|
|
4114
|
+
proto.wechaty.puppet.MessageSendTextResponse.deserializeBinary = function(bytes) {
|
|
4040
4115
|
var reader = new jspb.BinaryReader(bytes);
|
|
4041
|
-
var msg = new proto.wechaty.puppet.
|
|
4042
|
-
return proto.wechaty.puppet.
|
|
4116
|
+
var msg = new proto.wechaty.puppet.MessageSendTextResponse;
|
|
4117
|
+
return proto.wechaty.puppet.MessageSendTextResponse.deserializeBinaryFromReader(msg, reader);
|
|
4043
4118
|
};
|
|
4044
4119
|
|
|
4045
4120
|
|
|
4046
4121
|
/**
|
|
4047
4122
|
* Deserializes binary data (in protobuf wire format) from the
|
|
4048
4123
|
* given reader into the given message object.
|
|
4049
|
-
* @param {!proto.wechaty.puppet.
|
|
4124
|
+
* @param {!proto.wechaty.puppet.MessageSendTextResponse} msg The message object to deserialize into.
|
|
4050
4125
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4051
|
-
* @return {!proto.wechaty.puppet.
|
|
4126
|
+
* @return {!proto.wechaty.puppet.MessageSendTextResponse}
|
|
4052
4127
|
*/
|
|
4053
|
-
proto.wechaty.puppet.
|
|
4128
|
+
proto.wechaty.puppet.MessageSendTextResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
4054
4129
|
while (reader.nextField()) {
|
|
4055
4130
|
if (reader.isEndGroup()) {
|
|
4056
4131
|
break;
|
|
@@ -4079,9 +4154,9 @@ proto.wechaty.puppet.MessageSendMiniProgramResponse.deserializeBinaryFromReader
|
|
|
4079
4154
|
* Serializes the message to binary data (in protobuf wire format).
|
|
4080
4155
|
* @return {!Uint8Array}
|
|
4081
4156
|
*/
|
|
4082
|
-
proto.wechaty.puppet.
|
|
4157
|
+
proto.wechaty.puppet.MessageSendTextResponse.prototype.serializeBinary = function() {
|
|
4083
4158
|
var writer = new jspb.BinaryWriter();
|
|
4084
|
-
proto.wechaty.puppet.
|
|
4159
|
+
proto.wechaty.puppet.MessageSendTextResponse.serializeBinaryToWriter(this, writer);
|
|
4085
4160
|
return writer.getResultBuffer();
|
|
4086
4161
|
};
|
|
4087
4162
|
|
|
@@ -4089,11 +4164,11 @@ proto.wechaty.puppet.MessageSendMiniProgramResponse.prototype.serializeBinary =
|
|
|
4089
4164
|
/**
|
|
4090
4165
|
* Serializes the given message to binary data (in protobuf wire
|
|
4091
4166
|
* format), writing to the given BinaryWriter.
|
|
4092
|
-
* @param {!proto.wechaty.puppet.
|
|
4167
|
+
* @param {!proto.wechaty.puppet.MessageSendTextResponse} message
|
|
4093
4168
|
* @param {!jspb.BinaryWriter} writer
|
|
4094
4169
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4095
4170
|
*/
|
|
4096
|
-
proto.wechaty.puppet.
|
|
4171
|
+
proto.wechaty.puppet.MessageSendTextResponse.serializeBinaryToWriter = function(message, writer) {
|
|
4097
4172
|
var f = undefined;
|
|
4098
4173
|
f = message.getIdStringValueDeprecated();
|
|
4099
4174
|
if (f != null) {
|
|
@@ -4117,7 +4192,7 @@ proto.wechaty.puppet.MessageSendMiniProgramResponse.serializeBinaryToWriter = fu
|
|
|
4117
4192
|
* optional google.protobuf.StringValue id_string_value_deprecated = 1;
|
|
4118
4193
|
* @return {?proto.google.protobuf.StringValue}
|
|
4119
4194
|
*/
|
|
4120
|
-
proto.wechaty.puppet.
|
|
4195
|
+
proto.wechaty.puppet.MessageSendTextResponse.prototype.getIdStringValueDeprecated = function() {
|
|
4121
4196
|
return /** @type{?proto.google.protobuf.StringValue} */ (
|
|
4122
4197
|
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 1));
|
|
4123
4198
|
};
|
|
@@ -4125,18 +4200,18 @@ proto.wechaty.puppet.MessageSendMiniProgramResponse.prototype.getIdStringValueDe
|
|
|
4125
4200
|
|
|
4126
4201
|
/**
|
|
4127
4202
|
* @param {?proto.google.protobuf.StringValue|undefined} value
|
|
4128
|
-
* @return {!proto.wechaty.puppet.
|
|
4203
|
+
* @return {!proto.wechaty.puppet.MessageSendTextResponse} returns this
|
|
4129
4204
|
*/
|
|
4130
|
-
proto.wechaty.puppet.
|
|
4205
|
+
proto.wechaty.puppet.MessageSendTextResponse.prototype.setIdStringValueDeprecated = function(value) {
|
|
4131
4206
|
return jspb.Message.setWrapperField(this, 1, value);
|
|
4132
4207
|
};
|
|
4133
4208
|
|
|
4134
4209
|
|
|
4135
4210
|
/**
|
|
4136
4211
|
* Clears the message field making it undefined.
|
|
4137
|
-
* @return {!proto.wechaty.puppet.
|
|
4212
|
+
* @return {!proto.wechaty.puppet.MessageSendTextResponse} returns this
|
|
4138
4213
|
*/
|
|
4139
|
-
proto.wechaty.puppet.
|
|
4214
|
+
proto.wechaty.puppet.MessageSendTextResponse.prototype.clearIdStringValueDeprecated = function() {
|
|
4140
4215
|
return this.setIdStringValueDeprecated(undefined);
|
|
4141
4216
|
};
|
|
4142
4217
|
|
|
@@ -4145,7 +4220,7 @@ proto.wechaty.puppet.MessageSendMiniProgramResponse.prototype.clearIdStringValue
|
|
|
4145
4220
|
* Returns whether this field is set.
|
|
4146
4221
|
* @return {boolean}
|
|
4147
4222
|
*/
|
|
4148
|
-
proto.wechaty.puppet.
|
|
4223
|
+
proto.wechaty.puppet.MessageSendTextResponse.prototype.hasIdStringValueDeprecated = function() {
|
|
4149
4224
|
return jspb.Message.getField(this, 1) != null;
|
|
4150
4225
|
};
|
|
4151
4226
|
|
|
@@ -4154,16 +4229,16 @@ proto.wechaty.puppet.MessageSendMiniProgramResponse.prototype.hasIdStringValueDe
|
|
|
4154
4229
|
* optional string id = 2;
|
|
4155
4230
|
* @return {string}
|
|
4156
4231
|
*/
|
|
4157
|
-
proto.wechaty.puppet.
|
|
4232
|
+
proto.wechaty.puppet.MessageSendTextResponse.prototype.getId = function() {
|
|
4158
4233
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
4159
4234
|
};
|
|
4160
4235
|
|
|
4161
4236
|
|
|
4162
4237
|
/**
|
|
4163
4238
|
* @param {string} value
|
|
4164
|
-
* @return {!proto.wechaty.puppet.
|
|
4239
|
+
* @return {!proto.wechaty.puppet.MessageSendTextResponse} returns this
|
|
4165
4240
|
*/
|
|
4166
|
-
proto.wechaty.puppet.
|
|
4241
|
+
proto.wechaty.puppet.MessageSendTextResponse.prototype.setId = function(value) {
|
|
4167
4242
|
return jspb.Message.setProto3StringField(this, 2, value);
|
|
4168
4243
|
};
|
|
4169
4244
|
|
|
@@ -4184,8 +4259,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
4184
4259
|
* http://goto/soy-param-migration
|
|
4185
4260
|
* @return {!Object}
|
|
4186
4261
|
*/
|
|
4187
|
-
proto.wechaty.puppet.
|
|
4188
|
-
return proto.wechaty.puppet.
|
|
4262
|
+
proto.wechaty.puppet.MessageSendMiniProgramRequest.prototype.toObject = function(opt_includeInstance) {
|
|
4263
|
+
return proto.wechaty.puppet.MessageSendMiniProgramRequest.toObject(opt_includeInstance, this);
|
|
4189
4264
|
};
|
|
4190
4265
|
|
|
4191
4266
|
|
|
@@ -4194,15 +4269,15 @@ proto.wechaty.puppet.MessageSendUrlRequest.prototype.toObject = function(opt_inc
|
|
|
4194
4269
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4195
4270
|
* the JSPB instance for transitional soy proto support:
|
|
4196
4271
|
* http://goto/soy-param-migration
|
|
4197
|
-
* @param {!proto.wechaty.puppet.
|
|
4272
|
+
* @param {!proto.wechaty.puppet.MessageSendMiniProgramRequest} msg The msg instance to transform.
|
|
4198
4273
|
* @return {!Object}
|
|
4199
4274
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4200
4275
|
*/
|
|
4201
|
-
proto.wechaty.puppet.
|
|
4276
|
+
proto.wechaty.puppet.MessageSendMiniProgramRequest.toObject = function(includeInstance, msg) {
|
|
4202
4277
|
var f, obj = {
|
|
4203
4278
|
conversationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
4204
|
-
|
|
4205
|
-
|
|
4279
|
+
miniProgramDeprecated: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
4280
|
+
miniProgram: (f = msg.getMiniProgram()) && wechaty_puppet_mini$program_pb.MiniProgramPayload.toObject(includeInstance, f)
|
|
4206
4281
|
};
|
|
4207
4282
|
|
|
4208
4283
|
if (includeInstance) {
|
|
@@ -4216,23 +4291,23 @@ proto.wechaty.puppet.MessageSendUrlRequest.toObject = function(includeInstance,
|
|
|
4216
4291
|
/**
|
|
4217
4292
|
* Deserializes binary data (in protobuf wire format).
|
|
4218
4293
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4219
|
-
* @return {!proto.wechaty.puppet.
|
|
4294
|
+
* @return {!proto.wechaty.puppet.MessageSendMiniProgramRequest}
|
|
4220
4295
|
*/
|
|
4221
|
-
proto.wechaty.puppet.
|
|
4296
|
+
proto.wechaty.puppet.MessageSendMiniProgramRequest.deserializeBinary = function(bytes) {
|
|
4222
4297
|
var reader = new jspb.BinaryReader(bytes);
|
|
4223
|
-
var msg = new proto.wechaty.puppet.
|
|
4224
|
-
return proto.wechaty.puppet.
|
|
4298
|
+
var msg = new proto.wechaty.puppet.MessageSendMiniProgramRequest;
|
|
4299
|
+
return proto.wechaty.puppet.MessageSendMiniProgramRequest.deserializeBinaryFromReader(msg, reader);
|
|
4225
4300
|
};
|
|
4226
4301
|
|
|
4227
4302
|
|
|
4228
4303
|
/**
|
|
4229
4304
|
* Deserializes binary data (in protobuf wire format) from the
|
|
4230
4305
|
* given reader into the given message object.
|
|
4231
|
-
* @param {!proto.wechaty.puppet.
|
|
4306
|
+
* @param {!proto.wechaty.puppet.MessageSendMiniProgramRequest} msg The message object to deserialize into.
|
|
4232
4307
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4233
|
-
* @return {!proto.wechaty.puppet.
|
|
4308
|
+
* @return {!proto.wechaty.puppet.MessageSendMiniProgramRequest}
|
|
4234
4309
|
*/
|
|
4235
|
-
proto.wechaty.puppet.
|
|
4310
|
+
proto.wechaty.puppet.MessageSendMiniProgramRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
4236
4311
|
while (reader.nextField()) {
|
|
4237
4312
|
if (reader.isEndGroup()) {
|
|
4238
4313
|
break;
|
|
@@ -4245,12 +4320,12 @@ proto.wechaty.puppet.MessageSendUrlRequest.deserializeBinaryFromReader = functio
|
|
|
4245
4320
|
break;
|
|
4246
4321
|
case 2:
|
|
4247
4322
|
var value = /** @type {string} */ (reader.readString());
|
|
4248
|
-
msg.
|
|
4323
|
+
msg.setMiniProgramDeprecated(value);
|
|
4249
4324
|
break;
|
|
4250
4325
|
case 3:
|
|
4251
|
-
var value = new
|
|
4252
|
-
reader.readMessage(value,
|
|
4253
|
-
msg.
|
|
4326
|
+
var value = new wechaty_puppet_mini$program_pb.MiniProgramPayload;
|
|
4327
|
+
reader.readMessage(value,wechaty_puppet_mini$program_pb.MiniProgramPayload.deserializeBinaryFromReader);
|
|
4328
|
+
msg.setMiniProgram(value);
|
|
4254
4329
|
break;
|
|
4255
4330
|
default:
|
|
4256
4331
|
reader.skipField();
|
|
@@ -4265,9 +4340,9 @@ proto.wechaty.puppet.MessageSendUrlRequest.deserializeBinaryFromReader = functio
|
|
|
4265
4340
|
* Serializes the message to binary data (in protobuf wire format).
|
|
4266
4341
|
* @return {!Uint8Array}
|
|
4267
4342
|
*/
|
|
4268
|
-
proto.wechaty.puppet.
|
|
4343
|
+
proto.wechaty.puppet.MessageSendMiniProgramRequest.prototype.serializeBinary = function() {
|
|
4269
4344
|
var writer = new jspb.BinaryWriter();
|
|
4270
|
-
proto.wechaty.puppet.
|
|
4345
|
+
proto.wechaty.puppet.MessageSendMiniProgramRequest.serializeBinaryToWriter(this, writer);
|
|
4271
4346
|
return writer.getResultBuffer();
|
|
4272
4347
|
};
|
|
4273
4348
|
|
|
@@ -4275,11 +4350,11 @@ proto.wechaty.puppet.MessageSendUrlRequest.prototype.serializeBinary = function(
|
|
|
4275
4350
|
/**
|
|
4276
4351
|
* Serializes the given message to binary data (in protobuf wire
|
|
4277
4352
|
* format), writing to the given BinaryWriter.
|
|
4278
|
-
* @param {!proto.wechaty.puppet.
|
|
4353
|
+
* @param {!proto.wechaty.puppet.MessageSendMiniProgramRequest} message
|
|
4279
4354
|
* @param {!jspb.BinaryWriter} writer
|
|
4280
4355
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4281
4356
|
*/
|
|
4282
|
-
proto.wechaty.puppet.
|
|
4357
|
+
proto.wechaty.puppet.MessageSendMiniProgramRequest.serializeBinaryToWriter = function(message, writer) {
|
|
4283
4358
|
var f = undefined;
|
|
4284
4359
|
f = message.getConversationId();
|
|
4285
4360
|
if (f.length > 0) {
|
|
@@ -4288,19 +4363,19 @@ proto.wechaty.puppet.MessageSendUrlRequest.serializeBinaryToWriter = function(me
|
|
|
4288
4363
|
f
|
|
4289
4364
|
);
|
|
4290
4365
|
}
|
|
4291
|
-
f = message.
|
|
4366
|
+
f = message.getMiniProgramDeprecated();
|
|
4292
4367
|
if (f.length > 0) {
|
|
4293
4368
|
writer.writeString(
|
|
4294
4369
|
2,
|
|
4295
4370
|
f
|
|
4296
4371
|
);
|
|
4297
4372
|
}
|
|
4298
|
-
f = message.
|
|
4373
|
+
f = message.getMiniProgram();
|
|
4299
4374
|
if (f != null) {
|
|
4300
4375
|
writer.writeMessage(
|
|
4301
4376
|
3,
|
|
4302
4377
|
f,
|
|
4303
|
-
|
|
4378
|
+
wechaty_puppet_mini$program_pb.MiniProgramPayload.serializeBinaryToWriter
|
|
4304
4379
|
);
|
|
4305
4380
|
}
|
|
4306
4381
|
};
|
|
@@ -4310,63 +4385,63 @@ proto.wechaty.puppet.MessageSendUrlRequest.serializeBinaryToWriter = function(me
|
|
|
4310
4385
|
* optional string conversation_id = 1;
|
|
4311
4386
|
* @return {string}
|
|
4312
4387
|
*/
|
|
4313
|
-
proto.wechaty.puppet.
|
|
4388
|
+
proto.wechaty.puppet.MessageSendMiniProgramRequest.prototype.getConversationId = function() {
|
|
4314
4389
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
4315
4390
|
};
|
|
4316
4391
|
|
|
4317
4392
|
|
|
4318
4393
|
/**
|
|
4319
4394
|
* @param {string} value
|
|
4320
|
-
* @return {!proto.wechaty.puppet.
|
|
4395
|
+
* @return {!proto.wechaty.puppet.MessageSendMiniProgramRequest} returns this
|
|
4321
4396
|
*/
|
|
4322
|
-
proto.wechaty.puppet.
|
|
4397
|
+
proto.wechaty.puppet.MessageSendMiniProgramRequest.prototype.setConversationId = function(value) {
|
|
4323
4398
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
4324
4399
|
};
|
|
4325
4400
|
|
|
4326
4401
|
|
|
4327
4402
|
/**
|
|
4328
|
-
* optional string
|
|
4403
|
+
* optional string mini_program_deprecated = 2;
|
|
4329
4404
|
* @return {string}
|
|
4330
4405
|
*/
|
|
4331
|
-
proto.wechaty.puppet.
|
|
4406
|
+
proto.wechaty.puppet.MessageSendMiniProgramRequest.prototype.getMiniProgramDeprecated = function() {
|
|
4332
4407
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
4333
4408
|
};
|
|
4334
4409
|
|
|
4335
4410
|
|
|
4336
4411
|
/**
|
|
4337
4412
|
* @param {string} value
|
|
4338
|
-
* @return {!proto.wechaty.puppet.
|
|
4413
|
+
* @return {!proto.wechaty.puppet.MessageSendMiniProgramRequest} returns this
|
|
4339
4414
|
*/
|
|
4340
|
-
proto.wechaty.puppet.
|
|
4415
|
+
proto.wechaty.puppet.MessageSendMiniProgramRequest.prototype.setMiniProgramDeprecated = function(value) {
|
|
4341
4416
|
return jspb.Message.setProto3StringField(this, 2, value);
|
|
4342
4417
|
};
|
|
4343
4418
|
|
|
4344
4419
|
|
|
4345
4420
|
/**
|
|
4346
|
-
* optional
|
|
4347
|
-
* @return {?proto.wechaty.puppet.
|
|
4421
|
+
* optional MiniProgramPayload mini_program = 3;
|
|
4422
|
+
* @return {?proto.wechaty.puppet.MiniProgramPayload}
|
|
4348
4423
|
*/
|
|
4349
|
-
proto.wechaty.puppet.
|
|
4350
|
-
return /** @type{?proto.wechaty.puppet.
|
|
4351
|
-
jspb.Message.getWrapperField(this,
|
|
4424
|
+
proto.wechaty.puppet.MessageSendMiniProgramRequest.prototype.getMiniProgram = function() {
|
|
4425
|
+
return /** @type{?proto.wechaty.puppet.MiniProgramPayload} */ (
|
|
4426
|
+
jspb.Message.getWrapperField(this, wechaty_puppet_mini$program_pb.MiniProgramPayload, 3));
|
|
4352
4427
|
};
|
|
4353
4428
|
|
|
4354
4429
|
|
|
4355
4430
|
/**
|
|
4356
|
-
* @param {?proto.wechaty.puppet.
|
|
4357
|
-
* @return {!proto.wechaty.puppet.
|
|
4431
|
+
* @param {?proto.wechaty.puppet.MiniProgramPayload|undefined} value
|
|
4432
|
+
* @return {!proto.wechaty.puppet.MessageSendMiniProgramRequest} returns this
|
|
4358
4433
|
*/
|
|
4359
|
-
proto.wechaty.puppet.
|
|
4434
|
+
proto.wechaty.puppet.MessageSendMiniProgramRequest.prototype.setMiniProgram = function(value) {
|
|
4360
4435
|
return jspb.Message.setWrapperField(this, 3, value);
|
|
4361
4436
|
};
|
|
4362
4437
|
|
|
4363
4438
|
|
|
4364
4439
|
/**
|
|
4365
4440
|
* Clears the message field making it undefined.
|
|
4366
|
-
* @return {!proto.wechaty.puppet.
|
|
4441
|
+
* @return {!proto.wechaty.puppet.MessageSendMiniProgramRequest} returns this
|
|
4367
4442
|
*/
|
|
4368
|
-
proto.wechaty.puppet.
|
|
4369
|
-
return this.
|
|
4443
|
+
proto.wechaty.puppet.MessageSendMiniProgramRequest.prototype.clearMiniProgram = function() {
|
|
4444
|
+
return this.setMiniProgram(undefined);
|
|
4370
4445
|
};
|
|
4371
4446
|
|
|
4372
4447
|
|
|
@@ -4374,7 +4449,7 @@ proto.wechaty.puppet.MessageSendUrlRequest.prototype.clearUrlLink = function() {
|
|
|
4374
4449
|
* Returns whether this field is set.
|
|
4375
4450
|
* @return {boolean}
|
|
4376
4451
|
*/
|
|
4377
|
-
proto.wechaty.puppet.
|
|
4452
|
+
proto.wechaty.puppet.MessageSendMiniProgramRequest.prototype.hasMiniProgram = function() {
|
|
4378
4453
|
return jspb.Message.getField(this, 3) != null;
|
|
4379
4454
|
};
|
|
4380
4455
|
|
|
@@ -4395,8 +4470,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
4395
4470
|
* http://goto/soy-param-migration
|
|
4396
4471
|
* @return {!Object}
|
|
4397
4472
|
*/
|
|
4398
|
-
proto.wechaty.puppet.
|
|
4399
|
-
return proto.wechaty.puppet.
|
|
4473
|
+
proto.wechaty.puppet.MessageSendMiniProgramResponse.prototype.toObject = function(opt_includeInstance) {
|
|
4474
|
+
return proto.wechaty.puppet.MessageSendMiniProgramResponse.toObject(opt_includeInstance, this);
|
|
4400
4475
|
};
|
|
4401
4476
|
|
|
4402
4477
|
|
|
@@ -4405,11 +4480,11 @@ proto.wechaty.puppet.MessageSendUrlResponse.prototype.toObject = function(opt_in
|
|
|
4405
4480
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4406
4481
|
* the JSPB instance for transitional soy proto support:
|
|
4407
4482
|
* http://goto/soy-param-migration
|
|
4408
|
-
* @param {!proto.wechaty.puppet.
|
|
4483
|
+
* @param {!proto.wechaty.puppet.MessageSendMiniProgramResponse} msg The msg instance to transform.
|
|
4409
4484
|
* @return {!Object}
|
|
4410
4485
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4411
4486
|
*/
|
|
4412
|
-
proto.wechaty.puppet.
|
|
4487
|
+
proto.wechaty.puppet.MessageSendMiniProgramResponse.toObject = function(includeInstance, msg) {
|
|
4413
4488
|
var f, obj = {
|
|
4414
4489
|
idStringValueDeprecated: (f = msg.getIdStringValueDeprecated()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
|
|
4415
4490
|
id: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
@@ -4426,23 +4501,23 @@ proto.wechaty.puppet.MessageSendUrlResponse.toObject = function(includeInstance,
|
|
|
4426
4501
|
/**
|
|
4427
4502
|
* Deserializes binary data (in protobuf wire format).
|
|
4428
4503
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4429
|
-
* @return {!proto.wechaty.puppet.
|
|
4504
|
+
* @return {!proto.wechaty.puppet.MessageSendMiniProgramResponse}
|
|
4430
4505
|
*/
|
|
4431
|
-
proto.wechaty.puppet.
|
|
4506
|
+
proto.wechaty.puppet.MessageSendMiniProgramResponse.deserializeBinary = function(bytes) {
|
|
4432
4507
|
var reader = new jspb.BinaryReader(bytes);
|
|
4433
|
-
var msg = new proto.wechaty.puppet.
|
|
4434
|
-
return proto.wechaty.puppet.
|
|
4508
|
+
var msg = new proto.wechaty.puppet.MessageSendMiniProgramResponse;
|
|
4509
|
+
return proto.wechaty.puppet.MessageSendMiniProgramResponse.deserializeBinaryFromReader(msg, reader);
|
|
4435
4510
|
};
|
|
4436
4511
|
|
|
4437
4512
|
|
|
4438
4513
|
/**
|
|
4439
4514
|
* Deserializes binary data (in protobuf wire format) from the
|
|
4440
4515
|
* given reader into the given message object.
|
|
4441
|
-
* @param {!proto.wechaty.puppet.
|
|
4516
|
+
* @param {!proto.wechaty.puppet.MessageSendMiniProgramResponse} msg The message object to deserialize into.
|
|
4442
4517
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4443
|
-
* @return {!proto.wechaty.puppet.
|
|
4518
|
+
* @return {!proto.wechaty.puppet.MessageSendMiniProgramResponse}
|
|
4444
4519
|
*/
|
|
4445
|
-
proto.wechaty.puppet.
|
|
4520
|
+
proto.wechaty.puppet.MessageSendMiniProgramResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
4446
4521
|
while (reader.nextField()) {
|
|
4447
4522
|
if (reader.isEndGroup()) {
|
|
4448
4523
|
break;
|
|
@@ -4471,9 +4546,9 @@ proto.wechaty.puppet.MessageSendUrlResponse.deserializeBinaryFromReader = functi
|
|
|
4471
4546
|
* Serializes the message to binary data (in protobuf wire format).
|
|
4472
4547
|
* @return {!Uint8Array}
|
|
4473
4548
|
*/
|
|
4474
|
-
proto.wechaty.puppet.
|
|
4549
|
+
proto.wechaty.puppet.MessageSendMiniProgramResponse.prototype.serializeBinary = function() {
|
|
4475
4550
|
var writer = new jspb.BinaryWriter();
|
|
4476
|
-
proto.wechaty.puppet.
|
|
4551
|
+
proto.wechaty.puppet.MessageSendMiniProgramResponse.serializeBinaryToWriter(this, writer);
|
|
4477
4552
|
return writer.getResultBuffer();
|
|
4478
4553
|
};
|
|
4479
4554
|
|
|
@@ -4481,11 +4556,11 @@ proto.wechaty.puppet.MessageSendUrlResponse.prototype.serializeBinary = function
|
|
|
4481
4556
|
/**
|
|
4482
4557
|
* Serializes the given message to binary data (in protobuf wire
|
|
4483
4558
|
* format), writing to the given BinaryWriter.
|
|
4484
|
-
* @param {!proto.wechaty.puppet.
|
|
4559
|
+
* @param {!proto.wechaty.puppet.MessageSendMiniProgramResponse} message
|
|
4485
4560
|
* @param {!jspb.BinaryWriter} writer
|
|
4486
4561
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4487
4562
|
*/
|
|
4488
|
-
proto.wechaty.puppet.
|
|
4563
|
+
proto.wechaty.puppet.MessageSendMiniProgramResponse.serializeBinaryToWriter = function(message, writer) {
|
|
4489
4564
|
var f = undefined;
|
|
4490
4565
|
f = message.getIdStringValueDeprecated();
|
|
4491
4566
|
if (f != null) {
|
|
@@ -4509,7 +4584,7 @@ proto.wechaty.puppet.MessageSendUrlResponse.serializeBinaryToWriter = function(m
|
|
|
4509
4584
|
* optional google.protobuf.StringValue id_string_value_deprecated = 1;
|
|
4510
4585
|
* @return {?proto.google.protobuf.StringValue}
|
|
4511
4586
|
*/
|
|
4512
|
-
proto.wechaty.puppet.
|
|
4587
|
+
proto.wechaty.puppet.MessageSendMiniProgramResponse.prototype.getIdStringValueDeprecated = function() {
|
|
4513
4588
|
return /** @type{?proto.google.protobuf.StringValue} */ (
|
|
4514
4589
|
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 1));
|
|
4515
4590
|
};
|
|
@@ -4517,18 +4592,18 @@ proto.wechaty.puppet.MessageSendUrlResponse.prototype.getIdStringValueDeprecated
|
|
|
4517
4592
|
|
|
4518
4593
|
/**
|
|
4519
4594
|
* @param {?proto.google.protobuf.StringValue|undefined} value
|
|
4520
|
-
* @return {!proto.wechaty.puppet.
|
|
4595
|
+
* @return {!proto.wechaty.puppet.MessageSendMiniProgramResponse} returns this
|
|
4521
4596
|
*/
|
|
4522
|
-
proto.wechaty.puppet.
|
|
4597
|
+
proto.wechaty.puppet.MessageSendMiniProgramResponse.prototype.setIdStringValueDeprecated = function(value) {
|
|
4523
4598
|
return jspb.Message.setWrapperField(this, 1, value);
|
|
4524
4599
|
};
|
|
4525
4600
|
|
|
4526
4601
|
|
|
4527
4602
|
/**
|
|
4528
4603
|
* Clears the message field making it undefined.
|
|
4529
|
-
* @return {!proto.wechaty.puppet.
|
|
4604
|
+
* @return {!proto.wechaty.puppet.MessageSendMiniProgramResponse} returns this
|
|
4530
4605
|
*/
|
|
4531
|
-
proto.wechaty.puppet.
|
|
4606
|
+
proto.wechaty.puppet.MessageSendMiniProgramResponse.prototype.clearIdStringValueDeprecated = function() {
|
|
4532
4607
|
return this.setIdStringValueDeprecated(undefined);
|
|
4533
4608
|
};
|
|
4534
4609
|
|
|
@@ -4537,7 +4612,7 @@ proto.wechaty.puppet.MessageSendUrlResponse.prototype.clearIdStringValueDeprecat
|
|
|
4537
4612
|
* Returns whether this field is set.
|
|
4538
4613
|
* @return {boolean}
|
|
4539
4614
|
*/
|
|
4540
|
-
proto.wechaty.puppet.
|
|
4615
|
+
proto.wechaty.puppet.MessageSendMiniProgramResponse.prototype.hasIdStringValueDeprecated = function() {
|
|
4541
4616
|
return jspb.Message.getField(this, 1) != null;
|
|
4542
4617
|
};
|
|
4543
4618
|
|
|
@@ -4546,16 +4621,16 @@ proto.wechaty.puppet.MessageSendUrlResponse.prototype.hasIdStringValueDeprecated
|
|
|
4546
4621
|
* optional string id = 2;
|
|
4547
4622
|
* @return {string}
|
|
4548
4623
|
*/
|
|
4549
|
-
proto.wechaty.puppet.
|
|
4624
|
+
proto.wechaty.puppet.MessageSendMiniProgramResponse.prototype.getId = function() {
|
|
4550
4625
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
4551
4626
|
};
|
|
4552
4627
|
|
|
4553
4628
|
|
|
4554
4629
|
/**
|
|
4555
4630
|
* @param {string} value
|
|
4556
|
-
* @return {!proto.wechaty.puppet.
|
|
4631
|
+
* @return {!proto.wechaty.puppet.MessageSendMiniProgramResponse} returns this
|
|
4557
4632
|
*/
|
|
4558
|
-
proto.wechaty.puppet.
|
|
4633
|
+
proto.wechaty.puppet.MessageSendMiniProgramResponse.prototype.setId = function(value) {
|
|
4559
4634
|
return jspb.Message.setProto3StringField(this, 2, value);
|
|
4560
4635
|
};
|
|
4561
4636
|
|
|
@@ -4576,8 +4651,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
4576
4651
|
* http://goto/soy-param-migration
|
|
4577
4652
|
* @return {!Object}
|
|
4578
4653
|
*/
|
|
4579
|
-
proto.wechaty.puppet.
|
|
4580
|
-
return proto.wechaty.puppet.
|
|
4654
|
+
proto.wechaty.puppet.MessageSendUrlRequest.prototype.toObject = function(opt_includeInstance) {
|
|
4655
|
+
return proto.wechaty.puppet.MessageSendUrlRequest.toObject(opt_includeInstance, this);
|
|
4581
4656
|
};
|
|
4582
4657
|
|
|
4583
4658
|
|
|
@@ -4586,13 +4661,15 @@ proto.wechaty.puppet.MessageRecallRequest.prototype.toObject = function(opt_incl
|
|
|
4586
4661
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4587
4662
|
* the JSPB instance for transitional soy proto support:
|
|
4588
4663
|
* http://goto/soy-param-migration
|
|
4589
|
-
* @param {!proto.wechaty.puppet.
|
|
4664
|
+
* @param {!proto.wechaty.puppet.MessageSendUrlRequest} msg The msg instance to transform.
|
|
4590
4665
|
* @return {!Object}
|
|
4591
4666
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4592
4667
|
*/
|
|
4593
|
-
proto.wechaty.puppet.
|
|
4668
|
+
proto.wechaty.puppet.MessageSendUrlRequest.toObject = function(includeInstance, msg) {
|
|
4594
4669
|
var f, obj = {
|
|
4595
|
-
|
|
4670
|
+
conversationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
4671
|
+
urlLinkDeprecated: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
4672
|
+
urlLink: (f = msg.getUrlLink()) && wechaty_puppet_url$link_pb.UrlLinkPayload.toObject(includeInstance, f)
|
|
4596
4673
|
};
|
|
4597
4674
|
|
|
4598
4675
|
if (includeInstance) {
|
|
@@ -4606,23 +4683,23 @@ proto.wechaty.puppet.MessageRecallRequest.toObject = function(includeInstance, m
|
|
|
4606
4683
|
/**
|
|
4607
4684
|
* Deserializes binary data (in protobuf wire format).
|
|
4608
4685
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4609
|
-
* @return {!proto.wechaty.puppet.
|
|
4686
|
+
* @return {!proto.wechaty.puppet.MessageSendUrlRequest}
|
|
4610
4687
|
*/
|
|
4611
|
-
proto.wechaty.puppet.
|
|
4688
|
+
proto.wechaty.puppet.MessageSendUrlRequest.deserializeBinary = function(bytes) {
|
|
4612
4689
|
var reader = new jspb.BinaryReader(bytes);
|
|
4613
|
-
var msg = new proto.wechaty.puppet.
|
|
4614
|
-
return proto.wechaty.puppet.
|
|
4690
|
+
var msg = new proto.wechaty.puppet.MessageSendUrlRequest;
|
|
4691
|
+
return proto.wechaty.puppet.MessageSendUrlRequest.deserializeBinaryFromReader(msg, reader);
|
|
4615
4692
|
};
|
|
4616
4693
|
|
|
4617
4694
|
|
|
4618
4695
|
/**
|
|
4619
4696
|
* Deserializes binary data (in protobuf wire format) from the
|
|
4620
4697
|
* given reader into the given message object.
|
|
4621
|
-
* @param {!proto.wechaty.puppet.
|
|
4698
|
+
* @param {!proto.wechaty.puppet.MessageSendUrlRequest} msg The message object to deserialize into.
|
|
4622
4699
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4623
|
-
* @return {!proto.wechaty.puppet.
|
|
4700
|
+
* @return {!proto.wechaty.puppet.MessageSendUrlRequest}
|
|
4624
4701
|
*/
|
|
4625
|
-
proto.wechaty.puppet.
|
|
4702
|
+
proto.wechaty.puppet.MessageSendUrlRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
4626
4703
|
while (reader.nextField()) {
|
|
4627
4704
|
if (reader.isEndGroup()) {
|
|
4628
4705
|
break;
|
|
@@ -4631,7 +4708,16 @@ proto.wechaty.puppet.MessageRecallRequest.deserializeBinaryFromReader = function
|
|
|
4631
4708
|
switch (field) {
|
|
4632
4709
|
case 1:
|
|
4633
4710
|
var value = /** @type {string} */ (reader.readString());
|
|
4634
|
-
msg.
|
|
4711
|
+
msg.setConversationId(value);
|
|
4712
|
+
break;
|
|
4713
|
+
case 2:
|
|
4714
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4715
|
+
msg.setUrlLinkDeprecated(value);
|
|
4716
|
+
break;
|
|
4717
|
+
case 3:
|
|
4718
|
+
var value = new wechaty_puppet_url$link_pb.UrlLinkPayload;
|
|
4719
|
+
reader.readMessage(value,wechaty_puppet_url$link_pb.UrlLinkPayload.deserializeBinaryFromReader);
|
|
4720
|
+
msg.setUrlLink(value);
|
|
4635
4721
|
break;
|
|
4636
4722
|
default:
|
|
4637
4723
|
reader.skipField();
|
|
@@ -4646,9 +4732,9 @@ proto.wechaty.puppet.MessageRecallRequest.deserializeBinaryFromReader = function
|
|
|
4646
4732
|
* Serializes the message to binary data (in protobuf wire format).
|
|
4647
4733
|
* @return {!Uint8Array}
|
|
4648
4734
|
*/
|
|
4649
|
-
proto.wechaty.puppet.
|
|
4735
|
+
proto.wechaty.puppet.MessageSendUrlRequest.prototype.serializeBinary = function() {
|
|
4650
4736
|
var writer = new jspb.BinaryWriter();
|
|
4651
|
-
proto.wechaty.puppet.
|
|
4737
|
+
proto.wechaty.puppet.MessageSendUrlRequest.serializeBinaryToWriter(this, writer);
|
|
4652
4738
|
return writer.getResultBuffer();
|
|
4653
4739
|
};
|
|
4654
4740
|
|
|
@@ -4656,40 +4742,110 @@ proto.wechaty.puppet.MessageRecallRequest.prototype.serializeBinary = function()
|
|
|
4656
4742
|
/**
|
|
4657
4743
|
* Serializes the given message to binary data (in protobuf wire
|
|
4658
4744
|
* format), writing to the given BinaryWriter.
|
|
4659
|
-
* @param {!proto.wechaty.puppet.
|
|
4745
|
+
* @param {!proto.wechaty.puppet.MessageSendUrlRequest} message
|
|
4660
4746
|
* @param {!jspb.BinaryWriter} writer
|
|
4661
4747
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4662
4748
|
*/
|
|
4663
|
-
proto.wechaty.puppet.
|
|
4749
|
+
proto.wechaty.puppet.MessageSendUrlRequest.serializeBinaryToWriter = function(message, writer) {
|
|
4664
4750
|
var f = undefined;
|
|
4665
|
-
f = message.
|
|
4751
|
+
f = message.getConversationId();
|
|
4666
4752
|
if (f.length > 0) {
|
|
4667
4753
|
writer.writeString(
|
|
4668
4754
|
1,
|
|
4669
4755
|
f
|
|
4670
4756
|
);
|
|
4671
4757
|
}
|
|
4758
|
+
f = message.getUrlLinkDeprecated();
|
|
4759
|
+
if (f.length > 0) {
|
|
4760
|
+
writer.writeString(
|
|
4761
|
+
2,
|
|
4762
|
+
f
|
|
4763
|
+
);
|
|
4764
|
+
}
|
|
4765
|
+
f = message.getUrlLink();
|
|
4766
|
+
if (f != null) {
|
|
4767
|
+
writer.writeMessage(
|
|
4768
|
+
3,
|
|
4769
|
+
f,
|
|
4770
|
+
wechaty_puppet_url$link_pb.UrlLinkPayload.serializeBinaryToWriter
|
|
4771
|
+
);
|
|
4772
|
+
}
|
|
4672
4773
|
};
|
|
4673
4774
|
|
|
4674
4775
|
|
|
4675
4776
|
/**
|
|
4676
|
-
* optional string
|
|
4777
|
+
* optional string conversation_id = 1;
|
|
4677
4778
|
* @return {string}
|
|
4678
4779
|
*/
|
|
4679
|
-
proto.wechaty.puppet.
|
|
4780
|
+
proto.wechaty.puppet.MessageSendUrlRequest.prototype.getConversationId = function() {
|
|
4680
4781
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
4681
4782
|
};
|
|
4682
4783
|
|
|
4683
4784
|
|
|
4684
4785
|
/**
|
|
4685
4786
|
* @param {string} value
|
|
4686
|
-
* @return {!proto.wechaty.puppet.
|
|
4787
|
+
* @return {!proto.wechaty.puppet.MessageSendUrlRequest} returns this
|
|
4687
4788
|
*/
|
|
4688
|
-
proto.wechaty.puppet.
|
|
4789
|
+
proto.wechaty.puppet.MessageSendUrlRequest.prototype.setConversationId = function(value) {
|
|
4689
4790
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
4690
4791
|
};
|
|
4691
4792
|
|
|
4692
4793
|
|
|
4794
|
+
/**
|
|
4795
|
+
* optional string url_link_deprecated = 2;
|
|
4796
|
+
* @return {string}
|
|
4797
|
+
*/
|
|
4798
|
+
proto.wechaty.puppet.MessageSendUrlRequest.prototype.getUrlLinkDeprecated = function() {
|
|
4799
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
4800
|
+
};
|
|
4801
|
+
|
|
4802
|
+
|
|
4803
|
+
/**
|
|
4804
|
+
* @param {string} value
|
|
4805
|
+
* @return {!proto.wechaty.puppet.MessageSendUrlRequest} returns this
|
|
4806
|
+
*/
|
|
4807
|
+
proto.wechaty.puppet.MessageSendUrlRequest.prototype.setUrlLinkDeprecated = function(value) {
|
|
4808
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
4809
|
+
};
|
|
4810
|
+
|
|
4811
|
+
|
|
4812
|
+
/**
|
|
4813
|
+
* optional UrlLinkPayload url_link = 3;
|
|
4814
|
+
* @return {?proto.wechaty.puppet.UrlLinkPayload}
|
|
4815
|
+
*/
|
|
4816
|
+
proto.wechaty.puppet.MessageSendUrlRequest.prototype.getUrlLink = function() {
|
|
4817
|
+
return /** @type{?proto.wechaty.puppet.UrlLinkPayload} */ (
|
|
4818
|
+
jspb.Message.getWrapperField(this, wechaty_puppet_url$link_pb.UrlLinkPayload, 3));
|
|
4819
|
+
};
|
|
4820
|
+
|
|
4821
|
+
|
|
4822
|
+
/**
|
|
4823
|
+
* @param {?proto.wechaty.puppet.UrlLinkPayload|undefined} value
|
|
4824
|
+
* @return {!proto.wechaty.puppet.MessageSendUrlRequest} returns this
|
|
4825
|
+
*/
|
|
4826
|
+
proto.wechaty.puppet.MessageSendUrlRequest.prototype.setUrlLink = function(value) {
|
|
4827
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
4828
|
+
};
|
|
4829
|
+
|
|
4830
|
+
|
|
4831
|
+
/**
|
|
4832
|
+
* Clears the message field making it undefined.
|
|
4833
|
+
* @return {!proto.wechaty.puppet.MessageSendUrlRequest} returns this
|
|
4834
|
+
*/
|
|
4835
|
+
proto.wechaty.puppet.MessageSendUrlRequest.prototype.clearUrlLink = function() {
|
|
4836
|
+
return this.setUrlLink(undefined);
|
|
4837
|
+
};
|
|
4838
|
+
|
|
4839
|
+
|
|
4840
|
+
/**
|
|
4841
|
+
* Returns whether this field is set.
|
|
4842
|
+
* @return {boolean}
|
|
4843
|
+
*/
|
|
4844
|
+
proto.wechaty.puppet.MessageSendUrlRequest.prototype.hasUrlLink = function() {
|
|
4845
|
+
return jspb.Message.getField(this, 3) != null;
|
|
4846
|
+
};
|
|
4847
|
+
|
|
4848
|
+
|
|
4693
4849
|
|
|
4694
4850
|
|
|
4695
4851
|
|
|
@@ -4706,8 +4862,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
4706
4862
|
* http://goto/soy-param-migration
|
|
4707
4863
|
* @return {!Object}
|
|
4708
4864
|
*/
|
|
4709
|
-
proto.wechaty.puppet.
|
|
4710
|
-
return proto.wechaty.puppet.
|
|
4865
|
+
proto.wechaty.puppet.MessageSendUrlResponse.prototype.toObject = function(opt_includeInstance) {
|
|
4866
|
+
return proto.wechaty.puppet.MessageSendUrlResponse.toObject(opt_includeInstance, this);
|
|
4711
4867
|
};
|
|
4712
4868
|
|
|
4713
4869
|
|
|
@@ -4716,13 +4872,14 @@ proto.wechaty.puppet.MessageRecallResponse.prototype.toObject = function(opt_inc
|
|
|
4716
4872
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4717
4873
|
* the JSPB instance for transitional soy proto support:
|
|
4718
4874
|
* http://goto/soy-param-migration
|
|
4719
|
-
* @param {!proto.wechaty.puppet.
|
|
4875
|
+
* @param {!proto.wechaty.puppet.MessageSendUrlResponse} msg The msg instance to transform.
|
|
4720
4876
|
* @return {!Object}
|
|
4721
4877
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4722
4878
|
*/
|
|
4723
|
-
proto.wechaty.puppet.
|
|
4879
|
+
proto.wechaty.puppet.MessageSendUrlResponse.toObject = function(includeInstance, msg) {
|
|
4724
4880
|
var f, obj = {
|
|
4725
|
-
|
|
4881
|
+
idStringValueDeprecated: (f = msg.getIdStringValueDeprecated()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
|
|
4882
|
+
id: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
4726
4883
|
};
|
|
4727
4884
|
|
|
4728
4885
|
if (includeInstance) {
|
|
@@ -4736,23 +4893,23 @@ proto.wechaty.puppet.MessageRecallResponse.toObject = function(includeInstance,
|
|
|
4736
4893
|
/**
|
|
4737
4894
|
* Deserializes binary data (in protobuf wire format).
|
|
4738
4895
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4739
|
-
* @return {!proto.wechaty.puppet.
|
|
4896
|
+
* @return {!proto.wechaty.puppet.MessageSendUrlResponse}
|
|
4740
4897
|
*/
|
|
4741
|
-
proto.wechaty.puppet.
|
|
4898
|
+
proto.wechaty.puppet.MessageSendUrlResponse.deserializeBinary = function(bytes) {
|
|
4742
4899
|
var reader = new jspb.BinaryReader(bytes);
|
|
4743
|
-
var msg = new proto.wechaty.puppet.
|
|
4744
|
-
return proto.wechaty.puppet.
|
|
4900
|
+
var msg = new proto.wechaty.puppet.MessageSendUrlResponse;
|
|
4901
|
+
return proto.wechaty.puppet.MessageSendUrlResponse.deserializeBinaryFromReader(msg, reader);
|
|
4745
4902
|
};
|
|
4746
4903
|
|
|
4747
4904
|
|
|
4748
4905
|
/**
|
|
4749
4906
|
* Deserializes binary data (in protobuf wire format) from the
|
|
4750
4907
|
* given reader into the given message object.
|
|
4751
|
-
* @param {!proto.wechaty.puppet.
|
|
4908
|
+
* @param {!proto.wechaty.puppet.MessageSendUrlResponse} msg The message object to deserialize into.
|
|
4752
4909
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4753
|
-
* @return {!proto.wechaty.puppet.
|
|
4910
|
+
* @return {!proto.wechaty.puppet.MessageSendUrlResponse}
|
|
4754
4911
|
*/
|
|
4755
|
-
proto.wechaty.puppet.
|
|
4912
|
+
proto.wechaty.puppet.MessageSendUrlResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
4756
4913
|
while (reader.nextField()) {
|
|
4757
4914
|
if (reader.isEndGroup()) {
|
|
4758
4915
|
break;
|
|
@@ -4760,8 +4917,13 @@ proto.wechaty.puppet.MessageRecallResponse.deserializeBinaryFromReader = functio
|
|
|
4760
4917
|
var field = reader.getFieldNumber();
|
|
4761
4918
|
switch (field) {
|
|
4762
4919
|
case 1:
|
|
4763
|
-
var value =
|
|
4764
|
-
|
|
4920
|
+
var value = new google_protobuf_wrappers_pb.StringValue;
|
|
4921
|
+
reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
|
|
4922
|
+
msg.setIdStringValueDeprecated(value);
|
|
4923
|
+
break;
|
|
4924
|
+
case 2:
|
|
4925
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4926
|
+
msg.setId(value);
|
|
4765
4927
|
break;
|
|
4766
4928
|
default:
|
|
4767
4929
|
reader.skipField();
|
|
@@ -4776,9 +4938,9 @@ proto.wechaty.puppet.MessageRecallResponse.deserializeBinaryFromReader = functio
|
|
|
4776
4938
|
* Serializes the message to binary data (in protobuf wire format).
|
|
4777
4939
|
* @return {!Uint8Array}
|
|
4778
4940
|
*/
|
|
4779
|
-
proto.wechaty.puppet.
|
|
4941
|
+
proto.wechaty.puppet.MessageSendUrlResponse.prototype.serializeBinary = function() {
|
|
4780
4942
|
var writer = new jspb.BinaryWriter();
|
|
4781
|
-
proto.wechaty.puppet.
|
|
4943
|
+
proto.wechaty.puppet.MessageSendUrlResponse.serializeBinaryToWriter(this, writer);
|
|
4782
4944
|
return writer.getResultBuffer();
|
|
4783
4945
|
};
|
|
4784
4946
|
|
|
@@ -4786,16 +4948,24 @@ proto.wechaty.puppet.MessageRecallResponse.prototype.serializeBinary = function(
|
|
|
4786
4948
|
/**
|
|
4787
4949
|
* Serializes the given message to binary data (in protobuf wire
|
|
4788
4950
|
* format), writing to the given BinaryWriter.
|
|
4789
|
-
* @param {!proto.wechaty.puppet.
|
|
4951
|
+
* @param {!proto.wechaty.puppet.MessageSendUrlResponse} message
|
|
4790
4952
|
* @param {!jspb.BinaryWriter} writer
|
|
4791
4953
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4792
4954
|
*/
|
|
4793
|
-
proto.wechaty.puppet.
|
|
4955
|
+
proto.wechaty.puppet.MessageSendUrlResponse.serializeBinaryToWriter = function(message, writer) {
|
|
4794
4956
|
var f = undefined;
|
|
4795
|
-
f = message.
|
|
4796
|
-
if (f) {
|
|
4797
|
-
writer.
|
|
4957
|
+
f = message.getIdStringValueDeprecated();
|
|
4958
|
+
if (f != null) {
|
|
4959
|
+
writer.writeMessage(
|
|
4798
4960
|
1,
|
|
4961
|
+
f,
|
|
4962
|
+
google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
|
|
4963
|
+
);
|
|
4964
|
+
}
|
|
4965
|
+
f = message.getId();
|
|
4966
|
+
if (f.length > 0) {
|
|
4967
|
+
writer.writeString(
|
|
4968
|
+
2,
|
|
4799
4969
|
f
|
|
4800
4970
|
);
|
|
4801
4971
|
}
|
|
@@ -4803,57 +4973,694 @@ proto.wechaty.puppet.MessageRecallResponse.serializeBinaryToWriter = function(me
|
|
|
4803
4973
|
|
|
4804
4974
|
|
|
4805
4975
|
/**
|
|
4806
|
-
* optional
|
|
4807
|
-
* @return {
|
|
4976
|
+
* optional google.protobuf.StringValue id_string_value_deprecated = 1;
|
|
4977
|
+
* @return {?proto.google.protobuf.StringValue}
|
|
4808
4978
|
*/
|
|
4809
|
-
proto.wechaty.puppet.
|
|
4810
|
-
return /** @type
|
|
4979
|
+
proto.wechaty.puppet.MessageSendUrlResponse.prototype.getIdStringValueDeprecated = function() {
|
|
4980
|
+
return /** @type{?proto.google.protobuf.StringValue} */ (
|
|
4981
|
+
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 1));
|
|
4811
4982
|
};
|
|
4812
4983
|
|
|
4813
4984
|
|
|
4814
4985
|
/**
|
|
4815
|
-
* @param {
|
|
4816
|
-
* @return {!proto.wechaty.puppet.
|
|
4817
|
-
|
|
4818
|
-
proto.wechaty.puppet.
|
|
4819
|
-
return jspb.Message.
|
|
4986
|
+
* @param {?proto.google.protobuf.StringValue|undefined} value
|
|
4987
|
+
* @return {!proto.wechaty.puppet.MessageSendUrlResponse} returns this
|
|
4988
|
+
*/
|
|
4989
|
+
proto.wechaty.puppet.MessageSendUrlResponse.prototype.setIdStringValueDeprecated = function(value) {
|
|
4990
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
4820
4991
|
};
|
|
4821
4992
|
|
|
4822
4993
|
|
|
4994
|
+
/**
|
|
4995
|
+
* Clears the message field making it undefined.
|
|
4996
|
+
* @return {!proto.wechaty.puppet.MessageSendUrlResponse} returns this
|
|
4997
|
+
*/
|
|
4998
|
+
proto.wechaty.puppet.MessageSendUrlResponse.prototype.clearIdStringValueDeprecated = function() {
|
|
4999
|
+
return this.setIdStringValueDeprecated(undefined);
|
|
5000
|
+
};
|
|
4823
5001
|
|
|
4824
5002
|
|
|
4825
|
-
|
|
4826
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4827
5003
|
/**
|
|
4828
|
-
*
|
|
4829
|
-
*
|
|
4830
|
-
* Optional fields that are not set will be set to undefined.
|
|
4831
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
4832
|
-
* For the list of reserved names please see:
|
|
4833
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
4834
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
4835
|
-
* JSPB instance for transitional soy proto support:
|
|
4836
|
-
* http://goto/soy-param-migration
|
|
4837
|
-
* @return {!Object}
|
|
5004
|
+
* Returns whether this field is set.
|
|
5005
|
+
* @return {boolean}
|
|
4838
5006
|
*/
|
|
4839
|
-
proto.wechaty.puppet.
|
|
4840
|
-
return
|
|
5007
|
+
proto.wechaty.puppet.MessageSendUrlResponse.prototype.hasIdStringValueDeprecated = function() {
|
|
5008
|
+
return jspb.Message.getField(this, 1) != null;
|
|
4841
5009
|
};
|
|
4842
5010
|
|
|
4843
5011
|
|
|
4844
5012
|
/**
|
|
4845
|
-
*
|
|
4846
|
-
* @
|
|
4847
|
-
|
|
5013
|
+
* optional string id = 2;
|
|
5014
|
+
* @return {string}
|
|
5015
|
+
*/
|
|
5016
|
+
proto.wechaty.puppet.MessageSendUrlResponse.prototype.getId = function() {
|
|
5017
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
5018
|
+
};
|
|
5019
|
+
|
|
5020
|
+
|
|
5021
|
+
/**
|
|
5022
|
+
* @param {string} value
|
|
5023
|
+
* @return {!proto.wechaty.puppet.MessageSendUrlResponse} returns this
|
|
5024
|
+
*/
|
|
5025
|
+
proto.wechaty.puppet.MessageSendUrlResponse.prototype.setId = function(value) {
|
|
5026
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
5027
|
+
};
|
|
5028
|
+
|
|
5029
|
+
|
|
5030
|
+
|
|
5031
|
+
|
|
5032
|
+
|
|
5033
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5034
|
+
/**
|
|
5035
|
+
* Creates an object representation of this proto.
|
|
5036
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
5037
|
+
* Optional fields that are not set will be set to undefined.
|
|
5038
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
5039
|
+
* For the list of reserved names please see:
|
|
5040
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
5041
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
5042
|
+
* JSPB instance for transitional soy proto support:
|
|
5043
|
+
* http://goto/soy-param-migration
|
|
5044
|
+
* @return {!Object}
|
|
5045
|
+
*/
|
|
5046
|
+
proto.wechaty.puppet.MessageRecallRequest.prototype.toObject = function(opt_includeInstance) {
|
|
5047
|
+
return proto.wechaty.puppet.MessageRecallRequest.toObject(opt_includeInstance, this);
|
|
5048
|
+
};
|
|
5049
|
+
|
|
5050
|
+
|
|
5051
|
+
/**
|
|
5052
|
+
* Static version of the {@see toObject} method.
|
|
5053
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
5054
|
+
* the JSPB instance for transitional soy proto support:
|
|
5055
|
+
* http://goto/soy-param-migration
|
|
5056
|
+
* @param {!proto.wechaty.puppet.MessageRecallRequest} msg The msg instance to transform.
|
|
5057
|
+
* @return {!Object}
|
|
5058
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5059
|
+
*/
|
|
5060
|
+
proto.wechaty.puppet.MessageRecallRequest.toObject = function(includeInstance, msg) {
|
|
5061
|
+
var f, obj = {
|
|
5062
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
5063
|
+
};
|
|
5064
|
+
|
|
5065
|
+
if (includeInstance) {
|
|
5066
|
+
obj.$jspbMessageInstance = msg;
|
|
5067
|
+
}
|
|
5068
|
+
return obj;
|
|
5069
|
+
};
|
|
5070
|
+
}
|
|
5071
|
+
|
|
5072
|
+
|
|
5073
|
+
/**
|
|
5074
|
+
* Deserializes binary data (in protobuf wire format).
|
|
5075
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
5076
|
+
* @return {!proto.wechaty.puppet.MessageRecallRequest}
|
|
5077
|
+
*/
|
|
5078
|
+
proto.wechaty.puppet.MessageRecallRequest.deserializeBinary = function(bytes) {
|
|
5079
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
5080
|
+
var msg = new proto.wechaty.puppet.MessageRecallRequest;
|
|
5081
|
+
return proto.wechaty.puppet.MessageRecallRequest.deserializeBinaryFromReader(msg, reader);
|
|
5082
|
+
};
|
|
5083
|
+
|
|
5084
|
+
|
|
5085
|
+
/**
|
|
5086
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
5087
|
+
* given reader into the given message object.
|
|
5088
|
+
* @param {!proto.wechaty.puppet.MessageRecallRequest} msg The message object to deserialize into.
|
|
5089
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
5090
|
+
* @return {!proto.wechaty.puppet.MessageRecallRequest}
|
|
5091
|
+
*/
|
|
5092
|
+
proto.wechaty.puppet.MessageRecallRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
5093
|
+
while (reader.nextField()) {
|
|
5094
|
+
if (reader.isEndGroup()) {
|
|
5095
|
+
break;
|
|
5096
|
+
}
|
|
5097
|
+
var field = reader.getFieldNumber();
|
|
5098
|
+
switch (field) {
|
|
5099
|
+
case 1:
|
|
5100
|
+
var value = /** @type {string} */ (reader.readString());
|
|
5101
|
+
msg.setId(value);
|
|
5102
|
+
break;
|
|
5103
|
+
default:
|
|
5104
|
+
reader.skipField();
|
|
5105
|
+
break;
|
|
5106
|
+
}
|
|
5107
|
+
}
|
|
5108
|
+
return msg;
|
|
5109
|
+
};
|
|
5110
|
+
|
|
5111
|
+
|
|
5112
|
+
/**
|
|
5113
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
5114
|
+
* @return {!Uint8Array}
|
|
5115
|
+
*/
|
|
5116
|
+
proto.wechaty.puppet.MessageRecallRequest.prototype.serializeBinary = function() {
|
|
5117
|
+
var writer = new jspb.BinaryWriter();
|
|
5118
|
+
proto.wechaty.puppet.MessageRecallRequest.serializeBinaryToWriter(this, writer);
|
|
5119
|
+
return writer.getResultBuffer();
|
|
5120
|
+
};
|
|
5121
|
+
|
|
5122
|
+
|
|
5123
|
+
/**
|
|
5124
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
5125
|
+
* format), writing to the given BinaryWriter.
|
|
5126
|
+
* @param {!proto.wechaty.puppet.MessageRecallRequest} message
|
|
5127
|
+
* @param {!jspb.BinaryWriter} writer
|
|
5128
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5129
|
+
*/
|
|
5130
|
+
proto.wechaty.puppet.MessageRecallRequest.serializeBinaryToWriter = function(message, writer) {
|
|
5131
|
+
var f = undefined;
|
|
5132
|
+
f = message.getId();
|
|
5133
|
+
if (f.length > 0) {
|
|
5134
|
+
writer.writeString(
|
|
5135
|
+
1,
|
|
5136
|
+
f
|
|
5137
|
+
);
|
|
5138
|
+
}
|
|
5139
|
+
};
|
|
5140
|
+
|
|
5141
|
+
|
|
5142
|
+
/**
|
|
5143
|
+
* optional string id = 1;
|
|
5144
|
+
* @return {string}
|
|
5145
|
+
*/
|
|
5146
|
+
proto.wechaty.puppet.MessageRecallRequest.prototype.getId = function() {
|
|
5147
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
5148
|
+
};
|
|
5149
|
+
|
|
5150
|
+
|
|
5151
|
+
/**
|
|
5152
|
+
* @param {string} value
|
|
5153
|
+
* @return {!proto.wechaty.puppet.MessageRecallRequest} returns this
|
|
5154
|
+
*/
|
|
5155
|
+
proto.wechaty.puppet.MessageRecallRequest.prototype.setId = function(value) {
|
|
5156
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
5157
|
+
};
|
|
5158
|
+
|
|
5159
|
+
|
|
5160
|
+
|
|
5161
|
+
|
|
5162
|
+
|
|
5163
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5164
|
+
/**
|
|
5165
|
+
* Creates an object representation of this proto.
|
|
5166
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
5167
|
+
* Optional fields that are not set will be set to undefined.
|
|
5168
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
5169
|
+
* For the list of reserved names please see:
|
|
5170
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
5171
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
5172
|
+
* JSPB instance for transitional soy proto support:
|
|
5173
|
+
* http://goto/soy-param-migration
|
|
5174
|
+
* @return {!Object}
|
|
5175
|
+
*/
|
|
5176
|
+
proto.wechaty.puppet.MessageRecallResponse.prototype.toObject = function(opt_includeInstance) {
|
|
5177
|
+
return proto.wechaty.puppet.MessageRecallResponse.toObject(opt_includeInstance, this);
|
|
5178
|
+
};
|
|
5179
|
+
|
|
5180
|
+
|
|
5181
|
+
/**
|
|
5182
|
+
* Static version of the {@see toObject} method.
|
|
5183
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
5184
|
+
* the JSPB instance for transitional soy proto support:
|
|
5185
|
+
* http://goto/soy-param-migration
|
|
5186
|
+
* @param {!proto.wechaty.puppet.MessageRecallResponse} msg The msg instance to transform.
|
|
5187
|
+
* @return {!Object}
|
|
5188
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5189
|
+
*/
|
|
5190
|
+
proto.wechaty.puppet.MessageRecallResponse.toObject = function(includeInstance, msg) {
|
|
5191
|
+
var f, obj = {
|
|
5192
|
+
success: jspb.Message.getBooleanFieldWithDefault(msg, 1, false)
|
|
5193
|
+
};
|
|
5194
|
+
|
|
5195
|
+
if (includeInstance) {
|
|
5196
|
+
obj.$jspbMessageInstance = msg;
|
|
5197
|
+
}
|
|
5198
|
+
return obj;
|
|
5199
|
+
};
|
|
5200
|
+
}
|
|
5201
|
+
|
|
5202
|
+
|
|
5203
|
+
/**
|
|
5204
|
+
* Deserializes binary data (in protobuf wire format).
|
|
5205
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
5206
|
+
* @return {!proto.wechaty.puppet.MessageRecallResponse}
|
|
5207
|
+
*/
|
|
5208
|
+
proto.wechaty.puppet.MessageRecallResponse.deserializeBinary = function(bytes) {
|
|
5209
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
5210
|
+
var msg = new proto.wechaty.puppet.MessageRecallResponse;
|
|
5211
|
+
return proto.wechaty.puppet.MessageRecallResponse.deserializeBinaryFromReader(msg, reader);
|
|
5212
|
+
};
|
|
5213
|
+
|
|
5214
|
+
|
|
5215
|
+
/**
|
|
5216
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
5217
|
+
* given reader into the given message object.
|
|
5218
|
+
* @param {!proto.wechaty.puppet.MessageRecallResponse} msg The message object to deserialize into.
|
|
5219
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
5220
|
+
* @return {!proto.wechaty.puppet.MessageRecallResponse}
|
|
5221
|
+
*/
|
|
5222
|
+
proto.wechaty.puppet.MessageRecallResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
5223
|
+
while (reader.nextField()) {
|
|
5224
|
+
if (reader.isEndGroup()) {
|
|
5225
|
+
break;
|
|
5226
|
+
}
|
|
5227
|
+
var field = reader.getFieldNumber();
|
|
5228
|
+
switch (field) {
|
|
5229
|
+
case 1:
|
|
5230
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
5231
|
+
msg.setSuccess(value);
|
|
5232
|
+
break;
|
|
5233
|
+
default:
|
|
5234
|
+
reader.skipField();
|
|
5235
|
+
break;
|
|
5236
|
+
}
|
|
5237
|
+
}
|
|
5238
|
+
return msg;
|
|
5239
|
+
};
|
|
5240
|
+
|
|
5241
|
+
|
|
5242
|
+
/**
|
|
5243
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
5244
|
+
* @return {!Uint8Array}
|
|
5245
|
+
*/
|
|
5246
|
+
proto.wechaty.puppet.MessageRecallResponse.prototype.serializeBinary = function() {
|
|
5247
|
+
var writer = new jspb.BinaryWriter();
|
|
5248
|
+
proto.wechaty.puppet.MessageRecallResponse.serializeBinaryToWriter(this, writer);
|
|
5249
|
+
return writer.getResultBuffer();
|
|
5250
|
+
};
|
|
5251
|
+
|
|
5252
|
+
|
|
5253
|
+
/**
|
|
5254
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
5255
|
+
* format), writing to the given BinaryWriter.
|
|
5256
|
+
* @param {!proto.wechaty.puppet.MessageRecallResponse} message
|
|
5257
|
+
* @param {!jspb.BinaryWriter} writer
|
|
5258
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5259
|
+
*/
|
|
5260
|
+
proto.wechaty.puppet.MessageRecallResponse.serializeBinaryToWriter = function(message, writer) {
|
|
5261
|
+
var f = undefined;
|
|
5262
|
+
f = message.getSuccess();
|
|
5263
|
+
if (f) {
|
|
5264
|
+
writer.writeBool(
|
|
5265
|
+
1,
|
|
5266
|
+
f
|
|
5267
|
+
);
|
|
5268
|
+
}
|
|
5269
|
+
};
|
|
5270
|
+
|
|
5271
|
+
|
|
5272
|
+
/**
|
|
5273
|
+
* optional bool success = 1;
|
|
5274
|
+
* @return {boolean}
|
|
5275
|
+
*/
|
|
5276
|
+
proto.wechaty.puppet.MessageRecallResponse.prototype.getSuccess = function() {
|
|
5277
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
|
|
5278
|
+
};
|
|
5279
|
+
|
|
5280
|
+
|
|
5281
|
+
/**
|
|
5282
|
+
* @param {boolean} value
|
|
5283
|
+
* @return {!proto.wechaty.puppet.MessageRecallResponse} returns this
|
|
5284
|
+
*/
|
|
5285
|
+
proto.wechaty.puppet.MessageRecallResponse.prototype.setSuccess = function(value) {
|
|
5286
|
+
return jspb.Message.setProto3BooleanField(this, 1, value);
|
|
5287
|
+
};
|
|
5288
|
+
|
|
5289
|
+
|
|
5290
|
+
|
|
5291
|
+
|
|
5292
|
+
|
|
5293
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5294
|
+
/**
|
|
5295
|
+
* Creates an object representation of this proto.
|
|
5296
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
5297
|
+
* Optional fields that are not set will be set to undefined.
|
|
5298
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
5299
|
+
* For the list of reserved names please see:
|
|
5300
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
5301
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
5302
|
+
* JSPB instance for transitional soy proto support:
|
|
5303
|
+
* http://goto/soy-param-migration
|
|
5304
|
+
* @return {!Object}
|
|
5305
|
+
*/
|
|
5306
|
+
proto.wechaty.puppet.MessageForwardRequest.prototype.toObject = function(opt_includeInstance) {
|
|
5307
|
+
return proto.wechaty.puppet.MessageForwardRequest.toObject(opt_includeInstance, this);
|
|
5308
|
+
};
|
|
5309
|
+
|
|
5310
|
+
|
|
5311
|
+
/**
|
|
5312
|
+
* Static version of the {@see toObject} method.
|
|
5313
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
5314
|
+
* the JSPB instance for transitional soy proto support:
|
|
5315
|
+
* http://goto/soy-param-migration
|
|
5316
|
+
* @param {!proto.wechaty.puppet.MessageForwardRequest} msg The msg instance to transform.
|
|
5317
|
+
* @return {!Object}
|
|
5318
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5319
|
+
*/
|
|
5320
|
+
proto.wechaty.puppet.MessageForwardRequest.toObject = function(includeInstance, msg) {
|
|
5321
|
+
var f, obj = {
|
|
5322
|
+
messageId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
5323
|
+
conversationId: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
5324
|
+
};
|
|
5325
|
+
|
|
5326
|
+
if (includeInstance) {
|
|
5327
|
+
obj.$jspbMessageInstance = msg;
|
|
5328
|
+
}
|
|
5329
|
+
return obj;
|
|
5330
|
+
};
|
|
5331
|
+
}
|
|
5332
|
+
|
|
5333
|
+
|
|
5334
|
+
/**
|
|
5335
|
+
* Deserializes binary data (in protobuf wire format).
|
|
5336
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
5337
|
+
* @return {!proto.wechaty.puppet.MessageForwardRequest}
|
|
5338
|
+
*/
|
|
5339
|
+
proto.wechaty.puppet.MessageForwardRequest.deserializeBinary = function(bytes) {
|
|
5340
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
5341
|
+
var msg = new proto.wechaty.puppet.MessageForwardRequest;
|
|
5342
|
+
return proto.wechaty.puppet.MessageForwardRequest.deserializeBinaryFromReader(msg, reader);
|
|
5343
|
+
};
|
|
5344
|
+
|
|
5345
|
+
|
|
5346
|
+
/**
|
|
5347
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
5348
|
+
* given reader into the given message object.
|
|
5349
|
+
* @param {!proto.wechaty.puppet.MessageForwardRequest} msg The message object to deserialize into.
|
|
5350
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
5351
|
+
* @return {!proto.wechaty.puppet.MessageForwardRequest}
|
|
5352
|
+
*/
|
|
5353
|
+
proto.wechaty.puppet.MessageForwardRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
5354
|
+
while (reader.nextField()) {
|
|
5355
|
+
if (reader.isEndGroup()) {
|
|
5356
|
+
break;
|
|
5357
|
+
}
|
|
5358
|
+
var field = reader.getFieldNumber();
|
|
5359
|
+
switch (field) {
|
|
5360
|
+
case 1:
|
|
5361
|
+
var value = /** @type {string} */ (reader.readString());
|
|
5362
|
+
msg.setMessageId(value);
|
|
5363
|
+
break;
|
|
5364
|
+
case 2:
|
|
5365
|
+
var value = /** @type {string} */ (reader.readString());
|
|
5366
|
+
msg.setConversationId(value);
|
|
5367
|
+
break;
|
|
5368
|
+
default:
|
|
5369
|
+
reader.skipField();
|
|
5370
|
+
break;
|
|
5371
|
+
}
|
|
5372
|
+
}
|
|
5373
|
+
return msg;
|
|
5374
|
+
};
|
|
5375
|
+
|
|
5376
|
+
|
|
5377
|
+
/**
|
|
5378
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
5379
|
+
* @return {!Uint8Array}
|
|
5380
|
+
*/
|
|
5381
|
+
proto.wechaty.puppet.MessageForwardRequest.prototype.serializeBinary = function() {
|
|
5382
|
+
var writer = new jspb.BinaryWriter();
|
|
5383
|
+
proto.wechaty.puppet.MessageForwardRequest.serializeBinaryToWriter(this, writer);
|
|
5384
|
+
return writer.getResultBuffer();
|
|
5385
|
+
};
|
|
5386
|
+
|
|
5387
|
+
|
|
5388
|
+
/**
|
|
5389
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
5390
|
+
* format), writing to the given BinaryWriter.
|
|
5391
|
+
* @param {!proto.wechaty.puppet.MessageForwardRequest} message
|
|
5392
|
+
* @param {!jspb.BinaryWriter} writer
|
|
5393
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5394
|
+
*/
|
|
5395
|
+
proto.wechaty.puppet.MessageForwardRequest.serializeBinaryToWriter = function(message, writer) {
|
|
5396
|
+
var f = undefined;
|
|
5397
|
+
f = message.getMessageId();
|
|
5398
|
+
if (f.length > 0) {
|
|
5399
|
+
writer.writeString(
|
|
5400
|
+
1,
|
|
5401
|
+
f
|
|
5402
|
+
);
|
|
5403
|
+
}
|
|
5404
|
+
f = message.getConversationId();
|
|
5405
|
+
if (f.length > 0) {
|
|
5406
|
+
writer.writeString(
|
|
5407
|
+
2,
|
|
5408
|
+
f
|
|
5409
|
+
);
|
|
5410
|
+
}
|
|
5411
|
+
};
|
|
5412
|
+
|
|
5413
|
+
|
|
5414
|
+
/**
|
|
5415
|
+
* optional string message_id = 1;
|
|
5416
|
+
* @return {string}
|
|
5417
|
+
*/
|
|
5418
|
+
proto.wechaty.puppet.MessageForwardRequest.prototype.getMessageId = function() {
|
|
5419
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
5420
|
+
};
|
|
5421
|
+
|
|
5422
|
+
|
|
5423
|
+
/**
|
|
5424
|
+
* @param {string} value
|
|
5425
|
+
* @return {!proto.wechaty.puppet.MessageForwardRequest} returns this
|
|
5426
|
+
*/
|
|
5427
|
+
proto.wechaty.puppet.MessageForwardRequest.prototype.setMessageId = function(value) {
|
|
5428
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
5429
|
+
};
|
|
5430
|
+
|
|
5431
|
+
|
|
5432
|
+
/**
|
|
5433
|
+
* optional string conversation_id = 2;
|
|
5434
|
+
* @return {string}
|
|
5435
|
+
*/
|
|
5436
|
+
proto.wechaty.puppet.MessageForwardRequest.prototype.getConversationId = function() {
|
|
5437
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
5438
|
+
};
|
|
5439
|
+
|
|
5440
|
+
|
|
5441
|
+
/**
|
|
5442
|
+
* @param {string} value
|
|
5443
|
+
* @return {!proto.wechaty.puppet.MessageForwardRequest} returns this
|
|
5444
|
+
*/
|
|
5445
|
+
proto.wechaty.puppet.MessageForwardRequest.prototype.setConversationId = function(value) {
|
|
5446
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
5447
|
+
};
|
|
5448
|
+
|
|
5449
|
+
|
|
5450
|
+
|
|
5451
|
+
|
|
5452
|
+
|
|
5453
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5454
|
+
/**
|
|
5455
|
+
* Creates an object representation of this proto.
|
|
5456
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
5457
|
+
* Optional fields that are not set will be set to undefined.
|
|
5458
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
5459
|
+
* For the list of reserved names please see:
|
|
5460
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
5461
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
5462
|
+
* JSPB instance for transitional soy proto support:
|
|
5463
|
+
* http://goto/soy-param-migration
|
|
5464
|
+
* @return {!Object}
|
|
5465
|
+
*/
|
|
5466
|
+
proto.wechaty.puppet.MessageForwardResponse.prototype.toObject = function(opt_includeInstance) {
|
|
5467
|
+
return proto.wechaty.puppet.MessageForwardResponse.toObject(opt_includeInstance, this);
|
|
5468
|
+
};
|
|
5469
|
+
|
|
5470
|
+
|
|
5471
|
+
/**
|
|
5472
|
+
* Static version of the {@see toObject} method.
|
|
5473
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
5474
|
+
* the JSPB instance for transitional soy proto support:
|
|
5475
|
+
* http://goto/soy-param-migration
|
|
5476
|
+
* @param {!proto.wechaty.puppet.MessageForwardResponse} msg The msg instance to transform.
|
|
5477
|
+
* @return {!Object}
|
|
5478
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5479
|
+
*/
|
|
5480
|
+
proto.wechaty.puppet.MessageForwardResponse.toObject = function(includeInstance, msg) {
|
|
5481
|
+
var f, obj = {
|
|
5482
|
+
idStringValueDeprecated: (f = msg.getIdStringValueDeprecated()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
|
|
5483
|
+
id: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
5484
|
+
};
|
|
5485
|
+
|
|
5486
|
+
if (includeInstance) {
|
|
5487
|
+
obj.$jspbMessageInstance = msg;
|
|
5488
|
+
}
|
|
5489
|
+
return obj;
|
|
5490
|
+
};
|
|
5491
|
+
}
|
|
5492
|
+
|
|
5493
|
+
|
|
5494
|
+
/**
|
|
5495
|
+
* Deserializes binary data (in protobuf wire format).
|
|
5496
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
5497
|
+
* @return {!proto.wechaty.puppet.MessageForwardResponse}
|
|
5498
|
+
*/
|
|
5499
|
+
proto.wechaty.puppet.MessageForwardResponse.deserializeBinary = function(bytes) {
|
|
5500
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
5501
|
+
var msg = new proto.wechaty.puppet.MessageForwardResponse;
|
|
5502
|
+
return proto.wechaty.puppet.MessageForwardResponse.deserializeBinaryFromReader(msg, reader);
|
|
5503
|
+
};
|
|
5504
|
+
|
|
5505
|
+
|
|
5506
|
+
/**
|
|
5507
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
5508
|
+
* given reader into the given message object.
|
|
5509
|
+
* @param {!proto.wechaty.puppet.MessageForwardResponse} msg The message object to deserialize into.
|
|
5510
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
5511
|
+
* @return {!proto.wechaty.puppet.MessageForwardResponse}
|
|
5512
|
+
*/
|
|
5513
|
+
proto.wechaty.puppet.MessageForwardResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
5514
|
+
while (reader.nextField()) {
|
|
5515
|
+
if (reader.isEndGroup()) {
|
|
5516
|
+
break;
|
|
5517
|
+
}
|
|
5518
|
+
var field = reader.getFieldNumber();
|
|
5519
|
+
switch (field) {
|
|
5520
|
+
case 1:
|
|
5521
|
+
var value = new google_protobuf_wrappers_pb.StringValue;
|
|
5522
|
+
reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
|
|
5523
|
+
msg.setIdStringValueDeprecated(value);
|
|
5524
|
+
break;
|
|
5525
|
+
case 2:
|
|
5526
|
+
var value = /** @type {string} */ (reader.readString());
|
|
5527
|
+
msg.setId(value);
|
|
5528
|
+
break;
|
|
5529
|
+
default:
|
|
5530
|
+
reader.skipField();
|
|
5531
|
+
break;
|
|
5532
|
+
}
|
|
5533
|
+
}
|
|
5534
|
+
return msg;
|
|
5535
|
+
};
|
|
5536
|
+
|
|
5537
|
+
|
|
5538
|
+
/**
|
|
5539
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
5540
|
+
* @return {!Uint8Array}
|
|
5541
|
+
*/
|
|
5542
|
+
proto.wechaty.puppet.MessageForwardResponse.prototype.serializeBinary = function() {
|
|
5543
|
+
var writer = new jspb.BinaryWriter();
|
|
5544
|
+
proto.wechaty.puppet.MessageForwardResponse.serializeBinaryToWriter(this, writer);
|
|
5545
|
+
return writer.getResultBuffer();
|
|
5546
|
+
};
|
|
5547
|
+
|
|
5548
|
+
|
|
5549
|
+
/**
|
|
5550
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
5551
|
+
* format), writing to the given BinaryWriter.
|
|
5552
|
+
* @param {!proto.wechaty.puppet.MessageForwardResponse} message
|
|
5553
|
+
* @param {!jspb.BinaryWriter} writer
|
|
5554
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5555
|
+
*/
|
|
5556
|
+
proto.wechaty.puppet.MessageForwardResponse.serializeBinaryToWriter = function(message, writer) {
|
|
5557
|
+
var f = undefined;
|
|
5558
|
+
f = message.getIdStringValueDeprecated();
|
|
5559
|
+
if (f != null) {
|
|
5560
|
+
writer.writeMessage(
|
|
5561
|
+
1,
|
|
5562
|
+
f,
|
|
5563
|
+
google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
|
|
5564
|
+
);
|
|
5565
|
+
}
|
|
5566
|
+
f = message.getId();
|
|
5567
|
+
if (f.length > 0) {
|
|
5568
|
+
writer.writeString(
|
|
5569
|
+
2,
|
|
5570
|
+
f
|
|
5571
|
+
);
|
|
5572
|
+
}
|
|
5573
|
+
};
|
|
5574
|
+
|
|
5575
|
+
|
|
5576
|
+
/**
|
|
5577
|
+
* optional google.protobuf.StringValue id_string_value_deprecated = 1;
|
|
5578
|
+
* @return {?proto.google.protobuf.StringValue}
|
|
5579
|
+
*/
|
|
5580
|
+
proto.wechaty.puppet.MessageForwardResponse.prototype.getIdStringValueDeprecated = function() {
|
|
5581
|
+
return /** @type{?proto.google.protobuf.StringValue} */ (
|
|
5582
|
+
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 1));
|
|
5583
|
+
};
|
|
5584
|
+
|
|
5585
|
+
|
|
5586
|
+
/**
|
|
5587
|
+
* @param {?proto.google.protobuf.StringValue|undefined} value
|
|
5588
|
+
* @return {!proto.wechaty.puppet.MessageForwardResponse} returns this
|
|
5589
|
+
*/
|
|
5590
|
+
proto.wechaty.puppet.MessageForwardResponse.prototype.setIdStringValueDeprecated = function(value) {
|
|
5591
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
5592
|
+
};
|
|
5593
|
+
|
|
5594
|
+
|
|
5595
|
+
/**
|
|
5596
|
+
* Clears the message field making it undefined.
|
|
5597
|
+
* @return {!proto.wechaty.puppet.MessageForwardResponse} returns this
|
|
5598
|
+
*/
|
|
5599
|
+
proto.wechaty.puppet.MessageForwardResponse.prototype.clearIdStringValueDeprecated = function() {
|
|
5600
|
+
return this.setIdStringValueDeprecated(undefined);
|
|
5601
|
+
};
|
|
5602
|
+
|
|
5603
|
+
|
|
5604
|
+
/**
|
|
5605
|
+
* Returns whether this field is set.
|
|
5606
|
+
* @return {boolean}
|
|
5607
|
+
*/
|
|
5608
|
+
proto.wechaty.puppet.MessageForwardResponse.prototype.hasIdStringValueDeprecated = function() {
|
|
5609
|
+
return jspb.Message.getField(this, 1) != null;
|
|
5610
|
+
};
|
|
5611
|
+
|
|
5612
|
+
|
|
5613
|
+
/**
|
|
5614
|
+
* optional string id = 2;
|
|
5615
|
+
* @return {string}
|
|
5616
|
+
*/
|
|
5617
|
+
proto.wechaty.puppet.MessageForwardResponse.prototype.getId = function() {
|
|
5618
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
5619
|
+
};
|
|
5620
|
+
|
|
5621
|
+
|
|
5622
|
+
/**
|
|
5623
|
+
* @param {string} value
|
|
5624
|
+
* @return {!proto.wechaty.puppet.MessageForwardResponse} returns this
|
|
5625
|
+
*/
|
|
5626
|
+
proto.wechaty.puppet.MessageForwardResponse.prototype.setId = function(value) {
|
|
5627
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
5628
|
+
};
|
|
5629
|
+
|
|
5630
|
+
|
|
5631
|
+
|
|
5632
|
+
|
|
5633
|
+
|
|
5634
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5635
|
+
/**
|
|
5636
|
+
* Creates an object representation of this proto.
|
|
5637
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
5638
|
+
* Optional fields that are not set will be set to undefined.
|
|
5639
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
5640
|
+
* For the list of reserved names please see:
|
|
5641
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
5642
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
5643
|
+
* JSPB instance for transitional soy proto support:
|
|
4848
5644
|
* http://goto/soy-param-migration
|
|
4849
|
-
* @
|
|
5645
|
+
* @return {!Object}
|
|
5646
|
+
*/
|
|
5647
|
+
proto.wechaty.puppet.MessageLocationRequest.prototype.toObject = function(opt_includeInstance) {
|
|
5648
|
+
return proto.wechaty.puppet.MessageLocationRequest.toObject(opt_includeInstance, this);
|
|
5649
|
+
};
|
|
5650
|
+
|
|
5651
|
+
|
|
5652
|
+
/**
|
|
5653
|
+
* Static version of the {@see toObject} method.
|
|
5654
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
5655
|
+
* the JSPB instance for transitional soy proto support:
|
|
5656
|
+
* http://goto/soy-param-migration
|
|
5657
|
+
* @param {!proto.wechaty.puppet.MessageLocationRequest} msg The msg instance to transform.
|
|
4850
5658
|
* @return {!Object}
|
|
4851
5659
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4852
5660
|
*/
|
|
4853
|
-
proto.wechaty.puppet.
|
|
5661
|
+
proto.wechaty.puppet.MessageLocationRequest.toObject = function(includeInstance, msg) {
|
|
4854
5662
|
var f, obj = {
|
|
4855
|
-
|
|
4856
|
-
conversationId: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
5663
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
4857
5664
|
};
|
|
4858
5665
|
|
|
4859
5666
|
if (includeInstance) {
|
|
@@ -4867,23 +5674,23 @@ proto.wechaty.puppet.MessageForwardRequest.toObject = function(includeInstance,
|
|
|
4867
5674
|
/**
|
|
4868
5675
|
* Deserializes binary data (in protobuf wire format).
|
|
4869
5676
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4870
|
-
* @return {!proto.wechaty.puppet.
|
|
5677
|
+
* @return {!proto.wechaty.puppet.MessageLocationRequest}
|
|
4871
5678
|
*/
|
|
4872
|
-
proto.wechaty.puppet.
|
|
5679
|
+
proto.wechaty.puppet.MessageLocationRequest.deserializeBinary = function(bytes) {
|
|
4873
5680
|
var reader = new jspb.BinaryReader(bytes);
|
|
4874
|
-
var msg = new proto.wechaty.puppet.
|
|
4875
|
-
return proto.wechaty.puppet.
|
|
5681
|
+
var msg = new proto.wechaty.puppet.MessageLocationRequest;
|
|
5682
|
+
return proto.wechaty.puppet.MessageLocationRequest.deserializeBinaryFromReader(msg, reader);
|
|
4876
5683
|
};
|
|
4877
5684
|
|
|
4878
5685
|
|
|
4879
5686
|
/**
|
|
4880
5687
|
* Deserializes binary data (in protobuf wire format) from the
|
|
4881
5688
|
* given reader into the given message object.
|
|
4882
|
-
* @param {!proto.wechaty.puppet.
|
|
5689
|
+
* @param {!proto.wechaty.puppet.MessageLocationRequest} msg The message object to deserialize into.
|
|
4883
5690
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
4884
|
-
* @return {!proto.wechaty.puppet.
|
|
5691
|
+
* @return {!proto.wechaty.puppet.MessageLocationRequest}
|
|
4885
5692
|
*/
|
|
4886
|
-
proto.wechaty.puppet.
|
|
5693
|
+
proto.wechaty.puppet.MessageLocationRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
4887
5694
|
while (reader.nextField()) {
|
|
4888
5695
|
if (reader.isEndGroup()) {
|
|
4889
5696
|
break;
|
|
@@ -4892,11 +5699,7 @@ proto.wechaty.puppet.MessageForwardRequest.deserializeBinaryFromReader = functio
|
|
|
4892
5699
|
switch (field) {
|
|
4893
5700
|
case 1:
|
|
4894
5701
|
var value = /** @type {string} */ (reader.readString());
|
|
4895
|
-
msg.
|
|
4896
|
-
break;
|
|
4897
|
-
case 2:
|
|
4898
|
-
var value = /** @type {string} */ (reader.readString());
|
|
4899
|
-
msg.setConversationId(value);
|
|
5702
|
+
msg.setId(value);
|
|
4900
5703
|
break;
|
|
4901
5704
|
default:
|
|
4902
5705
|
reader.skipField();
|
|
@@ -4911,9 +5714,9 @@ proto.wechaty.puppet.MessageForwardRequest.deserializeBinaryFromReader = functio
|
|
|
4911
5714
|
* Serializes the message to binary data (in protobuf wire format).
|
|
4912
5715
|
* @return {!Uint8Array}
|
|
4913
5716
|
*/
|
|
4914
|
-
proto.wechaty.puppet.
|
|
5717
|
+
proto.wechaty.puppet.MessageLocationRequest.prototype.serializeBinary = function() {
|
|
4915
5718
|
var writer = new jspb.BinaryWriter();
|
|
4916
|
-
proto.wechaty.puppet.
|
|
5719
|
+
proto.wechaty.puppet.MessageLocationRequest.serializeBinaryToWriter(this, writer);
|
|
4917
5720
|
return writer.getResultBuffer();
|
|
4918
5721
|
};
|
|
4919
5722
|
|
|
@@ -4921,65 +5724,40 @@ proto.wechaty.puppet.MessageForwardRequest.prototype.serializeBinary = function(
|
|
|
4921
5724
|
/**
|
|
4922
5725
|
* Serializes the given message to binary data (in protobuf wire
|
|
4923
5726
|
* format), writing to the given BinaryWriter.
|
|
4924
|
-
* @param {!proto.wechaty.puppet.
|
|
5727
|
+
* @param {!proto.wechaty.puppet.MessageLocationRequest} message
|
|
4925
5728
|
* @param {!jspb.BinaryWriter} writer
|
|
4926
5729
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4927
5730
|
*/
|
|
4928
|
-
proto.wechaty.puppet.
|
|
5731
|
+
proto.wechaty.puppet.MessageLocationRequest.serializeBinaryToWriter = function(message, writer) {
|
|
4929
5732
|
var f = undefined;
|
|
4930
|
-
f = message.
|
|
5733
|
+
f = message.getId();
|
|
4931
5734
|
if (f.length > 0) {
|
|
4932
5735
|
writer.writeString(
|
|
4933
5736
|
1,
|
|
4934
5737
|
f
|
|
4935
5738
|
);
|
|
4936
5739
|
}
|
|
4937
|
-
f = message.getConversationId();
|
|
4938
|
-
if (f.length > 0) {
|
|
4939
|
-
writer.writeString(
|
|
4940
|
-
2,
|
|
4941
|
-
f
|
|
4942
|
-
);
|
|
4943
|
-
}
|
|
4944
5740
|
};
|
|
4945
5741
|
|
|
4946
5742
|
|
|
4947
5743
|
/**
|
|
4948
|
-
* optional string
|
|
5744
|
+
* optional string id = 1;
|
|
4949
5745
|
* @return {string}
|
|
4950
5746
|
*/
|
|
4951
|
-
proto.wechaty.puppet.
|
|
5747
|
+
proto.wechaty.puppet.MessageLocationRequest.prototype.getId = function() {
|
|
4952
5748
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
4953
5749
|
};
|
|
4954
5750
|
|
|
4955
5751
|
|
|
4956
5752
|
/**
|
|
4957
5753
|
* @param {string} value
|
|
4958
|
-
* @return {!proto.wechaty.puppet.
|
|
5754
|
+
* @return {!proto.wechaty.puppet.MessageLocationRequest} returns this
|
|
4959
5755
|
*/
|
|
4960
|
-
proto.wechaty.puppet.
|
|
5756
|
+
proto.wechaty.puppet.MessageLocationRequest.prototype.setId = function(value) {
|
|
4961
5757
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
4962
5758
|
};
|
|
4963
5759
|
|
|
4964
5760
|
|
|
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
5761
|
|
|
4984
5762
|
|
|
4985
5763
|
|
|
@@ -4996,8 +5774,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
4996
5774
|
* http://goto/soy-param-migration
|
|
4997
5775
|
* @return {!Object}
|
|
4998
5776
|
*/
|
|
4999
|
-
proto.wechaty.puppet.
|
|
5000
|
-
return proto.wechaty.puppet.
|
|
5777
|
+
proto.wechaty.puppet.MessageLocationResponse.prototype.toObject = function(opt_includeInstance) {
|
|
5778
|
+
return proto.wechaty.puppet.MessageLocationResponse.toObject(opt_includeInstance, this);
|
|
5001
5779
|
};
|
|
5002
5780
|
|
|
5003
5781
|
|
|
@@ -5006,14 +5784,13 @@ proto.wechaty.puppet.MessageForwardResponse.prototype.toObject = function(opt_in
|
|
|
5006
5784
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
5007
5785
|
* the JSPB instance for transitional soy proto support:
|
|
5008
5786
|
* http://goto/soy-param-migration
|
|
5009
|
-
* @param {!proto.wechaty.puppet.
|
|
5787
|
+
* @param {!proto.wechaty.puppet.MessageLocationResponse} msg The msg instance to transform.
|
|
5010
5788
|
* @return {!Object}
|
|
5011
5789
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5012
5790
|
*/
|
|
5013
|
-
proto.wechaty.puppet.
|
|
5791
|
+
proto.wechaty.puppet.MessageLocationResponse.toObject = function(includeInstance, msg) {
|
|
5014
5792
|
var f, obj = {
|
|
5015
|
-
|
|
5016
|
-
id: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
5793
|
+
location: (f = msg.getLocation()) && wechaty_puppet_location_pb.LocationPayload.toObject(includeInstance, f)
|
|
5017
5794
|
};
|
|
5018
5795
|
|
|
5019
5796
|
if (includeInstance) {
|
|
@@ -5027,23 +5804,23 @@ proto.wechaty.puppet.MessageForwardResponse.toObject = function(includeInstance,
|
|
|
5027
5804
|
/**
|
|
5028
5805
|
* Deserializes binary data (in protobuf wire format).
|
|
5029
5806
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
5030
|
-
* @return {!proto.wechaty.puppet.
|
|
5807
|
+
* @return {!proto.wechaty.puppet.MessageLocationResponse}
|
|
5031
5808
|
*/
|
|
5032
|
-
proto.wechaty.puppet.
|
|
5809
|
+
proto.wechaty.puppet.MessageLocationResponse.deserializeBinary = function(bytes) {
|
|
5033
5810
|
var reader = new jspb.BinaryReader(bytes);
|
|
5034
|
-
var msg = new proto.wechaty.puppet.
|
|
5035
|
-
return proto.wechaty.puppet.
|
|
5811
|
+
var msg = new proto.wechaty.puppet.MessageLocationResponse;
|
|
5812
|
+
return proto.wechaty.puppet.MessageLocationResponse.deserializeBinaryFromReader(msg, reader);
|
|
5036
5813
|
};
|
|
5037
5814
|
|
|
5038
5815
|
|
|
5039
5816
|
/**
|
|
5040
5817
|
* Deserializes binary data (in protobuf wire format) from the
|
|
5041
5818
|
* given reader into the given message object.
|
|
5042
|
-
* @param {!proto.wechaty.puppet.
|
|
5819
|
+
* @param {!proto.wechaty.puppet.MessageLocationResponse} msg The message object to deserialize into.
|
|
5043
5820
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
5044
|
-
* @return {!proto.wechaty.puppet.
|
|
5821
|
+
* @return {!proto.wechaty.puppet.MessageLocationResponse}
|
|
5045
5822
|
*/
|
|
5046
|
-
proto.wechaty.puppet.
|
|
5823
|
+
proto.wechaty.puppet.MessageLocationResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
5047
5824
|
while (reader.nextField()) {
|
|
5048
5825
|
if (reader.isEndGroup()) {
|
|
5049
5826
|
break;
|
|
@@ -5051,13 +5828,9 @@ proto.wechaty.puppet.MessageForwardResponse.deserializeBinaryFromReader = functi
|
|
|
5051
5828
|
var field = reader.getFieldNumber();
|
|
5052
5829
|
switch (field) {
|
|
5053
5830
|
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);
|
|
5831
|
+
var value = new wechaty_puppet_location_pb.LocationPayload;
|
|
5832
|
+
reader.readMessage(value,wechaty_puppet_location_pb.LocationPayload.deserializeBinaryFromReader);
|
|
5833
|
+
msg.setLocation(value);
|
|
5061
5834
|
break;
|
|
5062
5835
|
default:
|
|
5063
5836
|
reader.skipField();
|
|
@@ -5072,9 +5845,9 @@ proto.wechaty.puppet.MessageForwardResponse.deserializeBinaryFromReader = functi
|
|
|
5072
5845
|
* Serializes the message to binary data (in protobuf wire format).
|
|
5073
5846
|
* @return {!Uint8Array}
|
|
5074
5847
|
*/
|
|
5075
|
-
proto.wechaty.puppet.
|
|
5848
|
+
proto.wechaty.puppet.MessageLocationResponse.prototype.serializeBinary = function() {
|
|
5076
5849
|
var writer = new jspb.BinaryWriter();
|
|
5077
|
-
proto.wechaty.puppet.
|
|
5850
|
+
proto.wechaty.puppet.MessageLocationResponse.serializeBinaryToWriter(this, writer);
|
|
5078
5851
|
return writer.getResultBuffer();
|
|
5079
5852
|
};
|
|
5080
5853
|
|
|
@@ -5082,55 +5855,48 @@ proto.wechaty.puppet.MessageForwardResponse.prototype.serializeBinary = function
|
|
|
5082
5855
|
/**
|
|
5083
5856
|
* Serializes the given message to binary data (in protobuf wire
|
|
5084
5857
|
* format), writing to the given BinaryWriter.
|
|
5085
|
-
* @param {!proto.wechaty.puppet.
|
|
5858
|
+
* @param {!proto.wechaty.puppet.MessageLocationResponse} message
|
|
5086
5859
|
* @param {!jspb.BinaryWriter} writer
|
|
5087
5860
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5088
5861
|
*/
|
|
5089
|
-
proto.wechaty.puppet.
|
|
5862
|
+
proto.wechaty.puppet.MessageLocationResponse.serializeBinaryToWriter = function(message, writer) {
|
|
5090
5863
|
var f = undefined;
|
|
5091
|
-
f = message.
|
|
5864
|
+
f = message.getLocation();
|
|
5092
5865
|
if (f != null) {
|
|
5093
5866
|
writer.writeMessage(
|
|
5094
5867
|
1,
|
|
5095
5868
|
f,
|
|
5096
|
-
|
|
5097
|
-
);
|
|
5098
|
-
}
|
|
5099
|
-
f = message.getId();
|
|
5100
|
-
if (f.length > 0) {
|
|
5101
|
-
writer.writeString(
|
|
5102
|
-
2,
|
|
5103
|
-
f
|
|
5869
|
+
wechaty_puppet_location_pb.LocationPayload.serializeBinaryToWriter
|
|
5104
5870
|
);
|
|
5105
5871
|
}
|
|
5106
5872
|
};
|
|
5107
5873
|
|
|
5108
5874
|
|
|
5109
5875
|
/**
|
|
5110
|
-
* optional
|
|
5111
|
-
* @return {?proto.
|
|
5876
|
+
* optional LocationPayload location = 1;
|
|
5877
|
+
* @return {?proto.wechaty.puppet.LocationPayload}
|
|
5112
5878
|
*/
|
|
5113
|
-
proto.wechaty.puppet.
|
|
5114
|
-
return /** @type{?proto.
|
|
5115
|
-
jspb.Message.getWrapperField(this,
|
|
5879
|
+
proto.wechaty.puppet.MessageLocationResponse.prototype.getLocation = function() {
|
|
5880
|
+
return /** @type{?proto.wechaty.puppet.LocationPayload} */ (
|
|
5881
|
+
jspb.Message.getWrapperField(this, wechaty_puppet_location_pb.LocationPayload, 1));
|
|
5116
5882
|
};
|
|
5117
5883
|
|
|
5118
5884
|
|
|
5119
5885
|
/**
|
|
5120
|
-
* @param {?proto.
|
|
5121
|
-
* @return {!proto.wechaty.puppet.
|
|
5886
|
+
* @param {?proto.wechaty.puppet.LocationPayload|undefined} value
|
|
5887
|
+
* @return {!proto.wechaty.puppet.MessageLocationResponse} returns this
|
|
5122
5888
|
*/
|
|
5123
|
-
proto.wechaty.puppet.
|
|
5889
|
+
proto.wechaty.puppet.MessageLocationResponse.prototype.setLocation = function(value) {
|
|
5124
5890
|
return jspb.Message.setWrapperField(this, 1, value);
|
|
5125
5891
|
};
|
|
5126
5892
|
|
|
5127
5893
|
|
|
5128
5894
|
/**
|
|
5129
5895
|
* Clears the message field making it undefined.
|
|
5130
|
-
* @return {!proto.wechaty.puppet.
|
|
5896
|
+
* @return {!proto.wechaty.puppet.MessageLocationResponse} returns this
|
|
5131
5897
|
*/
|
|
5132
|
-
proto.wechaty.puppet.
|
|
5133
|
-
return this.
|
|
5898
|
+
proto.wechaty.puppet.MessageLocationResponse.prototype.clearLocation = function() {
|
|
5899
|
+
return this.setLocation(undefined);
|
|
5134
5900
|
};
|
|
5135
5901
|
|
|
5136
5902
|
|
|
@@ -5138,29 +5904,11 @@ proto.wechaty.puppet.MessageForwardResponse.prototype.clearIdStringValueDeprecat
|
|
|
5138
5904
|
* Returns whether this field is set.
|
|
5139
5905
|
* @return {boolean}
|
|
5140
5906
|
*/
|
|
5141
|
-
proto.wechaty.puppet.
|
|
5907
|
+
proto.wechaty.puppet.MessageLocationResponse.prototype.hasLocation = function() {
|
|
5142
5908
|
return jspb.Message.getField(this, 1) != null;
|
|
5143
5909
|
};
|
|
5144
5910
|
|
|
5145
5911
|
|
|
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
5912
|
|
|
5165
5913
|
|
|
5166
5914
|
|
|
@@ -5177,8 +5925,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
5177
5925
|
* http://goto/soy-param-migration
|
|
5178
5926
|
* @return {!Object}
|
|
5179
5927
|
*/
|
|
5180
|
-
proto.wechaty.puppet.
|
|
5181
|
-
return proto.wechaty.puppet.
|
|
5928
|
+
proto.wechaty.puppet.MessageSendLocationRequest.prototype.toObject = function(opt_includeInstance) {
|
|
5929
|
+
return proto.wechaty.puppet.MessageSendLocationRequest.toObject(opt_includeInstance, this);
|
|
5182
5930
|
};
|
|
5183
5931
|
|
|
5184
5932
|
|
|
@@ -5187,13 +5935,14 @@ proto.wechaty.puppet.MessageLocationRequest.prototype.toObject = function(opt_in
|
|
|
5187
5935
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
5188
5936
|
* the JSPB instance for transitional soy proto support:
|
|
5189
5937
|
* http://goto/soy-param-migration
|
|
5190
|
-
* @param {!proto.wechaty.puppet.
|
|
5938
|
+
* @param {!proto.wechaty.puppet.MessageSendLocationRequest} msg The msg instance to transform.
|
|
5191
5939
|
* @return {!Object}
|
|
5192
5940
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5193
5941
|
*/
|
|
5194
|
-
proto.wechaty.puppet.
|
|
5942
|
+
proto.wechaty.puppet.MessageSendLocationRequest.toObject = function(includeInstance, msg) {
|
|
5195
5943
|
var f, obj = {
|
|
5196
|
-
|
|
5944
|
+
conversationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
5945
|
+
location: (f = msg.getLocation()) && wechaty_puppet_location_pb.LocationPayload.toObject(includeInstance, f)
|
|
5197
5946
|
};
|
|
5198
5947
|
|
|
5199
5948
|
if (includeInstance) {
|
|
@@ -5207,23 +5956,23 @@ proto.wechaty.puppet.MessageLocationRequest.toObject = function(includeInstance,
|
|
|
5207
5956
|
/**
|
|
5208
5957
|
* Deserializes binary data (in protobuf wire format).
|
|
5209
5958
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
5210
|
-
* @return {!proto.wechaty.puppet.
|
|
5959
|
+
* @return {!proto.wechaty.puppet.MessageSendLocationRequest}
|
|
5211
5960
|
*/
|
|
5212
|
-
proto.wechaty.puppet.
|
|
5961
|
+
proto.wechaty.puppet.MessageSendLocationRequest.deserializeBinary = function(bytes) {
|
|
5213
5962
|
var reader = new jspb.BinaryReader(bytes);
|
|
5214
|
-
var msg = new proto.wechaty.puppet.
|
|
5215
|
-
return proto.wechaty.puppet.
|
|
5963
|
+
var msg = new proto.wechaty.puppet.MessageSendLocationRequest;
|
|
5964
|
+
return proto.wechaty.puppet.MessageSendLocationRequest.deserializeBinaryFromReader(msg, reader);
|
|
5216
5965
|
};
|
|
5217
5966
|
|
|
5218
5967
|
|
|
5219
5968
|
/**
|
|
5220
5969
|
* Deserializes binary data (in protobuf wire format) from the
|
|
5221
5970
|
* given reader into the given message object.
|
|
5222
|
-
* @param {!proto.wechaty.puppet.
|
|
5971
|
+
* @param {!proto.wechaty.puppet.MessageSendLocationRequest} msg The message object to deserialize into.
|
|
5223
5972
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
5224
|
-
* @return {!proto.wechaty.puppet.
|
|
5973
|
+
* @return {!proto.wechaty.puppet.MessageSendLocationRequest}
|
|
5225
5974
|
*/
|
|
5226
|
-
proto.wechaty.puppet.
|
|
5975
|
+
proto.wechaty.puppet.MessageSendLocationRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
5227
5976
|
while (reader.nextField()) {
|
|
5228
5977
|
if (reader.isEndGroup()) {
|
|
5229
5978
|
break;
|
|
@@ -5232,7 +5981,12 @@ proto.wechaty.puppet.MessageLocationRequest.deserializeBinaryFromReader = functi
|
|
|
5232
5981
|
switch (field) {
|
|
5233
5982
|
case 1:
|
|
5234
5983
|
var value = /** @type {string} */ (reader.readString());
|
|
5235
|
-
msg.
|
|
5984
|
+
msg.setConversationId(value);
|
|
5985
|
+
break;
|
|
5986
|
+
case 2:
|
|
5987
|
+
var value = new wechaty_puppet_location_pb.LocationPayload;
|
|
5988
|
+
reader.readMessage(value,wechaty_puppet_location_pb.LocationPayload.deserializeBinaryFromReader);
|
|
5989
|
+
msg.setLocation(value);
|
|
5236
5990
|
break;
|
|
5237
5991
|
default:
|
|
5238
5992
|
reader.skipField();
|
|
@@ -5247,9 +6001,9 @@ proto.wechaty.puppet.MessageLocationRequest.deserializeBinaryFromReader = functi
|
|
|
5247
6001
|
* Serializes the message to binary data (in protobuf wire format).
|
|
5248
6002
|
* @return {!Uint8Array}
|
|
5249
6003
|
*/
|
|
5250
|
-
proto.wechaty.puppet.
|
|
6004
|
+
proto.wechaty.puppet.MessageSendLocationRequest.prototype.serializeBinary = function() {
|
|
5251
6005
|
var writer = new jspb.BinaryWriter();
|
|
5252
|
-
proto.wechaty.puppet.
|
|
6006
|
+
proto.wechaty.puppet.MessageSendLocationRequest.serializeBinaryToWriter(this, writer);
|
|
5253
6007
|
return writer.getResultBuffer();
|
|
5254
6008
|
};
|
|
5255
6009
|
|
|
@@ -5257,40 +6011,85 @@ proto.wechaty.puppet.MessageLocationRequest.prototype.serializeBinary = function
|
|
|
5257
6011
|
/**
|
|
5258
6012
|
* Serializes the given message to binary data (in protobuf wire
|
|
5259
6013
|
* format), writing to the given BinaryWriter.
|
|
5260
|
-
* @param {!proto.wechaty.puppet.
|
|
6014
|
+
* @param {!proto.wechaty.puppet.MessageSendLocationRequest} message
|
|
5261
6015
|
* @param {!jspb.BinaryWriter} writer
|
|
5262
6016
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5263
6017
|
*/
|
|
5264
|
-
proto.wechaty.puppet.
|
|
6018
|
+
proto.wechaty.puppet.MessageSendLocationRequest.serializeBinaryToWriter = function(message, writer) {
|
|
5265
6019
|
var f = undefined;
|
|
5266
|
-
f = message.
|
|
6020
|
+
f = message.getConversationId();
|
|
5267
6021
|
if (f.length > 0) {
|
|
5268
6022
|
writer.writeString(
|
|
5269
6023
|
1,
|
|
5270
6024
|
f
|
|
5271
6025
|
);
|
|
5272
6026
|
}
|
|
6027
|
+
f = message.getLocation();
|
|
6028
|
+
if (f != null) {
|
|
6029
|
+
writer.writeMessage(
|
|
6030
|
+
2,
|
|
6031
|
+
f,
|
|
6032
|
+
wechaty_puppet_location_pb.LocationPayload.serializeBinaryToWriter
|
|
6033
|
+
);
|
|
6034
|
+
}
|
|
5273
6035
|
};
|
|
5274
6036
|
|
|
5275
6037
|
|
|
5276
6038
|
/**
|
|
5277
|
-
* optional string
|
|
6039
|
+
* optional string conversation_id = 1;
|
|
5278
6040
|
* @return {string}
|
|
5279
6041
|
*/
|
|
5280
|
-
proto.wechaty.puppet.
|
|
6042
|
+
proto.wechaty.puppet.MessageSendLocationRequest.prototype.getConversationId = function() {
|
|
5281
6043
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
5282
6044
|
};
|
|
5283
6045
|
|
|
5284
6046
|
|
|
5285
6047
|
/**
|
|
5286
6048
|
* @param {string} value
|
|
5287
|
-
* @return {!proto.wechaty.puppet.
|
|
6049
|
+
* @return {!proto.wechaty.puppet.MessageSendLocationRequest} returns this
|
|
5288
6050
|
*/
|
|
5289
|
-
proto.wechaty.puppet.
|
|
6051
|
+
proto.wechaty.puppet.MessageSendLocationRequest.prototype.setConversationId = function(value) {
|
|
5290
6052
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
5291
6053
|
};
|
|
5292
6054
|
|
|
5293
6055
|
|
|
6056
|
+
/**
|
|
6057
|
+
* optional LocationPayload location = 2;
|
|
6058
|
+
* @return {?proto.wechaty.puppet.LocationPayload}
|
|
6059
|
+
*/
|
|
6060
|
+
proto.wechaty.puppet.MessageSendLocationRequest.prototype.getLocation = function() {
|
|
6061
|
+
return /** @type{?proto.wechaty.puppet.LocationPayload} */ (
|
|
6062
|
+
jspb.Message.getWrapperField(this, wechaty_puppet_location_pb.LocationPayload, 2));
|
|
6063
|
+
};
|
|
6064
|
+
|
|
6065
|
+
|
|
6066
|
+
/**
|
|
6067
|
+
* @param {?proto.wechaty.puppet.LocationPayload|undefined} value
|
|
6068
|
+
* @return {!proto.wechaty.puppet.MessageSendLocationRequest} returns this
|
|
6069
|
+
*/
|
|
6070
|
+
proto.wechaty.puppet.MessageSendLocationRequest.prototype.setLocation = function(value) {
|
|
6071
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
6072
|
+
};
|
|
6073
|
+
|
|
6074
|
+
|
|
6075
|
+
/**
|
|
6076
|
+
* Clears the message field making it undefined.
|
|
6077
|
+
* @return {!proto.wechaty.puppet.MessageSendLocationRequest} returns this
|
|
6078
|
+
*/
|
|
6079
|
+
proto.wechaty.puppet.MessageSendLocationRequest.prototype.clearLocation = function() {
|
|
6080
|
+
return this.setLocation(undefined);
|
|
6081
|
+
};
|
|
6082
|
+
|
|
6083
|
+
|
|
6084
|
+
/**
|
|
6085
|
+
* Returns whether this field is set.
|
|
6086
|
+
* @return {boolean}
|
|
6087
|
+
*/
|
|
6088
|
+
proto.wechaty.puppet.MessageSendLocationRequest.prototype.hasLocation = function() {
|
|
6089
|
+
return jspb.Message.getField(this, 2) != null;
|
|
6090
|
+
};
|
|
6091
|
+
|
|
6092
|
+
|
|
5294
6093
|
|
|
5295
6094
|
|
|
5296
6095
|
|
|
@@ -5307,8 +6106,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
5307
6106
|
* http://goto/soy-param-migration
|
|
5308
6107
|
* @return {!Object}
|
|
5309
6108
|
*/
|
|
5310
|
-
proto.wechaty.puppet.
|
|
5311
|
-
return proto.wechaty.puppet.
|
|
6109
|
+
proto.wechaty.puppet.MessageSendLocationResponse.prototype.toObject = function(opt_includeInstance) {
|
|
6110
|
+
return proto.wechaty.puppet.MessageSendLocationResponse.toObject(opt_includeInstance, this);
|
|
5312
6111
|
};
|
|
5313
6112
|
|
|
5314
6113
|
|
|
@@ -5317,13 +6116,13 @@ proto.wechaty.puppet.MessageLocationResponse.prototype.toObject = function(opt_i
|
|
|
5317
6116
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
5318
6117
|
* the JSPB instance for transitional soy proto support:
|
|
5319
6118
|
* http://goto/soy-param-migration
|
|
5320
|
-
* @param {!proto.wechaty.puppet.
|
|
6119
|
+
* @param {!proto.wechaty.puppet.MessageSendLocationResponse} msg The msg instance to transform.
|
|
5321
6120
|
* @return {!Object}
|
|
5322
6121
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5323
6122
|
*/
|
|
5324
|
-
proto.wechaty.puppet.
|
|
6123
|
+
proto.wechaty.puppet.MessageSendLocationResponse.toObject = function(includeInstance, msg) {
|
|
5325
6124
|
var f, obj = {
|
|
5326
|
-
|
|
6125
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
5327
6126
|
};
|
|
5328
6127
|
|
|
5329
6128
|
if (includeInstance) {
|
|
@@ -5337,23 +6136,23 @@ proto.wechaty.puppet.MessageLocationResponse.toObject = function(includeInstance
|
|
|
5337
6136
|
/**
|
|
5338
6137
|
* Deserializes binary data (in protobuf wire format).
|
|
5339
6138
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
5340
|
-
* @return {!proto.wechaty.puppet.
|
|
6139
|
+
* @return {!proto.wechaty.puppet.MessageSendLocationResponse}
|
|
5341
6140
|
*/
|
|
5342
|
-
proto.wechaty.puppet.
|
|
6141
|
+
proto.wechaty.puppet.MessageSendLocationResponse.deserializeBinary = function(bytes) {
|
|
5343
6142
|
var reader = new jspb.BinaryReader(bytes);
|
|
5344
|
-
var msg = new proto.wechaty.puppet.
|
|
5345
|
-
return proto.wechaty.puppet.
|
|
6143
|
+
var msg = new proto.wechaty.puppet.MessageSendLocationResponse;
|
|
6144
|
+
return proto.wechaty.puppet.MessageSendLocationResponse.deserializeBinaryFromReader(msg, reader);
|
|
5346
6145
|
};
|
|
5347
6146
|
|
|
5348
6147
|
|
|
5349
6148
|
/**
|
|
5350
6149
|
* Deserializes binary data (in protobuf wire format) from the
|
|
5351
6150
|
* given reader into the given message object.
|
|
5352
|
-
* @param {!proto.wechaty.puppet.
|
|
6151
|
+
* @param {!proto.wechaty.puppet.MessageSendLocationResponse} msg The message object to deserialize into.
|
|
5353
6152
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
5354
|
-
* @return {!proto.wechaty.puppet.
|
|
6153
|
+
* @return {!proto.wechaty.puppet.MessageSendLocationResponse}
|
|
5355
6154
|
*/
|
|
5356
|
-
proto.wechaty.puppet.
|
|
6155
|
+
proto.wechaty.puppet.MessageSendLocationResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
5357
6156
|
while (reader.nextField()) {
|
|
5358
6157
|
if (reader.isEndGroup()) {
|
|
5359
6158
|
break;
|
|
@@ -5361,9 +6160,8 @@ proto.wechaty.puppet.MessageLocationResponse.deserializeBinaryFromReader = funct
|
|
|
5361
6160
|
var field = reader.getFieldNumber();
|
|
5362
6161
|
switch (field) {
|
|
5363
6162
|
case 1:
|
|
5364
|
-
var value =
|
|
5365
|
-
|
|
5366
|
-
msg.setLocation(value);
|
|
6163
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6164
|
+
msg.setId(value);
|
|
5367
6165
|
break;
|
|
5368
6166
|
default:
|
|
5369
6167
|
reader.skipField();
|
|
@@ -5378,9 +6176,9 @@ proto.wechaty.puppet.MessageLocationResponse.deserializeBinaryFromReader = funct
|
|
|
5378
6176
|
* Serializes the message to binary data (in protobuf wire format).
|
|
5379
6177
|
* @return {!Uint8Array}
|
|
5380
6178
|
*/
|
|
5381
|
-
proto.wechaty.puppet.
|
|
6179
|
+
proto.wechaty.puppet.MessageSendLocationResponse.prototype.serializeBinary = function() {
|
|
5382
6180
|
var writer = new jspb.BinaryWriter();
|
|
5383
|
-
proto.wechaty.puppet.
|
|
6181
|
+
proto.wechaty.puppet.MessageSendLocationResponse.serializeBinaryToWriter(this, writer);
|
|
5384
6182
|
return writer.getResultBuffer();
|
|
5385
6183
|
};
|
|
5386
6184
|
|
|
@@ -5388,57 +6186,37 @@ proto.wechaty.puppet.MessageLocationResponse.prototype.serializeBinary = functio
|
|
|
5388
6186
|
/**
|
|
5389
6187
|
* Serializes the given message to binary data (in protobuf wire
|
|
5390
6188
|
* format), writing to the given BinaryWriter.
|
|
5391
|
-
* @param {!proto.wechaty.puppet.
|
|
6189
|
+
* @param {!proto.wechaty.puppet.MessageSendLocationResponse} message
|
|
5392
6190
|
* @param {!jspb.BinaryWriter} writer
|
|
5393
6191
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5394
6192
|
*/
|
|
5395
|
-
proto.wechaty.puppet.
|
|
6193
|
+
proto.wechaty.puppet.MessageSendLocationResponse.serializeBinaryToWriter = function(message, writer) {
|
|
5396
6194
|
var f = undefined;
|
|
5397
|
-
f = message.
|
|
5398
|
-
if (f
|
|
5399
|
-
writer.
|
|
6195
|
+
f = message.getId();
|
|
6196
|
+
if (f.length > 0) {
|
|
6197
|
+
writer.writeString(
|
|
5400
6198
|
1,
|
|
5401
|
-
f
|
|
5402
|
-
wechaty_puppet_location_pb.LocationPayload.serializeBinaryToWriter
|
|
6199
|
+
f
|
|
5403
6200
|
);
|
|
5404
6201
|
}
|
|
5405
6202
|
};
|
|
5406
6203
|
|
|
5407
6204
|
|
|
5408
6205
|
/**
|
|
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
|
|
6206
|
+
* optional string id = 1;
|
|
6207
|
+
* @return {string}
|
|
5430
6208
|
*/
|
|
5431
|
-
proto.wechaty.puppet.
|
|
5432
|
-
return
|
|
6209
|
+
proto.wechaty.puppet.MessageSendLocationResponse.prototype.getId = function() {
|
|
6210
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
5433
6211
|
};
|
|
5434
6212
|
|
|
5435
6213
|
|
|
5436
6214
|
/**
|
|
5437
|
-
*
|
|
5438
|
-
* @return {
|
|
6215
|
+
* @param {string} value
|
|
6216
|
+
* @return {!proto.wechaty.puppet.MessageSendLocationResponse} returns this
|
|
5439
6217
|
*/
|
|
5440
|
-
proto.wechaty.puppet.
|
|
5441
|
-
return jspb.Message.
|
|
6218
|
+
proto.wechaty.puppet.MessageSendLocationResponse.prototype.setId = function(value) {
|
|
6219
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
5442
6220
|
};
|
|
5443
6221
|
|
|
5444
6222
|
|
|
@@ -5458,8 +6236,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
5458
6236
|
* http://goto/soy-param-migration
|
|
5459
6237
|
* @return {!Object}
|
|
5460
6238
|
*/
|
|
5461
|
-
proto.wechaty.puppet.
|
|
5462
|
-
return proto.wechaty.puppet.
|
|
6239
|
+
proto.wechaty.puppet.MessageSendChannelRequest.prototype.toObject = function(opt_includeInstance) {
|
|
6240
|
+
return proto.wechaty.puppet.MessageSendChannelRequest.toObject(opt_includeInstance, this);
|
|
5463
6241
|
};
|
|
5464
6242
|
|
|
5465
6243
|
|
|
@@ -5468,14 +6246,14 @@ proto.wechaty.puppet.MessageSendLocationRequest.prototype.toObject = function(op
|
|
|
5468
6246
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
5469
6247
|
* the JSPB instance for transitional soy proto support:
|
|
5470
6248
|
* http://goto/soy-param-migration
|
|
5471
|
-
* @param {!proto.wechaty.puppet.
|
|
6249
|
+
* @param {!proto.wechaty.puppet.MessageSendChannelRequest} msg The msg instance to transform.
|
|
5472
6250
|
* @return {!Object}
|
|
5473
6251
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5474
6252
|
*/
|
|
5475
|
-
proto.wechaty.puppet.
|
|
6253
|
+
proto.wechaty.puppet.MessageSendChannelRequest.toObject = function(includeInstance, msg) {
|
|
5476
6254
|
var f, obj = {
|
|
5477
6255
|
conversationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
5478
|
-
|
|
6256
|
+
channel: (f = msg.getChannel()) && wechaty_puppet_channel_pb.ChannelPayload.toObject(includeInstance, f)
|
|
5479
6257
|
};
|
|
5480
6258
|
|
|
5481
6259
|
if (includeInstance) {
|
|
@@ -5489,23 +6267,23 @@ proto.wechaty.puppet.MessageSendLocationRequest.toObject = function(includeInsta
|
|
|
5489
6267
|
/**
|
|
5490
6268
|
* Deserializes binary data (in protobuf wire format).
|
|
5491
6269
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
5492
|
-
* @return {!proto.wechaty.puppet.
|
|
6270
|
+
* @return {!proto.wechaty.puppet.MessageSendChannelRequest}
|
|
5493
6271
|
*/
|
|
5494
|
-
proto.wechaty.puppet.
|
|
6272
|
+
proto.wechaty.puppet.MessageSendChannelRequest.deserializeBinary = function(bytes) {
|
|
5495
6273
|
var reader = new jspb.BinaryReader(bytes);
|
|
5496
|
-
var msg = new proto.wechaty.puppet.
|
|
5497
|
-
return proto.wechaty.puppet.
|
|
6274
|
+
var msg = new proto.wechaty.puppet.MessageSendChannelRequest;
|
|
6275
|
+
return proto.wechaty.puppet.MessageSendChannelRequest.deserializeBinaryFromReader(msg, reader);
|
|
5498
6276
|
};
|
|
5499
6277
|
|
|
5500
6278
|
|
|
5501
6279
|
/**
|
|
5502
6280
|
* Deserializes binary data (in protobuf wire format) from the
|
|
5503
6281
|
* given reader into the given message object.
|
|
5504
|
-
* @param {!proto.wechaty.puppet.
|
|
6282
|
+
* @param {!proto.wechaty.puppet.MessageSendChannelRequest} msg The message object to deserialize into.
|
|
5505
6283
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
5506
|
-
* @return {!proto.wechaty.puppet.
|
|
6284
|
+
* @return {!proto.wechaty.puppet.MessageSendChannelRequest}
|
|
5507
6285
|
*/
|
|
5508
|
-
proto.wechaty.puppet.
|
|
6286
|
+
proto.wechaty.puppet.MessageSendChannelRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
5509
6287
|
while (reader.nextField()) {
|
|
5510
6288
|
if (reader.isEndGroup()) {
|
|
5511
6289
|
break;
|
|
@@ -5517,9 +6295,9 @@ proto.wechaty.puppet.MessageSendLocationRequest.deserializeBinaryFromReader = fu
|
|
|
5517
6295
|
msg.setConversationId(value);
|
|
5518
6296
|
break;
|
|
5519
6297
|
case 2:
|
|
5520
|
-
var value = new
|
|
5521
|
-
reader.readMessage(value,
|
|
5522
|
-
msg.
|
|
6298
|
+
var value = new wechaty_puppet_channel_pb.ChannelPayload;
|
|
6299
|
+
reader.readMessage(value,wechaty_puppet_channel_pb.ChannelPayload.deserializeBinaryFromReader);
|
|
6300
|
+
msg.setChannel(value);
|
|
5523
6301
|
break;
|
|
5524
6302
|
default:
|
|
5525
6303
|
reader.skipField();
|
|
@@ -5534,9 +6312,9 @@ proto.wechaty.puppet.MessageSendLocationRequest.deserializeBinaryFromReader = fu
|
|
|
5534
6312
|
* Serializes the message to binary data (in protobuf wire format).
|
|
5535
6313
|
* @return {!Uint8Array}
|
|
5536
6314
|
*/
|
|
5537
|
-
proto.wechaty.puppet.
|
|
6315
|
+
proto.wechaty.puppet.MessageSendChannelRequest.prototype.serializeBinary = function() {
|
|
5538
6316
|
var writer = new jspb.BinaryWriter();
|
|
5539
|
-
proto.wechaty.puppet.
|
|
6317
|
+
proto.wechaty.puppet.MessageSendChannelRequest.serializeBinaryToWriter(this, writer);
|
|
5540
6318
|
return writer.getResultBuffer();
|
|
5541
6319
|
};
|
|
5542
6320
|
|
|
@@ -5544,11 +6322,11 @@ proto.wechaty.puppet.MessageSendLocationRequest.prototype.serializeBinary = func
|
|
|
5544
6322
|
/**
|
|
5545
6323
|
* Serializes the given message to binary data (in protobuf wire
|
|
5546
6324
|
* format), writing to the given BinaryWriter.
|
|
5547
|
-
* @param {!proto.wechaty.puppet.
|
|
6325
|
+
* @param {!proto.wechaty.puppet.MessageSendChannelRequest} message
|
|
5548
6326
|
* @param {!jspb.BinaryWriter} writer
|
|
5549
6327
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5550
6328
|
*/
|
|
5551
|
-
proto.wechaty.puppet.
|
|
6329
|
+
proto.wechaty.puppet.MessageSendChannelRequest.serializeBinaryToWriter = function(message, writer) {
|
|
5552
6330
|
var f = undefined;
|
|
5553
6331
|
f = message.getConversationId();
|
|
5554
6332
|
if (f.length > 0) {
|
|
@@ -5557,12 +6335,12 @@ proto.wechaty.puppet.MessageSendLocationRequest.serializeBinaryToWriter = functi
|
|
|
5557
6335
|
f
|
|
5558
6336
|
);
|
|
5559
6337
|
}
|
|
5560
|
-
f = message.
|
|
6338
|
+
f = message.getChannel();
|
|
5561
6339
|
if (f != null) {
|
|
5562
6340
|
writer.writeMessage(
|
|
5563
6341
|
2,
|
|
5564
6342
|
f,
|
|
5565
|
-
|
|
6343
|
+
wechaty_puppet_channel_pb.ChannelPayload.serializeBinaryToWriter
|
|
5566
6344
|
);
|
|
5567
6345
|
}
|
|
5568
6346
|
};
|
|
@@ -5572,45 +6350,45 @@ proto.wechaty.puppet.MessageSendLocationRequest.serializeBinaryToWriter = functi
|
|
|
5572
6350
|
* optional string conversation_id = 1;
|
|
5573
6351
|
* @return {string}
|
|
5574
6352
|
*/
|
|
5575
|
-
proto.wechaty.puppet.
|
|
6353
|
+
proto.wechaty.puppet.MessageSendChannelRequest.prototype.getConversationId = function() {
|
|
5576
6354
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
5577
6355
|
};
|
|
5578
6356
|
|
|
5579
6357
|
|
|
5580
6358
|
/**
|
|
5581
6359
|
* @param {string} value
|
|
5582
|
-
* @return {!proto.wechaty.puppet.
|
|
6360
|
+
* @return {!proto.wechaty.puppet.MessageSendChannelRequest} returns this
|
|
5583
6361
|
*/
|
|
5584
|
-
proto.wechaty.puppet.
|
|
6362
|
+
proto.wechaty.puppet.MessageSendChannelRequest.prototype.setConversationId = function(value) {
|
|
5585
6363
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
5586
6364
|
};
|
|
5587
6365
|
|
|
5588
6366
|
|
|
5589
6367
|
/**
|
|
5590
|
-
* optional
|
|
5591
|
-
* @return {?proto.wechaty.puppet.
|
|
6368
|
+
* optional ChannelPayload channel = 2;
|
|
6369
|
+
* @return {?proto.wechaty.puppet.ChannelPayload}
|
|
5592
6370
|
*/
|
|
5593
|
-
proto.wechaty.puppet.
|
|
5594
|
-
return /** @type{?proto.wechaty.puppet.
|
|
5595
|
-
jspb.Message.getWrapperField(this,
|
|
6371
|
+
proto.wechaty.puppet.MessageSendChannelRequest.prototype.getChannel = function() {
|
|
6372
|
+
return /** @type{?proto.wechaty.puppet.ChannelPayload} */ (
|
|
6373
|
+
jspb.Message.getWrapperField(this, wechaty_puppet_channel_pb.ChannelPayload, 2));
|
|
5596
6374
|
};
|
|
5597
6375
|
|
|
5598
6376
|
|
|
5599
6377
|
/**
|
|
5600
|
-
* @param {?proto.wechaty.puppet.
|
|
5601
|
-
* @return {!proto.wechaty.puppet.
|
|
6378
|
+
* @param {?proto.wechaty.puppet.ChannelPayload|undefined} value
|
|
6379
|
+
* @return {!proto.wechaty.puppet.MessageSendChannelRequest} returns this
|
|
5602
6380
|
*/
|
|
5603
|
-
proto.wechaty.puppet.
|
|
6381
|
+
proto.wechaty.puppet.MessageSendChannelRequest.prototype.setChannel = function(value) {
|
|
5604
6382
|
return jspb.Message.setWrapperField(this, 2, value);
|
|
5605
6383
|
};
|
|
5606
6384
|
|
|
5607
6385
|
|
|
5608
6386
|
/**
|
|
5609
6387
|
* Clears the message field making it undefined.
|
|
5610
|
-
* @return {!proto.wechaty.puppet.
|
|
6388
|
+
* @return {!proto.wechaty.puppet.MessageSendChannelRequest} returns this
|
|
5611
6389
|
*/
|
|
5612
|
-
proto.wechaty.puppet.
|
|
5613
|
-
return this.
|
|
6390
|
+
proto.wechaty.puppet.MessageSendChannelRequest.prototype.clearChannel = function() {
|
|
6391
|
+
return this.setChannel(undefined);
|
|
5614
6392
|
};
|
|
5615
6393
|
|
|
5616
6394
|
|
|
@@ -5618,7 +6396,7 @@ proto.wechaty.puppet.MessageSendLocationRequest.prototype.clearLocation = functi
|
|
|
5618
6396
|
* Returns whether this field is set.
|
|
5619
6397
|
* @return {boolean}
|
|
5620
6398
|
*/
|
|
5621
|
-
proto.wechaty.puppet.
|
|
6399
|
+
proto.wechaty.puppet.MessageSendChannelRequest.prototype.hasChannel = function() {
|
|
5622
6400
|
return jspb.Message.getField(this, 2) != null;
|
|
5623
6401
|
};
|
|
5624
6402
|
|
|
@@ -5639,8 +6417,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
5639
6417
|
* http://goto/soy-param-migration
|
|
5640
6418
|
* @return {!Object}
|
|
5641
6419
|
*/
|
|
5642
|
-
proto.wechaty.puppet.
|
|
5643
|
-
return proto.wechaty.puppet.
|
|
6420
|
+
proto.wechaty.puppet.MessageSendChannelResponse.prototype.toObject = function(opt_includeInstance) {
|
|
6421
|
+
return proto.wechaty.puppet.MessageSendChannelResponse.toObject(opt_includeInstance, this);
|
|
5644
6422
|
};
|
|
5645
6423
|
|
|
5646
6424
|
|
|
@@ -5649,11 +6427,11 @@ proto.wechaty.puppet.MessageSendLocationResponse.prototype.toObject = function(o
|
|
|
5649
6427
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
5650
6428
|
* the JSPB instance for transitional soy proto support:
|
|
5651
6429
|
* http://goto/soy-param-migration
|
|
5652
|
-
* @param {!proto.wechaty.puppet.
|
|
6430
|
+
* @param {!proto.wechaty.puppet.MessageSendChannelResponse} msg The msg instance to transform.
|
|
5653
6431
|
* @return {!Object}
|
|
5654
6432
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5655
6433
|
*/
|
|
5656
|
-
proto.wechaty.puppet.
|
|
6434
|
+
proto.wechaty.puppet.MessageSendChannelResponse.toObject = function(includeInstance, msg) {
|
|
5657
6435
|
var f, obj = {
|
|
5658
6436
|
id: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
5659
6437
|
};
|
|
@@ -5669,23 +6447,23 @@ proto.wechaty.puppet.MessageSendLocationResponse.toObject = function(includeInst
|
|
|
5669
6447
|
/**
|
|
5670
6448
|
* Deserializes binary data (in protobuf wire format).
|
|
5671
6449
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
5672
|
-
* @return {!proto.wechaty.puppet.
|
|
6450
|
+
* @return {!proto.wechaty.puppet.MessageSendChannelResponse}
|
|
5673
6451
|
*/
|
|
5674
|
-
proto.wechaty.puppet.
|
|
6452
|
+
proto.wechaty.puppet.MessageSendChannelResponse.deserializeBinary = function(bytes) {
|
|
5675
6453
|
var reader = new jspb.BinaryReader(bytes);
|
|
5676
|
-
var msg = new proto.wechaty.puppet.
|
|
5677
|
-
return proto.wechaty.puppet.
|
|
6454
|
+
var msg = new proto.wechaty.puppet.MessageSendChannelResponse;
|
|
6455
|
+
return proto.wechaty.puppet.MessageSendChannelResponse.deserializeBinaryFromReader(msg, reader);
|
|
5678
6456
|
};
|
|
5679
6457
|
|
|
5680
6458
|
|
|
5681
6459
|
/**
|
|
5682
6460
|
* Deserializes binary data (in protobuf wire format) from the
|
|
5683
6461
|
* given reader into the given message object.
|
|
5684
|
-
* @param {!proto.wechaty.puppet.
|
|
6462
|
+
* @param {!proto.wechaty.puppet.MessageSendChannelResponse} msg The message object to deserialize into.
|
|
5685
6463
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
5686
|
-
* @return {!proto.wechaty.puppet.
|
|
6464
|
+
* @return {!proto.wechaty.puppet.MessageSendChannelResponse}
|
|
5687
6465
|
*/
|
|
5688
|
-
proto.wechaty.puppet.
|
|
6466
|
+
proto.wechaty.puppet.MessageSendChannelResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
5689
6467
|
while (reader.nextField()) {
|
|
5690
6468
|
if (reader.isEndGroup()) {
|
|
5691
6469
|
break;
|
|
@@ -5709,9 +6487,9 @@ proto.wechaty.puppet.MessageSendLocationResponse.deserializeBinaryFromReader = f
|
|
|
5709
6487
|
* Serializes the message to binary data (in protobuf wire format).
|
|
5710
6488
|
* @return {!Uint8Array}
|
|
5711
6489
|
*/
|
|
5712
|
-
proto.wechaty.puppet.
|
|
6490
|
+
proto.wechaty.puppet.MessageSendChannelResponse.prototype.serializeBinary = function() {
|
|
5713
6491
|
var writer = new jspb.BinaryWriter();
|
|
5714
|
-
proto.wechaty.puppet.
|
|
6492
|
+
proto.wechaty.puppet.MessageSendChannelResponse.serializeBinaryToWriter(this, writer);
|
|
5715
6493
|
return writer.getResultBuffer();
|
|
5716
6494
|
};
|
|
5717
6495
|
|
|
@@ -5719,11 +6497,11 @@ proto.wechaty.puppet.MessageSendLocationResponse.prototype.serializeBinary = fun
|
|
|
5719
6497
|
/**
|
|
5720
6498
|
* Serializes the given message to binary data (in protobuf wire
|
|
5721
6499
|
* format), writing to the given BinaryWriter.
|
|
5722
|
-
* @param {!proto.wechaty.puppet.
|
|
6500
|
+
* @param {!proto.wechaty.puppet.MessageSendChannelResponse} message
|
|
5723
6501
|
* @param {!jspb.BinaryWriter} writer
|
|
5724
6502
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
5725
6503
|
*/
|
|
5726
|
-
proto.wechaty.puppet.
|
|
6504
|
+
proto.wechaty.puppet.MessageSendChannelResponse.serializeBinaryToWriter = function(message, writer) {
|
|
5727
6505
|
var f = undefined;
|
|
5728
6506
|
f = message.getId();
|
|
5729
6507
|
if (f.length > 0) {
|
|
@@ -5739,16 +6517,16 @@ proto.wechaty.puppet.MessageSendLocationResponse.serializeBinaryToWriter = funct
|
|
|
5739
6517
|
* optional string id = 1;
|
|
5740
6518
|
* @return {string}
|
|
5741
6519
|
*/
|
|
5742
|
-
proto.wechaty.puppet.
|
|
6520
|
+
proto.wechaty.puppet.MessageSendChannelResponse.prototype.getId = function() {
|
|
5743
6521
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
5744
6522
|
};
|
|
5745
6523
|
|
|
5746
6524
|
|
|
5747
6525
|
/**
|
|
5748
6526
|
* @param {string} value
|
|
5749
|
-
* @return {!proto.wechaty.puppet.
|
|
6527
|
+
* @return {!proto.wechaty.puppet.MessageSendChannelResponse} returns this
|
|
5750
6528
|
*/
|
|
5751
|
-
proto.wechaty.puppet.
|
|
6529
|
+
proto.wechaty.puppet.MessageSendChannelResponse.prototype.setId = function(value) {
|
|
5752
6530
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
5753
6531
|
};
|
|
5754
6532
|
|
|
@@ -5771,7 +6549,8 @@ proto.wechaty.puppet.MessageType = {
|
|
|
5771
6549
|
MESSAGE_TYPE_TRANSFER: 11,
|
|
5772
6550
|
MESSAGE_TYPE_RED_ENVELOPE: 12,
|
|
5773
6551
|
MESSAGE_TYPE_RECALLED: 13,
|
|
5774
|
-
MESSAGE_TYPE_URL: 14
|
|
6552
|
+
MESSAGE_TYPE_URL: 14,
|
|
6553
|
+
MESSAGE_TYPE_CHANNEL: 15
|
|
5775
6554
|
};
|
|
5776
6555
|
|
|
5777
6556
|
goog.object.extend(exports, proto.wechaty.puppet);
|