@juzi/wechaty-grpc 1.0.15 → 1.0.16

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.
@@ -32,7 +32,6 @@ goog.exportSymbol('proto.wechaty.puppet.TagGroupPayloadRequest', null, global);
32
32
  goog.exportSymbol('proto.wechaty.puppet.TagGroupPayloadResponse', null, global);
33
33
  goog.exportSymbol('proto.wechaty.puppet.TagGroupTagListRequest', null, global);
34
34
  goog.exportSymbol('proto.wechaty.puppet.TagGroupTagListResponse', null, global);
35
- goog.exportSymbol('proto.wechaty.puppet.TagIdentifier', null, global);
36
35
  goog.exportSymbol('proto.wechaty.puppet.TagPayload', null, global);
37
36
  goog.exportSymbol('proto.wechaty.puppet.TagPayloadRequest', null, global);
38
37
  goog.exportSymbol('proto.wechaty.puppet.TagPayloadResponse', null, global);
@@ -66,27 +65,6 @@ if (goog.DEBUG && !COMPILED) {
66
65
  */
67
66
  proto.wechaty.puppet.TagPayload.displayName = 'proto.wechaty.puppet.TagPayload';
68
67
  }
69
- /**
70
- * Generated by JsPbCodeGenerator.
71
- * @param {Array=} opt_data Optional initial data array, typically from a
72
- * server response, or constructed directly in Javascript. The array is used
73
- * in place and becomes part of the constructed object. It is not cloned.
74
- * If no data is provided, the constructed object will be empty, but still
75
- * valid.
76
- * @extends {jspb.Message}
77
- * @constructor
78
- */
79
- proto.wechaty.puppet.TagIdentifier = function(opt_data) {
80
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
81
- };
82
- goog.inherits(proto.wechaty.puppet.TagIdentifier, jspb.Message);
83
- if (goog.DEBUG && !COMPILED) {
84
- /**
85
- * @public
86
- * @override
87
- */
88
- proto.wechaty.puppet.TagIdentifier.displayName = 'proto.wechaty.puppet.TagIdentifier';
89
- }
90
68
  /**
91
69
  * Generated by JsPbCodeGenerator.
92
70
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -877,166 +855,6 @@ proto.wechaty.puppet.TagPayload.prototype.setType = function(value) {
877
855
 
878
856
 
879
857
 
880
- if (jspb.Message.GENERATE_TO_OBJECT) {
881
- /**
882
- * Creates an object representation of this proto.
883
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
884
- * Optional fields that are not set will be set to undefined.
885
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
886
- * For the list of reserved names please see:
887
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
888
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
889
- * JSPB instance for transitional soy proto support:
890
- * http://goto/soy-param-migration
891
- * @return {!Object}
892
- */
893
- proto.wechaty.puppet.TagIdentifier.prototype.toObject = function(opt_includeInstance) {
894
- return proto.wechaty.puppet.TagIdentifier.toObject(opt_includeInstance, this);
895
- };
896
-
897
-
898
- /**
899
- * Static version of the {@see toObject} method.
900
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
901
- * the JSPB instance for transitional soy proto support:
902
- * http://goto/soy-param-migration
903
- * @param {!proto.wechaty.puppet.TagIdentifier} msg The msg instance to transform.
904
- * @return {!Object}
905
- * @suppress {unusedLocalVariables} f is only used for nested messages
906
- */
907
- proto.wechaty.puppet.TagIdentifier.toObject = function(includeInstance, msg) {
908
- var f, obj = {
909
- id: jspb.Message.getFieldWithDefault(msg, 1, ""),
910
- groupId: jspb.Message.getFieldWithDefault(msg, 2, "")
911
- };
912
-
913
- if (includeInstance) {
914
- obj.$jspbMessageInstance = msg;
915
- }
916
- return obj;
917
- };
918
- }
919
-
920
-
921
- /**
922
- * Deserializes binary data (in protobuf wire format).
923
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
924
- * @return {!proto.wechaty.puppet.TagIdentifier}
925
- */
926
- proto.wechaty.puppet.TagIdentifier.deserializeBinary = function(bytes) {
927
- var reader = new jspb.BinaryReader(bytes);
928
- var msg = new proto.wechaty.puppet.TagIdentifier;
929
- return proto.wechaty.puppet.TagIdentifier.deserializeBinaryFromReader(msg, reader);
930
- };
931
-
932
-
933
- /**
934
- * Deserializes binary data (in protobuf wire format) from the
935
- * given reader into the given message object.
936
- * @param {!proto.wechaty.puppet.TagIdentifier} msg The message object to deserialize into.
937
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
938
- * @return {!proto.wechaty.puppet.TagIdentifier}
939
- */
940
- proto.wechaty.puppet.TagIdentifier.deserializeBinaryFromReader = function(msg, reader) {
941
- while (reader.nextField()) {
942
- if (reader.isEndGroup()) {
943
- break;
944
- }
945
- var field = reader.getFieldNumber();
946
- switch (field) {
947
- case 1:
948
- var value = /** @type {string} */ (reader.readString());
949
- msg.setId(value);
950
- break;
951
- case 2:
952
- var value = /** @type {string} */ (reader.readString());
953
- msg.setGroupId(value);
954
- break;
955
- default:
956
- reader.skipField();
957
- break;
958
- }
959
- }
960
- return msg;
961
- };
962
-
963
-
964
- /**
965
- * Serializes the message to binary data (in protobuf wire format).
966
- * @return {!Uint8Array}
967
- */
968
- proto.wechaty.puppet.TagIdentifier.prototype.serializeBinary = function() {
969
- var writer = new jspb.BinaryWriter();
970
- proto.wechaty.puppet.TagIdentifier.serializeBinaryToWriter(this, writer);
971
- return writer.getResultBuffer();
972
- };
973
-
974
-
975
- /**
976
- * Serializes the given message to binary data (in protobuf wire
977
- * format), writing to the given BinaryWriter.
978
- * @param {!proto.wechaty.puppet.TagIdentifier} message
979
- * @param {!jspb.BinaryWriter} writer
980
- * @suppress {unusedLocalVariables} f is only used for nested messages
981
- */
982
- proto.wechaty.puppet.TagIdentifier.serializeBinaryToWriter = function(message, writer) {
983
- var f = undefined;
984
- f = message.getId();
985
- if (f.length > 0) {
986
- writer.writeString(
987
- 1,
988
- f
989
- );
990
- }
991
- f = message.getGroupId();
992
- if (f.length > 0) {
993
- writer.writeString(
994
- 2,
995
- f
996
- );
997
- }
998
- };
999
-
1000
-
1001
- /**
1002
- * optional string id = 1;
1003
- * @return {string}
1004
- */
1005
- proto.wechaty.puppet.TagIdentifier.prototype.getId = function() {
1006
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1007
- };
1008
-
1009
-
1010
- /**
1011
- * @param {string} value
1012
- * @return {!proto.wechaty.puppet.TagIdentifier} returns this
1013
- */
1014
- proto.wechaty.puppet.TagIdentifier.prototype.setId = function(value) {
1015
- return jspb.Message.setProto3StringField(this, 1, value);
1016
- };
1017
-
1018
-
1019
- /**
1020
- * optional string group_id = 2;
1021
- * @return {string}
1022
- */
1023
- proto.wechaty.puppet.TagIdentifier.prototype.getGroupId = function() {
1024
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1025
- };
1026
-
1027
-
1028
- /**
1029
- * @param {string} value
1030
- * @return {!proto.wechaty.puppet.TagIdentifier} returns this
1031
- */
1032
- proto.wechaty.puppet.TagIdentifier.prototype.setGroupId = function(value) {
1033
- return jspb.Message.setProto3StringField(this, 2, value);
1034
- };
1035
-
1036
-
1037
-
1038
-
1039
-
1040
858
  if (jspb.Message.GENERATE_TO_OBJECT) {
1041
859
  /**
1042
860
  * Creates an object representation of this proto.
@@ -1263,8 +1081,7 @@ proto.wechaty.puppet.TagContactTagAddRequest.prototype.toObject = function(opt_i
1263
1081
  */
1264
1082
  proto.wechaty.puppet.TagContactTagAddRequest.toObject = function(includeInstance, msg) {
1265
1083
  var f, obj = {
1266
- tagsList: jspb.Message.toObjectList(msg.getTagsList(),
1267
- proto.wechaty.puppet.TagIdentifier.toObject, includeInstance),
1084
+ tagIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
1268
1085
  contactIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
1269
1086
  };
1270
1087
 
@@ -1303,9 +1120,8 @@ proto.wechaty.puppet.TagContactTagAddRequest.deserializeBinaryFromReader = funct
1303
1120
  var field = reader.getFieldNumber();
1304
1121
  switch (field) {
1305
1122
  case 1:
1306
- var value = new proto.wechaty.puppet.TagIdentifier;
1307
- reader.readMessage(value,proto.wechaty.puppet.TagIdentifier.deserializeBinaryFromReader);
1308
- msg.addTags(value);
1123
+ var value = /** @type {string} */ (reader.readString());
1124
+ msg.addTagIds(value);
1309
1125
  break;
1310
1126
  case 2:
1311
1127
  var value = /** @type {string} */ (reader.readString());
@@ -1340,12 +1156,11 @@ proto.wechaty.puppet.TagContactTagAddRequest.prototype.serializeBinary = functio
1340
1156
  */
1341
1157
  proto.wechaty.puppet.TagContactTagAddRequest.serializeBinaryToWriter = function(message, writer) {
1342
1158
  var f = undefined;
1343
- f = message.getTagsList();
1159
+ f = message.getTagIdsList();
1344
1160
  if (f.length > 0) {
1345
- writer.writeRepeatedMessage(
1161
+ writer.writeRepeatedString(
1346
1162
  1,
1347
- f,
1348
- proto.wechaty.puppet.TagIdentifier.serializeBinaryToWriter
1163
+ f
1349
1164
  );
1350
1165
  }
1351
1166
  f = message.getContactIdsList();
@@ -1359,31 +1174,30 @@ proto.wechaty.puppet.TagContactTagAddRequest.serializeBinaryToWriter = function(
1359
1174
 
1360
1175
 
1361
1176
  /**
1362
- * repeated TagIdentifier tags = 1;
1363
- * @return {!Array<!proto.wechaty.puppet.TagIdentifier>}
1177
+ * repeated string tag_ids = 1;
1178
+ * @return {!Array<string>}
1364
1179
  */
1365
- proto.wechaty.puppet.TagContactTagAddRequest.prototype.getTagsList = function() {
1366
- return /** @type{!Array<!proto.wechaty.puppet.TagIdentifier>} */ (
1367
- jspb.Message.getRepeatedWrapperField(this, proto.wechaty.puppet.TagIdentifier, 1));
1180
+ proto.wechaty.puppet.TagContactTagAddRequest.prototype.getTagIdsList = function() {
1181
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
1368
1182
  };
1369
1183
 
1370
1184
 
1371
1185
  /**
1372
- * @param {!Array<!proto.wechaty.puppet.TagIdentifier>} value
1186
+ * @param {!Array<string>} value
1373
1187
  * @return {!proto.wechaty.puppet.TagContactTagAddRequest} returns this
1374
- */
1375
- proto.wechaty.puppet.TagContactTagAddRequest.prototype.setTagsList = function(value) {
1376
- return jspb.Message.setRepeatedWrapperField(this, 1, value);
1188
+ */
1189
+ proto.wechaty.puppet.TagContactTagAddRequest.prototype.setTagIdsList = function(value) {
1190
+ return jspb.Message.setField(this, 1, value || []);
1377
1191
  };
1378
1192
 
1379
1193
 
1380
1194
  /**
1381
- * @param {!proto.wechaty.puppet.TagIdentifier=} opt_value
1195
+ * @param {string} value
1382
1196
  * @param {number=} opt_index
1383
- * @return {!proto.wechaty.puppet.TagIdentifier}
1197
+ * @return {!proto.wechaty.puppet.TagContactTagAddRequest} returns this
1384
1198
  */
1385
- proto.wechaty.puppet.TagContactTagAddRequest.prototype.addTags = function(opt_value, opt_index) {
1386
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.wechaty.puppet.TagIdentifier, opt_index);
1199
+ proto.wechaty.puppet.TagContactTagAddRequest.prototype.addTagIds = function(value, opt_index) {
1200
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
1387
1201
  };
1388
1202
 
1389
1203
 
@@ -1391,8 +1205,8 @@ proto.wechaty.puppet.TagContactTagAddRequest.prototype.addTags = function(opt_va
1391
1205
  * Clears the list making it empty but non-null.
1392
1206
  * @return {!proto.wechaty.puppet.TagContactTagAddRequest} returns this
1393
1207
  */
1394
- proto.wechaty.puppet.TagContactTagAddRequest.prototype.clearTagsList = function() {
1395
- return this.setTagsList([]);
1208
+ proto.wechaty.puppet.TagContactTagAddRequest.prototype.clearTagIdsList = function() {
1209
+ return this.setTagIdsList([]);
1396
1210
  };
1397
1211
 
1398
1212
 
@@ -1573,8 +1387,7 @@ proto.wechaty.puppet.TagContactTagRemoveRequest.prototype.toObject = function(op
1573
1387
  */
1574
1388
  proto.wechaty.puppet.TagContactTagRemoveRequest.toObject = function(includeInstance, msg) {
1575
1389
  var f, obj = {
1576
- tagsList: jspb.Message.toObjectList(msg.getTagsList(),
1577
- proto.wechaty.puppet.TagIdentifier.toObject, includeInstance),
1390
+ tagIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
1578
1391
  contactIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
1579
1392
  };
1580
1393
 
@@ -1613,9 +1426,8 @@ proto.wechaty.puppet.TagContactTagRemoveRequest.deserializeBinaryFromReader = fu
1613
1426
  var field = reader.getFieldNumber();
1614
1427
  switch (field) {
1615
1428
  case 1:
1616
- var value = new proto.wechaty.puppet.TagIdentifier;
1617
- reader.readMessage(value,proto.wechaty.puppet.TagIdentifier.deserializeBinaryFromReader);
1618
- msg.addTags(value);
1429
+ var value = /** @type {string} */ (reader.readString());
1430
+ msg.addTagIds(value);
1619
1431
  break;
1620
1432
  case 2:
1621
1433
  var value = /** @type {string} */ (reader.readString());
@@ -1650,12 +1462,11 @@ proto.wechaty.puppet.TagContactTagRemoveRequest.prototype.serializeBinary = func
1650
1462
  */
1651
1463
  proto.wechaty.puppet.TagContactTagRemoveRequest.serializeBinaryToWriter = function(message, writer) {
1652
1464
  var f = undefined;
1653
- f = message.getTagsList();
1465
+ f = message.getTagIdsList();
1654
1466
  if (f.length > 0) {
1655
- writer.writeRepeatedMessage(
1467
+ writer.writeRepeatedString(
1656
1468
  1,
1657
- f,
1658
- proto.wechaty.puppet.TagIdentifier.serializeBinaryToWriter
1469
+ f
1659
1470
  );
1660
1471
  }
1661
1472
  f = message.getContactIdsList();
@@ -1669,31 +1480,30 @@ proto.wechaty.puppet.TagContactTagRemoveRequest.serializeBinaryToWriter = functi
1669
1480
 
1670
1481
 
1671
1482
  /**
1672
- * repeated TagIdentifier tags = 1;
1673
- * @return {!Array<!proto.wechaty.puppet.TagIdentifier>}
1483
+ * repeated string tag_ids = 1;
1484
+ * @return {!Array<string>}
1674
1485
  */
1675
- proto.wechaty.puppet.TagContactTagRemoveRequest.prototype.getTagsList = function() {
1676
- return /** @type{!Array<!proto.wechaty.puppet.TagIdentifier>} */ (
1677
- jspb.Message.getRepeatedWrapperField(this, proto.wechaty.puppet.TagIdentifier, 1));
1486
+ proto.wechaty.puppet.TagContactTagRemoveRequest.prototype.getTagIdsList = function() {
1487
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
1678
1488
  };
1679
1489
 
1680
1490
 
1681
1491
  /**
1682
- * @param {!Array<!proto.wechaty.puppet.TagIdentifier>} value
1492
+ * @param {!Array<string>} value
1683
1493
  * @return {!proto.wechaty.puppet.TagContactTagRemoveRequest} returns this
1684
- */
1685
- proto.wechaty.puppet.TagContactTagRemoveRequest.prototype.setTagsList = function(value) {
1686
- return jspb.Message.setRepeatedWrapperField(this, 1, value);
1494
+ */
1495
+ proto.wechaty.puppet.TagContactTagRemoveRequest.prototype.setTagIdsList = function(value) {
1496
+ return jspb.Message.setField(this, 1, value || []);
1687
1497
  };
1688
1498
 
1689
1499
 
1690
1500
  /**
1691
- * @param {!proto.wechaty.puppet.TagIdentifier=} opt_value
1501
+ * @param {string} value
1692
1502
  * @param {number=} opt_index
1693
- * @return {!proto.wechaty.puppet.TagIdentifier}
1503
+ * @return {!proto.wechaty.puppet.TagContactTagRemoveRequest} returns this
1694
1504
  */
1695
- proto.wechaty.puppet.TagContactTagRemoveRequest.prototype.addTags = function(opt_value, opt_index) {
1696
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.wechaty.puppet.TagIdentifier, opt_index);
1505
+ proto.wechaty.puppet.TagContactTagRemoveRequest.prototype.addTagIds = function(value, opt_index) {
1506
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
1697
1507
  };
1698
1508
 
1699
1509
 
@@ -1701,8 +1511,8 @@ proto.wechaty.puppet.TagContactTagRemoveRequest.prototype.addTags = function(opt
1701
1511
  * Clears the list making it empty but non-null.
1702
1512
  * @return {!proto.wechaty.puppet.TagContactTagRemoveRequest} returns this
1703
1513
  */
1704
- proto.wechaty.puppet.TagContactTagRemoveRequest.prototype.clearTagsList = function() {
1705
- return this.setTagsList([]);
1514
+ proto.wechaty.puppet.TagContactTagRemoveRequest.prototype.clearTagIdsList = function() {
1515
+ return this.setTagIdsList([]);
1706
1516
  };
1707
1517
 
1708
1518
 
@@ -2527,7 +2337,7 @@ proto.wechaty.puppet.TagTagAddResponse.prototype.toObject = function(opt_include
2527
2337
  */
2528
2338
  proto.wechaty.puppet.TagTagAddResponse.toObject = function(includeInstance, msg) {
2529
2339
  var f, obj = {
2530
- tag: (f = msg.getTag()) && proto.wechaty.puppet.TagIdentifier.toObject(includeInstance, f)
2340
+ tagId: jspb.Message.getFieldWithDefault(msg, 1, "")
2531
2341
  };
2532
2342
 
2533
2343
  if (includeInstance) {
@@ -2565,9 +2375,8 @@ proto.wechaty.puppet.TagTagAddResponse.deserializeBinaryFromReader = function(ms
2565
2375
  var field = reader.getFieldNumber();
2566
2376
  switch (field) {
2567
2377
  case 1:
2568
- var value = new proto.wechaty.puppet.TagIdentifier;
2569
- reader.readMessage(value,proto.wechaty.puppet.TagIdentifier.deserializeBinaryFromReader);
2570
- msg.setTag(value);
2378
+ var value = /** @type {string} */ (reader.readString());
2379
+ msg.setTagId(value);
2571
2380
  break;
2572
2381
  default:
2573
2382
  reader.skipField();
@@ -2598,51 +2407,31 @@ proto.wechaty.puppet.TagTagAddResponse.prototype.serializeBinary = function() {
2598
2407
  */
2599
2408
  proto.wechaty.puppet.TagTagAddResponse.serializeBinaryToWriter = function(message, writer) {
2600
2409
  var f = undefined;
2601
- f = message.getTag();
2602
- if (f != null) {
2603
- writer.writeMessage(
2410
+ f = message.getTagId();
2411
+ if (f.length > 0) {
2412
+ writer.writeString(
2604
2413
  1,
2605
- f,
2606
- proto.wechaty.puppet.TagIdentifier.serializeBinaryToWriter
2414
+ f
2607
2415
  );
2608
2416
  }
2609
2417
  };
2610
2418
 
2611
2419
 
2612
2420
  /**
2613
- * optional TagIdentifier tag = 1;
2614
- * @return {?proto.wechaty.puppet.TagIdentifier}
2421
+ * optional string tag_id = 1;
2422
+ * @return {string}
2615
2423
  */
2616
- proto.wechaty.puppet.TagTagAddResponse.prototype.getTag = function() {
2617
- return /** @type{?proto.wechaty.puppet.TagIdentifier} */ (
2618
- jspb.Message.getWrapperField(this, proto.wechaty.puppet.TagIdentifier, 1));
2619
- };
2620
-
2621
-
2622
- /**
2623
- * @param {?proto.wechaty.puppet.TagIdentifier|undefined} value
2624
- * @return {!proto.wechaty.puppet.TagTagAddResponse} returns this
2625
- */
2626
- proto.wechaty.puppet.TagTagAddResponse.prototype.setTag = function(value) {
2627
- return jspb.Message.setWrapperField(this, 1, value);
2424
+ proto.wechaty.puppet.TagTagAddResponse.prototype.getTagId = function() {
2425
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2628
2426
  };
2629
2427
 
2630
2428
 
2631
2429
  /**
2632
- * Clears the message field making it undefined.
2430
+ * @param {string} value
2633
2431
  * @return {!proto.wechaty.puppet.TagTagAddResponse} returns this
2634
2432
  */
2635
- proto.wechaty.puppet.TagTagAddResponse.prototype.clearTag = function() {
2636
- return this.setTag(undefined);
2637
- };
2638
-
2639
-
2640
- /**
2641
- * Returns whether this field is set.
2642
- * @return {boolean}
2643
- */
2644
- proto.wechaty.puppet.TagTagAddResponse.prototype.hasTag = function() {
2645
- return jspb.Message.getField(this, 1) != null;
2433
+ proto.wechaty.puppet.TagTagAddResponse.prototype.setTagId = function(value) {
2434
+ return jspb.Message.setProto3StringField(this, 1, value);
2646
2435
  };
2647
2436
 
2648
2437
 
@@ -2678,7 +2467,7 @@ proto.wechaty.puppet.TagTagDeleteRequest.prototype.toObject = function(opt_inclu
2678
2467
  */
2679
2468
  proto.wechaty.puppet.TagTagDeleteRequest.toObject = function(includeInstance, msg) {
2680
2469
  var f, obj = {
2681
- tag: (f = msg.getTag()) && proto.wechaty.puppet.TagIdentifier.toObject(includeInstance, f)
2470
+ tagId: jspb.Message.getFieldWithDefault(msg, 1, "")
2682
2471
  };
2683
2472
 
2684
2473
  if (includeInstance) {
@@ -2716,9 +2505,8 @@ proto.wechaty.puppet.TagTagDeleteRequest.deserializeBinaryFromReader = function(
2716
2505
  var field = reader.getFieldNumber();
2717
2506
  switch (field) {
2718
2507
  case 1:
2719
- var value = new proto.wechaty.puppet.TagIdentifier;
2720
- reader.readMessage(value,proto.wechaty.puppet.TagIdentifier.deserializeBinaryFromReader);
2721
- msg.setTag(value);
2508
+ var value = /** @type {string} */ (reader.readString());
2509
+ msg.setTagId(value);
2722
2510
  break;
2723
2511
  default:
2724
2512
  reader.skipField();
@@ -2749,51 +2537,31 @@ proto.wechaty.puppet.TagTagDeleteRequest.prototype.serializeBinary = function()
2749
2537
  */
2750
2538
  proto.wechaty.puppet.TagTagDeleteRequest.serializeBinaryToWriter = function(message, writer) {
2751
2539
  var f = undefined;
2752
- f = message.getTag();
2753
- if (f != null) {
2754
- writer.writeMessage(
2540
+ f = message.getTagId();
2541
+ if (f.length > 0) {
2542
+ writer.writeString(
2755
2543
  1,
2756
- f,
2757
- proto.wechaty.puppet.TagIdentifier.serializeBinaryToWriter
2544
+ f
2758
2545
  );
2759
2546
  }
2760
2547
  };
2761
2548
 
2762
2549
 
2763
2550
  /**
2764
- * optional TagIdentifier tag = 1;
2765
- * @return {?proto.wechaty.puppet.TagIdentifier}
2551
+ * optional string tag_id = 1;
2552
+ * @return {string}
2766
2553
  */
2767
- proto.wechaty.puppet.TagTagDeleteRequest.prototype.getTag = function() {
2768
- return /** @type{?proto.wechaty.puppet.TagIdentifier} */ (
2769
- jspb.Message.getWrapperField(this, proto.wechaty.puppet.TagIdentifier, 1));
2770
- };
2771
-
2772
-
2773
- /**
2774
- * @param {?proto.wechaty.puppet.TagIdentifier|undefined} value
2775
- * @return {!proto.wechaty.puppet.TagTagDeleteRequest} returns this
2776
- */
2777
- proto.wechaty.puppet.TagTagDeleteRequest.prototype.setTag = function(value) {
2778
- return jspb.Message.setWrapperField(this, 1, value);
2554
+ proto.wechaty.puppet.TagTagDeleteRequest.prototype.getTagId = function() {
2555
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2779
2556
  };
2780
2557
 
2781
2558
 
2782
2559
  /**
2783
- * Clears the message field making it undefined.
2560
+ * @param {string} value
2784
2561
  * @return {!proto.wechaty.puppet.TagTagDeleteRequest} returns this
2785
2562
  */
2786
- proto.wechaty.puppet.TagTagDeleteRequest.prototype.clearTag = function() {
2787
- return this.setTag(undefined);
2788
- };
2789
-
2790
-
2791
- /**
2792
- * Returns whether this field is set.
2793
- * @return {boolean}
2794
- */
2795
- proto.wechaty.puppet.TagTagDeleteRequest.prototype.hasTag = function() {
2796
- return jspb.Message.getField(this, 1) != null;
2563
+ proto.wechaty.puppet.TagTagDeleteRequest.prototype.setTagId = function(value) {
2564
+ return jspb.Message.setProto3StringField(this, 1, value);
2797
2565
  };
2798
2566
 
2799
2567
 
@@ -3324,8 +3092,7 @@ proto.wechaty.puppet.TagGroupTagListResponse.prototype.toObject = function(opt_i
3324
3092
  */
3325
3093
  proto.wechaty.puppet.TagGroupTagListResponse.toObject = function(includeInstance, msg) {
3326
3094
  var f, obj = {
3327
- tagsList: jspb.Message.toObjectList(msg.getTagsList(),
3328
- proto.wechaty.puppet.TagIdentifier.toObject, includeInstance)
3095
+ tagIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
3329
3096
  };
3330
3097
 
3331
3098
  if (includeInstance) {
@@ -3363,9 +3130,8 @@ proto.wechaty.puppet.TagGroupTagListResponse.deserializeBinaryFromReader = funct
3363
3130
  var field = reader.getFieldNumber();
3364
3131
  switch (field) {
3365
3132
  case 1:
3366
- var value = new proto.wechaty.puppet.TagIdentifier;
3367
- reader.readMessage(value,proto.wechaty.puppet.TagIdentifier.deserializeBinaryFromReader);
3368
- msg.addTags(value);
3133
+ var value = /** @type {string} */ (reader.readString());
3134
+ msg.addTagIds(value);
3369
3135
  break;
3370
3136
  default:
3371
3137
  reader.skipField();
@@ -3396,43 +3162,41 @@ proto.wechaty.puppet.TagGroupTagListResponse.prototype.serializeBinary = functio
3396
3162
  */
3397
3163
  proto.wechaty.puppet.TagGroupTagListResponse.serializeBinaryToWriter = function(message, writer) {
3398
3164
  var f = undefined;
3399
- f = message.getTagsList();
3165
+ f = message.getTagIdsList();
3400
3166
  if (f.length > 0) {
3401
- writer.writeRepeatedMessage(
3167
+ writer.writeRepeatedString(
3402
3168
  1,
3403
- f,
3404
- proto.wechaty.puppet.TagIdentifier.serializeBinaryToWriter
3169
+ f
3405
3170
  );
3406
3171
  }
3407
3172
  };
3408
3173
 
3409
3174
 
3410
3175
  /**
3411
- * repeated TagIdentifier tags = 1;
3412
- * @return {!Array<!proto.wechaty.puppet.TagIdentifier>}
3176
+ * repeated string tag_ids = 1;
3177
+ * @return {!Array<string>}
3413
3178
  */
3414
- proto.wechaty.puppet.TagGroupTagListResponse.prototype.getTagsList = function() {
3415
- return /** @type{!Array<!proto.wechaty.puppet.TagIdentifier>} */ (
3416
- jspb.Message.getRepeatedWrapperField(this, proto.wechaty.puppet.TagIdentifier, 1));
3179
+ proto.wechaty.puppet.TagGroupTagListResponse.prototype.getTagIdsList = function() {
3180
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
3417
3181
  };
3418
3182
 
3419
3183
 
3420
3184
  /**
3421
- * @param {!Array<!proto.wechaty.puppet.TagIdentifier>} value
3185
+ * @param {!Array<string>} value
3422
3186
  * @return {!proto.wechaty.puppet.TagGroupTagListResponse} returns this
3423
- */
3424
- proto.wechaty.puppet.TagGroupTagListResponse.prototype.setTagsList = function(value) {
3425
- return jspb.Message.setRepeatedWrapperField(this, 1, value);
3187
+ */
3188
+ proto.wechaty.puppet.TagGroupTagListResponse.prototype.setTagIdsList = function(value) {
3189
+ return jspb.Message.setField(this, 1, value || []);
3426
3190
  };
3427
3191
 
3428
3192
 
3429
3193
  /**
3430
- * @param {!proto.wechaty.puppet.TagIdentifier=} opt_value
3194
+ * @param {string} value
3431
3195
  * @param {number=} opt_index
3432
- * @return {!proto.wechaty.puppet.TagIdentifier}
3196
+ * @return {!proto.wechaty.puppet.TagGroupTagListResponse} returns this
3433
3197
  */
3434
- proto.wechaty.puppet.TagGroupTagListResponse.prototype.addTags = function(opt_value, opt_index) {
3435
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.wechaty.puppet.TagIdentifier, opt_index);
3198
+ proto.wechaty.puppet.TagGroupTagListResponse.prototype.addTagIds = function(value, opt_index) {
3199
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
3436
3200
  };
3437
3201
 
3438
3202
 
@@ -3440,8 +3204,8 @@ proto.wechaty.puppet.TagGroupTagListResponse.prototype.addTags = function(opt_va
3440
3204
  * Clears the list making it empty but non-null.
3441
3205
  * @return {!proto.wechaty.puppet.TagGroupTagListResponse} returns this
3442
3206
  */
3443
- proto.wechaty.puppet.TagGroupTagListResponse.prototype.clearTagsList = function() {
3444
- return this.setTagsList([]);
3207
+ proto.wechaty.puppet.TagGroupTagListResponse.prototype.clearTagIdsList = function() {
3208
+ return this.setTagIdsList([]);
3445
3209
  };
3446
3210
 
3447
3211
 
@@ -3585,8 +3349,7 @@ proto.wechaty.puppet.TagTagListResponse.prototype.toObject = function(opt_includ
3585
3349
  */
3586
3350
  proto.wechaty.puppet.TagTagListResponse.toObject = function(includeInstance, msg) {
3587
3351
  var f, obj = {
3588
- tagsList: jspb.Message.toObjectList(msg.getTagsList(),
3589
- proto.wechaty.puppet.TagIdentifier.toObject, includeInstance)
3352
+ tagIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
3590
3353
  };
3591
3354
 
3592
3355
  if (includeInstance) {
@@ -3624,9 +3387,8 @@ proto.wechaty.puppet.TagTagListResponse.deserializeBinaryFromReader = function(m
3624
3387
  var field = reader.getFieldNumber();
3625
3388
  switch (field) {
3626
3389
  case 1:
3627
- var value = new proto.wechaty.puppet.TagIdentifier;
3628
- reader.readMessage(value,proto.wechaty.puppet.TagIdentifier.deserializeBinaryFromReader);
3629
- msg.addTags(value);
3390
+ var value = /** @type {string} */ (reader.readString());
3391
+ msg.addTagIds(value);
3630
3392
  break;
3631
3393
  default:
3632
3394
  reader.skipField();
@@ -3657,43 +3419,41 @@ proto.wechaty.puppet.TagTagListResponse.prototype.serializeBinary = function() {
3657
3419
  */
3658
3420
  proto.wechaty.puppet.TagTagListResponse.serializeBinaryToWriter = function(message, writer) {
3659
3421
  var f = undefined;
3660
- f = message.getTagsList();
3422
+ f = message.getTagIdsList();
3661
3423
  if (f.length > 0) {
3662
- writer.writeRepeatedMessage(
3424
+ writer.writeRepeatedString(
3663
3425
  1,
3664
- f,
3665
- proto.wechaty.puppet.TagIdentifier.serializeBinaryToWriter
3426
+ f
3666
3427
  );
3667
3428
  }
3668
3429
  };
3669
3430
 
3670
3431
 
3671
3432
  /**
3672
- * repeated TagIdentifier tags = 1;
3673
- * @return {!Array<!proto.wechaty.puppet.TagIdentifier>}
3433
+ * repeated string tag_ids = 1;
3434
+ * @return {!Array<string>}
3674
3435
  */
3675
- proto.wechaty.puppet.TagTagListResponse.prototype.getTagsList = function() {
3676
- return /** @type{!Array<!proto.wechaty.puppet.TagIdentifier>} */ (
3677
- jspb.Message.getRepeatedWrapperField(this, proto.wechaty.puppet.TagIdentifier, 1));
3436
+ proto.wechaty.puppet.TagTagListResponse.prototype.getTagIdsList = function() {
3437
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
3678
3438
  };
3679
3439
 
3680
3440
 
3681
3441
  /**
3682
- * @param {!Array<!proto.wechaty.puppet.TagIdentifier>} value
3442
+ * @param {!Array<string>} value
3683
3443
  * @return {!proto.wechaty.puppet.TagTagListResponse} returns this
3684
- */
3685
- proto.wechaty.puppet.TagTagListResponse.prototype.setTagsList = function(value) {
3686
- return jspb.Message.setRepeatedWrapperField(this, 1, value);
3444
+ */
3445
+ proto.wechaty.puppet.TagTagListResponse.prototype.setTagIdsList = function(value) {
3446
+ return jspb.Message.setField(this, 1, value || []);
3687
3447
  };
3688
3448
 
3689
3449
 
3690
3450
  /**
3691
- * @param {!proto.wechaty.puppet.TagIdentifier=} opt_value
3451
+ * @param {string} value
3692
3452
  * @param {number=} opt_index
3693
- * @return {!proto.wechaty.puppet.TagIdentifier}
3453
+ * @return {!proto.wechaty.puppet.TagTagListResponse} returns this
3694
3454
  */
3695
- proto.wechaty.puppet.TagTagListResponse.prototype.addTags = function(opt_value, opt_index) {
3696
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.wechaty.puppet.TagIdentifier, opt_index);
3455
+ proto.wechaty.puppet.TagTagListResponse.prototype.addTagIds = function(value, opt_index) {
3456
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
3697
3457
  };
3698
3458
 
3699
3459
 
@@ -3701,8 +3461,8 @@ proto.wechaty.puppet.TagTagListResponse.prototype.addTags = function(opt_value,
3701
3461
  * Clears the list making it empty but non-null.
3702
3462
  * @return {!proto.wechaty.puppet.TagTagListResponse} returns this
3703
3463
  */
3704
- proto.wechaty.puppet.TagTagListResponse.prototype.clearTagsList = function() {
3705
- return this.setTagsList([]);
3464
+ proto.wechaty.puppet.TagTagListResponse.prototype.clearTagIdsList = function() {
3465
+ return this.setTagIdsList([]);
3706
3466
  };
3707
3467
 
3708
3468
 
@@ -3875,8 +3635,7 @@ proto.wechaty.puppet.TagContactTagListResponse.prototype.toObject = function(opt
3875
3635
  */
3876
3636
  proto.wechaty.puppet.TagContactTagListResponse.toObject = function(includeInstance, msg) {
3877
3637
  var f, obj = {
3878
- tagsList: jspb.Message.toObjectList(msg.getTagsList(),
3879
- proto.wechaty.puppet.TagIdentifier.toObject, includeInstance)
3638
+ tagIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
3880
3639
  };
3881
3640
 
3882
3641
  if (includeInstance) {
@@ -3914,9 +3673,8 @@ proto.wechaty.puppet.TagContactTagListResponse.deserializeBinaryFromReader = fun
3914
3673
  var field = reader.getFieldNumber();
3915
3674
  switch (field) {
3916
3675
  case 1:
3917
- var value = new proto.wechaty.puppet.TagIdentifier;
3918
- reader.readMessage(value,proto.wechaty.puppet.TagIdentifier.deserializeBinaryFromReader);
3919
- msg.addTags(value);
3676
+ var value = /** @type {string} */ (reader.readString());
3677
+ msg.addTagIds(value);
3920
3678
  break;
3921
3679
  default:
3922
3680
  reader.skipField();
@@ -3947,43 +3705,41 @@ proto.wechaty.puppet.TagContactTagListResponse.prototype.serializeBinary = funct
3947
3705
  */
3948
3706
  proto.wechaty.puppet.TagContactTagListResponse.serializeBinaryToWriter = function(message, writer) {
3949
3707
  var f = undefined;
3950
- f = message.getTagsList();
3708
+ f = message.getTagIdsList();
3951
3709
  if (f.length > 0) {
3952
- writer.writeRepeatedMessage(
3710
+ writer.writeRepeatedString(
3953
3711
  1,
3954
- f,
3955
- proto.wechaty.puppet.TagIdentifier.serializeBinaryToWriter
3712
+ f
3956
3713
  );
3957
3714
  }
3958
3715
  };
3959
3716
 
3960
3717
 
3961
3718
  /**
3962
- * repeated TagIdentifier tags = 1;
3963
- * @return {!Array<!proto.wechaty.puppet.TagIdentifier>}
3719
+ * repeated string tag_ids = 1;
3720
+ * @return {!Array<string>}
3964
3721
  */
3965
- proto.wechaty.puppet.TagContactTagListResponse.prototype.getTagsList = function() {
3966
- return /** @type{!Array<!proto.wechaty.puppet.TagIdentifier>} */ (
3967
- jspb.Message.getRepeatedWrapperField(this, proto.wechaty.puppet.TagIdentifier, 1));
3722
+ proto.wechaty.puppet.TagContactTagListResponse.prototype.getTagIdsList = function() {
3723
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
3968
3724
  };
3969
3725
 
3970
3726
 
3971
3727
  /**
3972
- * @param {!Array<!proto.wechaty.puppet.TagIdentifier>} value
3728
+ * @param {!Array<string>} value
3973
3729
  * @return {!proto.wechaty.puppet.TagContactTagListResponse} returns this
3974
- */
3975
- proto.wechaty.puppet.TagContactTagListResponse.prototype.setTagsList = function(value) {
3976
- return jspb.Message.setRepeatedWrapperField(this, 1, value);
3730
+ */
3731
+ proto.wechaty.puppet.TagContactTagListResponse.prototype.setTagIdsList = function(value) {
3732
+ return jspb.Message.setField(this, 1, value || []);
3977
3733
  };
3978
3734
 
3979
3735
 
3980
3736
  /**
3981
- * @param {!proto.wechaty.puppet.TagIdentifier=} opt_value
3737
+ * @param {string} value
3982
3738
  * @param {number=} opt_index
3983
- * @return {!proto.wechaty.puppet.TagIdentifier}
3739
+ * @return {!proto.wechaty.puppet.TagContactTagListResponse} returns this
3984
3740
  */
3985
- proto.wechaty.puppet.TagContactTagListResponse.prototype.addTags = function(opt_value, opt_index) {
3986
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.wechaty.puppet.TagIdentifier, opt_index);
3741
+ proto.wechaty.puppet.TagContactTagListResponse.prototype.addTagIds = function(value, opt_index) {
3742
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
3987
3743
  };
3988
3744
 
3989
3745
 
@@ -3991,8 +3747,8 @@ proto.wechaty.puppet.TagContactTagListResponse.prototype.addTags = function(opt_
3991
3747
  * Clears the list making it empty but non-null.
3992
3748
  * @return {!proto.wechaty.puppet.TagContactTagListResponse} returns this
3993
3749
  */
3994
- proto.wechaty.puppet.TagContactTagListResponse.prototype.clearTagsList = function() {
3995
- return this.setTagsList([]);
3750
+ proto.wechaty.puppet.TagContactTagListResponse.prototype.clearTagIdsList = function() {
3751
+ return this.setTagIdsList([]);
3996
3752
  };
3997
3753
 
3998
3754
 
@@ -4028,7 +3784,7 @@ proto.wechaty.puppet.TagTagContactListRequest.prototype.toObject = function(opt_
4028
3784
  */
4029
3785
  proto.wechaty.puppet.TagTagContactListRequest.toObject = function(includeInstance, msg) {
4030
3786
  var f, obj = {
4031
- tag: (f = msg.getTag()) && proto.wechaty.puppet.TagIdentifier.toObject(includeInstance, f)
3787
+ tagId: jspb.Message.getFieldWithDefault(msg, 1, "")
4032
3788
  };
4033
3789
 
4034
3790
  if (includeInstance) {
@@ -4066,9 +3822,8 @@ proto.wechaty.puppet.TagTagContactListRequest.deserializeBinaryFromReader = func
4066
3822
  var field = reader.getFieldNumber();
4067
3823
  switch (field) {
4068
3824
  case 1:
4069
- var value = new proto.wechaty.puppet.TagIdentifier;
4070
- reader.readMessage(value,proto.wechaty.puppet.TagIdentifier.deserializeBinaryFromReader);
4071
- msg.setTag(value);
3825
+ var value = /** @type {string} */ (reader.readString());
3826
+ msg.setTagId(value);
4072
3827
  break;
4073
3828
  default:
4074
3829
  reader.skipField();
@@ -4099,51 +3854,31 @@ proto.wechaty.puppet.TagTagContactListRequest.prototype.serializeBinary = functi
4099
3854
  */
4100
3855
  proto.wechaty.puppet.TagTagContactListRequest.serializeBinaryToWriter = function(message, writer) {
4101
3856
  var f = undefined;
4102
- f = message.getTag();
4103
- if (f != null) {
4104
- writer.writeMessage(
3857
+ f = message.getTagId();
3858
+ if (f.length > 0) {
3859
+ writer.writeString(
4105
3860
  1,
4106
- f,
4107
- proto.wechaty.puppet.TagIdentifier.serializeBinaryToWriter
3861
+ f
4108
3862
  );
4109
3863
  }
4110
3864
  };
4111
3865
 
4112
3866
 
4113
3867
  /**
4114
- * optional TagIdentifier tag = 1;
4115
- * @return {?proto.wechaty.puppet.TagIdentifier}
3868
+ * optional string tag_id = 1;
3869
+ * @return {string}
4116
3870
  */
4117
- proto.wechaty.puppet.TagTagContactListRequest.prototype.getTag = function() {
4118
- return /** @type{?proto.wechaty.puppet.TagIdentifier} */ (
4119
- jspb.Message.getWrapperField(this, proto.wechaty.puppet.TagIdentifier, 1));
4120
- };
4121
-
4122
-
4123
- /**
4124
- * @param {?proto.wechaty.puppet.TagIdentifier|undefined} value
4125
- * @return {!proto.wechaty.puppet.TagTagContactListRequest} returns this
4126
- */
4127
- proto.wechaty.puppet.TagTagContactListRequest.prototype.setTag = function(value) {
4128
- return jspb.Message.setWrapperField(this, 1, value);
3871
+ proto.wechaty.puppet.TagTagContactListRequest.prototype.getTagId = function() {
3872
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
4129
3873
  };
4130
3874
 
4131
3875
 
4132
3876
  /**
4133
- * Clears the message field making it undefined.
3877
+ * @param {string} value
4134
3878
  * @return {!proto.wechaty.puppet.TagTagContactListRequest} returns this
4135
3879
  */
4136
- proto.wechaty.puppet.TagTagContactListRequest.prototype.clearTag = function() {
4137
- return this.setTag(undefined);
4138
- };
4139
-
4140
-
4141
- /**
4142
- * Returns whether this field is set.
4143
- * @return {boolean}
4144
- */
4145
- proto.wechaty.puppet.TagTagContactListRequest.prototype.hasTag = function() {
4146
- return jspb.Message.getField(this, 1) != null;
3880
+ proto.wechaty.puppet.TagTagContactListRequest.prototype.setTagId = function(value) {
3881
+ return jspb.Message.setProto3StringField(this, 1, value);
4147
3882
  };
4148
3883
 
4149
3884
 
@@ -4616,7 +4351,7 @@ proto.wechaty.puppet.TagPayloadRequest.prototype.toObject = function(opt_include
4616
4351
  */
4617
4352
  proto.wechaty.puppet.TagPayloadRequest.toObject = function(includeInstance, msg) {
4618
4353
  var f, obj = {
4619
- tag: (f = msg.getTag()) && proto.wechaty.puppet.TagIdentifier.toObject(includeInstance, f)
4354
+ tagId: jspb.Message.getFieldWithDefault(msg, 1, "")
4620
4355
  };
4621
4356
 
4622
4357
  if (includeInstance) {
@@ -4654,9 +4389,8 @@ proto.wechaty.puppet.TagPayloadRequest.deserializeBinaryFromReader = function(ms
4654
4389
  var field = reader.getFieldNumber();
4655
4390
  switch (field) {
4656
4391
  case 1:
4657
- var value = new proto.wechaty.puppet.TagIdentifier;
4658
- reader.readMessage(value,proto.wechaty.puppet.TagIdentifier.deserializeBinaryFromReader);
4659
- msg.setTag(value);
4392
+ var value = /** @type {string} */ (reader.readString());
4393
+ msg.setTagId(value);
4660
4394
  break;
4661
4395
  default:
4662
4396
  reader.skipField();
@@ -4687,51 +4421,31 @@ proto.wechaty.puppet.TagPayloadRequest.prototype.serializeBinary = function() {
4687
4421
  */
4688
4422
  proto.wechaty.puppet.TagPayloadRequest.serializeBinaryToWriter = function(message, writer) {
4689
4423
  var f = undefined;
4690
- f = message.getTag();
4691
- if (f != null) {
4692
- writer.writeMessage(
4424
+ f = message.getTagId();
4425
+ if (f.length > 0) {
4426
+ writer.writeString(
4693
4427
  1,
4694
- f,
4695
- proto.wechaty.puppet.TagIdentifier.serializeBinaryToWriter
4428
+ f
4696
4429
  );
4697
4430
  }
4698
4431
  };
4699
4432
 
4700
4433
 
4701
4434
  /**
4702
- * optional TagIdentifier tag = 1;
4703
- * @return {?proto.wechaty.puppet.TagIdentifier}
4435
+ * optional string tag_id = 1;
4436
+ * @return {string}
4704
4437
  */
4705
- proto.wechaty.puppet.TagPayloadRequest.prototype.getTag = function() {
4706
- return /** @type{?proto.wechaty.puppet.TagIdentifier} */ (
4707
- jspb.Message.getWrapperField(this, proto.wechaty.puppet.TagIdentifier, 1));
4708
- };
4709
-
4710
-
4711
- /**
4712
- * @param {?proto.wechaty.puppet.TagIdentifier|undefined} value
4713
- * @return {!proto.wechaty.puppet.TagPayloadRequest} returns this
4714
- */
4715
- proto.wechaty.puppet.TagPayloadRequest.prototype.setTag = function(value) {
4716
- return jspb.Message.setWrapperField(this, 1, value);
4438
+ proto.wechaty.puppet.TagPayloadRequest.prototype.getTagId = function() {
4439
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
4717
4440
  };
4718
4441
 
4719
4442
 
4720
4443
  /**
4721
- * Clears the message field making it undefined.
4444
+ * @param {string} value
4722
4445
  * @return {!proto.wechaty.puppet.TagPayloadRequest} returns this
4723
4446
  */
4724
- proto.wechaty.puppet.TagPayloadRequest.prototype.clearTag = function() {
4725
- return this.setTag(undefined);
4726
- };
4727
-
4728
-
4729
- /**
4730
- * Returns whether this field is set.
4731
- * @return {boolean}
4732
- */
4733
- proto.wechaty.puppet.TagPayloadRequest.prototype.hasTag = function() {
4734
- return jspb.Message.getField(this, 1) != null;
4447
+ proto.wechaty.puppet.TagPayloadRequest.prototype.setTagId = function(value) {
4448
+ return jspb.Message.setProto3StringField(this, 1, value);
4735
4449
  };
4736
4450
 
4737
4451