@juzi/wechaty-grpc 1.0.11 → 1.0.12

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.
@@ -30,6 +30,7 @@ goog.exportSymbol('proto.wechaty.puppet.TagGroupListResponse', null, global);
30
30
  goog.exportSymbol('proto.wechaty.puppet.TagGroupPayload', null, global);
31
31
  goog.exportSymbol('proto.wechaty.puppet.TagGroupTagListRequest', null, global);
32
32
  goog.exportSymbol('proto.wechaty.puppet.TagGroupTagListResponse', null, global);
33
+ goog.exportSymbol('proto.wechaty.puppet.TagIdentifier', null, global);
33
34
  goog.exportSymbol('proto.wechaty.puppet.TagPayload', null, global);
34
35
  goog.exportSymbol('proto.wechaty.puppet.TagTagAddRequest', null, global);
35
36
  goog.exportSymbol('proto.wechaty.puppet.TagTagAddResponse', null, global);
@@ -61,6 +62,27 @@ if (goog.DEBUG && !COMPILED) {
61
62
  */
62
63
  proto.wechaty.puppet.TagPayload.displayName = 'proto.wechaty.puppet.TagPayload';
63
64
  }
65
+ /**
66
+ * Generated by JsPbCodeGenerator.
67
+ * @param {Array=} opt_data Optional initial data array, typically from a
68
+ * server response, or constructed directly in Javascript. The array is used
69
+ * in place and becomes part of the constructed object. It is not cloned.
70
+ * If no data is provided, the constructed object will be empty, but still
71
+ * valid.
72
+ * @extends {jspb.Message}
73
+ * @constructor
74
+ */
75
+ proto.wechaty.puppet.TagIdentifier = function(opt_data) {
76
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
77
+ };
78
+ goog.inherits(proto.wechaty.puppet.TagIdentifier, jspb.Message);
79
+ if (goog.DEBUG && !COMPILED) {
80
+ /**
81
+ * @public
82
+ * @override
83
+ */
84
+ proto.wechaty.puppet.TagIdentifier.displayName = 'proto.wechaty.puppet.TagIdentifier';
85
+ }
64
86
  /**
65
87
  * Generated by JsPbCodeGenerator.
66
88
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -93,7 +115,7 @@ if (goog.DEBUG && !COMPILED) {
93
115
  * @constructor
94
116
  */
95
117
  proto.wechaty.puppet.TagContactTagAddRequest = function(opt_data) {
96
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
118
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.wechaty.puppet.TagContactTagAddRequest.repeatedFields_, null);
97
119
  };
98
120
  goog.inherits(proto.wechaty.puppet.TagContactTagAddRequest, jspb.Message);
99
121
  if (goog.DEBUG && !COMPILED) {
@@ -135,7 +157,7 @@ if (goog.DEBUG && !COMPILED) {
135
157
  * @constructor
136
158
  */
137
159
  proto.wechaty.puppet.TagContactTagRemoveRequest = function(opt_data) {
138
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
160
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.wechaty.puppet.TagContactTagRemoveRequest.repeatedFields_, null);
139
161
  };
140
162
  goog.inherits(proto.wechaty.puppet.TagContactTagRemoveRequest, jspb.Message);
141
163
  if (goog.DEBUG && !COMPILED) {
@@ -767,6 +789,166 @@ proto.wechaty.puppet.TagPayload.prototype.setType = function(value) {
767
789
 
768
790
 
769
791
 
792
+ if (jspb.Message.GENERATE_TO_OBJECT) {
793
+ /**
794
+ * Creates an object representation of this proto.
795
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
796
+ * Optional fields that are not set will be set to undefined.
797
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
798
+ * For the list of reserved names please see:
799
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
800
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
801
+ * JSPB instance for transitional soy proto support:
802
+ * http://goto/soy-param-migration
803
+ * @return {!Object}
804
+ */
805
+ proto.wechaty.puppet.TagIdentifier.prototype.toObject = function(opt_includeInstance) {
806
+ return proto.wechaty.puppet.TagIdentifier.toObject(opt_includeInstance, this);
807
+ };
808
+
809
+
810
+ /**
811
+ * Static version of the {@see toObject} method.
812
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
813
+ * the JSPB instance for transitional soy proto support:
814
+ * http://goto/soy-param-migration
815
+ * @param {!proto.wechaty.puppet.TagIdentifier} msg The msg instance to transform.
816
+ * @return {!Object}
817
+ * @suppress {unusedLocalVariables} f is only used for nested messages
818
+ */
819
+ proto.wechaty.puppet.TagIdentifier.toObject = function(includeInstance, msg) {
820
+ var f, obj = {
821
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
822
+ groupId: jspb.Message.getFieldWithDefault(msg, 2, "")
823
+ };
824
+
825
+ if (includeInstance) {
826
+ obj.$jspbMessageInstance = msg;
827
+ }
828
+ return obj;
829
+ };
830
+ }
831
+
832
+
833
+ /**
834
+ * Deserializes binary data (in protobuf wire format).
835
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
836
+ * @return {!proto.wechaty.puppet.TagIdentifier}
837
+ */
838
+ proto.wechaty.puppet.TagIdentifier.deserializeBinary = function(bytes) {
839
+ var reader = new jspb.BinaryReader(bytes);
840
+ var msg = new proto.wechaty.puppet.TagIdentifier;
841
+ return proto.wechaty.puppet.TagIdentifier.deserializeBinaryFromReader(msg, reader);
842
+ };
843
+
844
+
845
+ /**
846
+ * Deserializes binary data (in protobuf wire format) from the
847
+ * given reader into the given message object.
848
+ * @param {!proto.wechaty.puppet.TagIdentifier} msg The message object to deserialize into.
849
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
850
+ * @return {!proto.wechaty.puppet.TagIdentifier}
851
+ */
852
+ proto.wechaty.puppet.TagIdentifier.deserializeBinaryFromReader = function(msg, reader) {
853
+ while (reader.nextField()) {
854
+ if (reader.isEndGroup()) {
855
+ break;
856
+ }
857
+ var field = reader.getFieldNumber();
858
+ switch (field) {
859
+ case 1:
860
+ var value = /** @type {string} */ (reader.readString());
861
+ msg.setId(value);
862
+ break;
863
+ case 2:
864
+ var value = /** @type {string} */ (reader.readString());
865
+ msg.setGroupId(value);
866
+ break;
867
+ default:
868
+ reader.skipField();
869
+ break;
870
+ }
871
+ }
872
+ return msg;
873
+ };
874
+
875
+
876
+ /**
877
+ * Serializes the message to binary data (in protobuf wire format).
878
+ * @return {!Uint8Array}
879
+ */
880
+ proto.wechaty.puppet.TagIdentifier.prototype.serializeBinary = function() {
881
+ var writer = new jspb.BinaryWriter();
882
+ proto.wechaty.puppet.TagIdentifier.serializeBinaryToWriter(this, writer);
883
+ return writer.getResultBuffer();
884
+ };
885
+
886
+
887
+ /**
888
+ * Serializes the given message to binary data (in protobuf wire
889
+ * format), writing to the given BinaryWriter.
890
+ * @param {!proto.wechaty.puppet.TagIdentifier} message
891
+ * @param {!jspb.BinaryWriter} writer
892
+ * @suppress {unusedLocalVariables} f is only used for nested messages
893
+ */
894
+ proto.wechaty.puppet.TagIdentifier.serializeBinaryToWriter = function(message, writer) {
895
+ var f = undefined;
896
+ f = message.getId();
897
+ if (f.length > 0) {
898
+ writer.writeString(
899
+ 1,
900
+ f
901
+ );
902
+ }
903
+ f = message.getGroupId();
904
+ if (f.length > 0) {
905
+ writer.writeString(
906
+ 2,
907
+ f
908
+ );
909
+ }
910
+ };
911
+
912
+
913
+ /**
914
+ * optional string id = 1;
915
+ * @return {string}
916
+ */
917
+ proto.wechaty.puppet.TagIdentifier.prototype.getId = function() {
918
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
919
+ };
920
+
921
+
922
+ /**
923
+ * @param {string} value
924
+ * @return {!proto.wechaty.puppet.TagIdentifier} returns this
925
+ */
926
+ proto.wechaty.puppet.TagIdentifier.prototype.setId = function(value) {
927
+ return jspb.Message.setProto3StringField(this, 1, value);
928
+ };
929
+
930
+
931
+ /**
932
+ * optional string group_id = 2;
933
+ * @return {string}
934
+ */
935
+ proto.wechaty.puppet.TagIdentifier.prototype.getGroupId = function() {
936
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
937
+ };
938
+
939
+
940
+ /**
941
+ * @param {string} value
942
+ * @return {!proto.wechaty.puppet.TagIdentifier} returns this
943
+ */
944
+ proto.wechaty.puppet.TagIdentifier.prototype.setGroupId = function(value) {
945
+ return jspb.Message.setProto3StringField(this, 2, value);
946
+ };
947
+
948
+
949
+
950
+
951
+
770
952
  if (jspb.Message.GENERATE_TO_OBJECT) {
771
953
  /**
772
954
  * Creates an object representation of this proto.
@@ -925,6 +1107,13 @@ proto.wechaty.puppet.TagGroupPayload.prototype.setName = function(value) {
925
1107
 
926
1108
 
927
1109
 
1110
+ /**
1111
+ * List of repeated fields within this message type.
1112
+ * @private {!Array<number>}
1113
+ * @const
1114
+ */
1115
+ proto.wechaty.puppet.TagContactTagAddRequest.repeatedFields_ = [1,2];
1116
+
928
1117
 
929
1118
 
930
1119
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -956,9 +1145,9 @@ proto.wechaty.puppet.TagContactTagAddRequest.prototype.toObject = function(opt_i
956
1145
  */
957
1146
  proto.wechaty.puppet.TagContactTagAddRequest.toObject = function(includeInstance, msg) {
958
1147
  var f, obj = {
959
- tagGroupId: jspb.Message.getFieldWithDefault(msg, 1, ""),
960
- tagId: jspb.Message.getFieldWithDefault(msg, 2, ""),
961
- contactId: jspb.Message.getFieldWithDefault(msg, 3, "")
1148
+ tagsList: jspb.Message.toObjectList(msg.getTagsList(),
1149
+ proto.wechaty.puppet.TagIdentifier.toObject, includeInstance),
1150
+ contactIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
962
1151
  };
963
1152
 
964
1153
  if (includeInstance) {
@@ -996,16 +1185,13 @@ proto.wechaty.puppet.TagContactTagAddRequest.deserializeBinaryFromReader = funct
996
1185
  var field = reader.getFieldNumber();
997
1186
  switch (field) {
998
1187
  case 1:
999
- var value = /** @type {string} */ (reader.readString());
1000
- msg.setTagGroupId(value);
1188
+ var value = new proto.wechaty.puppet.TagIdentifier;
1189
+ reader.readMessage(value,proto.wechaty.puppet.TagIdentifier.deserializeBinaryFromReader);
1190
+ msg.addTags(value);
1001
1191
  break;
1002
1192
  case 2:
1003
1193
  var value = /** @type {string} */ (reader.readString());
1004
- msg.setTagId(value);
1005
- break;
1006
- case 3:
1007
- var value = /** @type {string} */ (reader.readString());
1008
- msg.setContactId(value);
1194
+ msg.addContactIds(value);
1009
1195
  break;
1010
1196
  default:
1011
1197
  reader.skipField();
@@ -1036,81 +1222,96 @@ proto.wechaty.puppet.TagContactTagAddRequest.prototype.serializeBinary = functio
1036
1222
  */
1037
1223
  proto.wechaty.puppet.TagContactTagAddRequest.serializeBinaryToWriter = function(message, writer) {
1038
1224
  var f = undefined;
1039
- f = message.getTagGroupId();
1225
+ f = message.getTagsList();
1040
1226
  if (f.length > 0) {
1041
- writer.writeString(
1227
+ writer.writeRepeatedMessage(
1042
1228
  1,
1043
- f
1229
+ f,
1230
+ proto.wechaty.puppet.TagIdentifier.serializeBinaryToWriter
1044
1231
  );
1045
1232
  }
1046
- f = message.getTagId();
1233
+ f = message.getContactIdsList();
1047
1234
  if (f.length > 0) {
1048
- writer.writeString(
1235
+ writer.writeRepeatedString(
1049
1236
  2,
1050
1237
  f
1051
1238
  );
1052
1239
  }
1053
- f = message.getContactId();
1054
- if (f.length > 0) {
1055
- writer.writeString(
1056
- 3,
1057
- f
1058
- );
1059
- }
1060
1240
  };
1061
1241
 
1062
1242
 
1063
1243
  /**
1064
- * optional string tag_group_id = 1;
1065
- * @return {string}
1244
+ * repeated TagIdentifier tags = 1;
1245
+ * @return {!Array<!proto.wechaty.puppet.TagIdentifier>}
1066
1246
  */
1067
- proto.wechaty.puppet.TagContactTagAddRequest.prototype.getTagGroupId = function() {
1068
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1247
+ proto.wechaty.puppet.TagContactTagAddRequest.prototype.getTagsList = function() {
1248
+ return /** @type{!Array<!proto.wechaty.puppet.TagIdentifier>} */ (
1249
+ jspb.Message.getRepeatedWrapperField(this, proto.wechaty.puppet.TagIdentifier, 1));
1069
1250
  };
1070
1251
 
1071
1252
 
1072
1253
  /**
1073
- * @param {string} value
1254
+ * @param {!Array<!proto.wechaty.puppet.TagIdentifier>} value
1074
1255
  * @return {!proto.wechaty.puppet.TagContactTagAddRequest} returns this
1075
- */
1076
- proto.wechaty.puppet.TagContactTagAddRequest.prototype.setTagGroupId = function(value) {
1077
- return jspb.Message.setProto3StringField(this, 1, value);
1256
+ */
1257
+ proto.wechaty.puppet.TagContactTagAddRequest.prototype.setTagsList = function(value) {
1258
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
1078
1259
  };
1079
1260
 
1080
1261
 
1081
1262
  /**
1082
- * optional string tag_id = 2;
1083
- * @return {string}
1263
+ * @param {!proto.wechaty.puppet.TagIdentifier=} opt_value
1264
+ * @param {number=} opt_index
1265
+ * @return {!proto.wechaty.puppet.TagIdentifier}
1084
1266
  */
1085
- proto.wechaty.puppet.TagContactTagAddRequest.prototype.getTagId = function() {
1086
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1267
+ proto.wechaty.puppet.TagContactTagAddRequest.prototype.addTags = function(opt_value, opt_index) {
1268
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.wechaty.puppet.TagIdentifier, opt_index);
1087
1269
  };
1088
1270
 
1089
1271
 
1090
1272
  /**
1091
- * @param {string} value
1273
+ * Clears the list making it empty but non-null.
1092
1274
  * @return {!proto.wechaty.puppet.TagContactTagAddRequest} returns this
1093
1275
  */
1094
- proto.wechaty.puppet.TagContactTagAddRequest.prototype.setTagId = function(value) {
1095
- return jspb.Message.setProto3StringField(this, 2, value);
1276
+ proto.wechaty.puppet.TagContactTagAddRequest.prototype.clearTagsList = function() {
1277
+ return this.setTagsList([]);
1096
1278
  };
1097
1279
 
1098
1280
 
1099
1281
  /**
1100
- * optional string contact_id = 3;
1101
- * @return {string}
1282
+ * repeated string contact_ids = 2;
1283
+ * @return {!Array<string>}
1102
1284
  */
1103
- proto.wechaty.puppet.TagContactTagAddRequest.prototype.getContactId = function() {
1104
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1285
+ proto.wechaty.puppet.TagContactTagAddRequest.prototype.getContactIdsList = function() {
1286
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
1287
+ };
1288
+
1289
+
1290
+ /**
1291
+ * @param {!Array<string>} value
1292
+ * @return {!proto.wechaty.puppet.TagContactTagAddRequest} returns this
1293
+ */
1294
+ proto.wechaty.puppet.TagContactTagAddRequest.prototype.setContactIdsList = function(value) {
1295
+ return jspb.Message.setField(this, 2, value || []);
1105
1296
  };
1106
1297
 
1107
1298
 
1108
1299
  /**
1109
1300
  * @param {string} value
1301
+ * @param {number=} opt_index
1110
1302
  * @return {!proto.wechaty.puppet.TagContactTagAddRequest} returns this
1111
1303
  */
1112
- proto.wechaty.puppet.TagContactTagAddRequest.prototype.setContactId = function(value) {
1113
- return jspb.Message.setProto3StringField(this, 3, value);
1304
+ proto.wechaty.puppet.TagContactTagAddRequest.prototype.addContactIds = function(value, opt_index) {
1305
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
1306
+ };
1307
+
1308
+
1309
+ /**
1310
+ * Clears the list making it empty but non-null.
1311
+ * @return {!proto.wechaty.puppet.TagContactTagAddRequest} returns this
1312
+ */
1313
+ proto.wechaty.puppet.TagContactTagAddRequest.prototype.clearContactIdsList = function() {
1314
+ return this.setContactIdsList([]);
1114
1315
  };
1115
1316
 
1116
1317
 
@@ -1216,6 +1417,13 @@ proto.wechaty.puppet.TagContactTagAddResponse.serializeBinaryToWriter = function
1216
1417
 
1217
1418
 
1218
1419
 
1420
+ /**
1421
+ * List of repeated fields within this message type.
1422
+ * @private {!Array<number>}
1423
+ * @const
1424
+ */
1425
+ proto.wechaty.puppet.TagContactTagRemoveRequest.repeatedFields_ = [1,2];
1426
+
1219
1427
 
1220
1428
 
1221
1429
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -1247,9 +1455,9 @@ proto.wechaty.puppet.TagContactTagRemoveRequest.prototype.toObject = function(op
1247
1455
  */
1248
1456
  proto.wechaty.puppet.TagContactTagRemoveRequest.toObject = function(includeInstance, msg) {
1249
1457
  var f, obj = {
1250
- tagGroupId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1251
- tagId: jspb.Message.getFieldWithDefault(msg, 2, ""),
1252
- contactId: jspb.Message.getFieldWithDefault(msg, 3, "")
1458
+ tagsList: jspb.Message.toObjectList(msg.getTagsList(),
1459
+ proto.wechaty.puppet.TagIdentifier.toObject, includeInstance),
1460
+ contactIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
1253
1461
  };
1254
1462
 
1255
1463
  if (includeInstance) {
@@ -1287,16 +1495,13 @@ proto.wechaty.puppet.TagContactTagRemoveRequest.deserializeBinaryFromReader = fu
1287
1495
  var field = reader.getFieldNumber();
1288
1496
  switch (field) {
1289
1497
  case 1:
1290
- var value = /** @type {string} */ (reader.readString());
1291
- msg.setTagGroupId(value);
1498
+ var value = new proto.wechaty.puppet.TagIdentifier;
1499
+ reader.readMessage(value,proto.wechaty.puppet.TagIdentifier.deserializeBinaryFromReader);
1500
+ msg.addTags(value);
1292
1501
  break;
1293
1502
  case 2:
1294
1503
  var value = /** @type {string} */ (reader.readString());
1295
- msg.setTagId(value);
1296
- break;
1297
- case 3:
1298
- var value = /** @type {string} */ (reader.readString());
1299
- msg.setContactId(value);
1504
+ msg.addContactIds(value);
1300
1505
  break;
1301
1506
  default:
1302
1507
  reader.skipField();
@@ -1327,81 +1532,96 @@ proto.wechaty.puppet.TagContactTagRemoveRequest.prototype.serializeBinary = func
1327
1532
  */
1328
1533
  proto.wechaty.puppet.TagContactTagRemoveRequest.serializeBinaryToWriter = function(message, writer) {
1329
1534
  var f = undefined;
1330
- f = message.getTagGroupId();
1535
+ f = message.getTagsList();
1331
1536
  if (f.length > 0) {
1332
- writer.writeString(
1537
+ writer.writeRepeatedMessage(
1333
1538
  1,
1334
- f
1539
+ f,
1540
+ proto.wechaty.puppet.TagIdentifier.serializeBinaryToWriter
1335
1541
  );
1336
1542
  }
1337
- f = message.getTagId();
1543
+ f = message.getContactIdsList();
1338
1544
  if (f.length > 0) {
1339
- writer.writeString(
1545
+ writer.writeRepeatedString(
1340
1546
  2,
1341
1547
  f
1342
1548
  );
1343
1549
  }
1344
- f = message.getContactId();
1345
- if (f.length > 0) {
1346
- writer.writeString(
1347
- 3,
1348
- f
1349
- );
1350
- }
1351
1550
  };
1352
1551
 
1353
1552
 
1354
1553
  /**
1355
- * optional string tag_group_id = 1;
1356
- * @return {string}
1554
+ * repeated TagIdentifier tags = 1;
1555
+ * @return {!Array<!proto.wechaty.puppet.TagIdentifier>}
1357
1556
  */
1358
- proto.wechaty.puppet.TagContactTagRemoveRequest.prototype.getTagGroupId = function() {
1359
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1557
+ proto.wechaty.puppet.TagContactTagRemoveRequest.prototype.getTagsList = function() {
1558
+ return /** @type{!Array<!proto.wechaty.puppet.TagIdentifier>} */ (
1559
+ jspb.Message.getRepeatedWrapperField(this, proto.wechaty.puppet.TagIdentifier, 1));
1360
1560
  };
1361
1561
 
1362
1562
 
1363
1563
  /**
1364
- * @param {string} value
1564
+ * @param {!Array<!proto.wechaty.puppet.TagIdentifier>} value
1365
1565
  * @return {!proto.wechaty.puppet.TagContactTagRemoveRequest} returns this
1366
- */
1367
- proto.wechaty.puppet.TagContactTagRemoveRequest.prototype.setTagGroupId = function(value) {
1368
- return jspb.Message.setProto3StringField(this, 1, value);
1566
+ */
1567
+ proto.wechaty.puppet.TagContactTagRemoveRequest.prototype.setTagsList = function(value) {
1568
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
1369
1569
  };
1370
1570
 
1371
1571
 
1372
1572
  /**
1373
- * optional string tag_id = 2;
1374
- * @return {string}
1573
+ * @param {!proto.wechaty.puppet.TagIdentifier=} opt_value
1574
+ * @param {number=} opt_index
1575
+ * @return {!proto.wechaty.puppet.TagIdentifier}
1375
1576
  */
1376
- proto.wechaty.puppet.TagContactTagRemoveRequest.prototype.getTagId = function() {
1377
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1577
+ proto.wechaty.puppet.TagContactTagRemoveRequest.prototype.addTags = function(opt_value, opt_index) {
1578
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.wechaty.puppet.TagIdentifier, opt_index);
1378
1579
  };
1379
1580
 
1380
1581
 
1381
1582
  /**
1382
- * @param {string} value
1583
+ * Clears the list making it empty but non-null.
1383
1584
  * @return {!proto.wechaty.puppet.TagContactTagRemoveRequest} returns this
1384
1585
  */
1385
- proto.wechaty.puppet.TagContactTagRemoveRequest.prototype.setTagId = function(value) {
1386
- return jspb.Message.setProto3StringField(this, 2, value);
1586
+ proto.wechaty.puppet.TagContactTagRemoveRequest.prototype.clearTagsList = function() {
1587
+ return this.setTagsList([]);
1387
1588
  };
1388
1589
 
1389
1590
 
1390
1591
  /**
1391
- * optional string contact_id = 3;
1392
- * @return {string}
1592
+ * repeated string contact_ids = 2;
1593
+ * @return {!Array<string>}
1393
1594
  */
1394
- proto.wechaty.puppet.TagContactTagRemoveRequest.prototype.getContactId = function() {
1395
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1595
+ proto.wechaty.puppet.TagContactTagRemoveRequest.prototype.getContactIdsList = function() {
1596
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
1597
+ };
1598
+
1599
+
1600
+ /**
1601
+ * @param {!Array<string>} value
1602
+ * @return {!proto.wechaty.puppet.TagContactTagRemoveRequest} returns this
1603
+ */
1604
+ proto.wechaty.puppet.TagContactTagRemoveRequest.prototype.setContactIdsList = function(value) {
1605
+ return jspb.Message.setField(this, 2, value || []);
1396
1606
  };
1397
1607
 
1398
1608
 
1399
1609
  /**
1400
1610
  * @param {string} value
1611
+ * @param {number=} opt_index
1401
1612
  * @return {!proto.wechaty.puppet.TagContactTagRemoveRequest} returns this
1402
1613
  */
1403
- proto.wechaty.puppet.TagContactTagRemoveRequest.prototype.setContactId = function(value) {
1404
- return jspb.Message.setProto3StringField(this, 3, value);
1614
+ proto.wechaty.puppet.TagContactTagRemoveRequest.prototype.addContactIds = function(value, opt_index) {
1615
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
1616
+ };
1617
+
1618
+
1619
+ /**
1620
+ * Clears the list making it empty but non-null.
1621
+ * @return {!proto.wechaty.puppet.TagContactTagRemoveRequest} returns this
1622
+ */
1623
+ proto.wechaty.puppet.TagContactTagRemoveRequest.prototype.clearContactIdsList = function() {
1624
+ return this.setContactIdsList([]);
1405
1625
  };
1406
1626
 
1407
1627
 
@@ -2050,8 +2270,8 @@ proto.wechaty.puppet.TagTagAddRequest.prototype.toObject = function(opt_includeI
2050
2270
  */
2051
2271
  proto.wechaty.puppet.TagTagAddRequest.toObject = function(includeInstance, msg) {
2052
2272
  var f, obj = {
2053
- tagGroupId: jspb.Message.getFieldWithDefault(msg, 1, ""),
2054
- tagName: jspb.Message.getFieldWithDefault(msg, 2, "")
2273
+ tagName: jspb.Message.getFieldWithDefault(msg, 1, ""),
2274
+ tagGroupId: jspb.Message.getFieldWithDefault(msg, 2, "")
2055
2275
  };
2056
2276
 
2057
2277
  if (includeInstance) {
@@ -2090,11 +2310,11 @@ proto.wechaty.puppet.TagTagAddRequest.deserializeBinaryFromReader = function(msg
2090
2310
  switch (field) {
2091
2311
  case 1:
2092
2312
  var value = /** @type {string} */ (reader.readString());
2093
- msg.setTagGroupId(value);
2313
+ msg.setTagName(value);
2094
2314
  break;
2095
2315
  case 2:
2096
2316
  var value = /** @type {string} */ (reader.readString());
2097
- msg.setTagName(value);
2317
+ msg.setTagGroupId(value);
2098
2318
  break;
2099
2319
  default:
2100
2320
  reader.skipField();
@@ -2125,14 +2345,14 @@ proto.wechaty.puppet.TagTagAddRequest.prototype.serializeBinary = function() {
2125
2345
  */
2126
2346
  proto.wechaty.puppet.TagTagAddRequest.serializeBinaryToWriter = function(message, writer) {
2127
2347
  var f = undefined;
2128
- f = message.getTagGroupId();
2348
+ f = message.getTagName();
2129
2349
  if (f.length > 0) {
2130
2350
  writer.writeString(
2131
2351
  1,
2132
2352
  f
2133
2353
  );
2134
2354
  }
2135
- f = message.getTagName();
2355
+ f = message.getTagGroupId();
2136
2356
  if (f.length > 0) {
2137
2357
  writer.writeString(
2138
2358
  2,
@@ -2143,10 +2363,10 @@ proto.wechaty.puppet.TagTagAddRequest.serializeBinaryToWriter = function(message
2143
2363
 
2144
2364
 
2145
2365
  /**
2146
- * optional string tag_group_id = 1;
2366
+ * optional string tag_name = 1;
2147
2367
  * @return {string}
2148
2368
  */
2149
- proto.wechaty.puppet.TagTagAddRequest.prototype.getTagGroupId = function() {
2369
+ proto.wechaty.puppet.TagTagAddRequest.prototype.getTagName = function() {
2150
2370
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2151
2371
  };
2152
2372
 
@@ -2155,16 +2375,16 @@ proto.wechaty.puppet.TagTagAddRequest.prototype.getTagGroupId = function() {
2155
2375
  * @param {string} value
2156
2376
  * @return {!proto.wechaty.puppet.TagTagAddRequest} returns this
2157
2377
  */
2158
- proto.wechaty.puppet.TagTagAddRequest.prototype.setTagGroupId = function(value) {
2378
+ proto.wechaty.puppet.TagTagAddRequest.prototype.setTagName = function(value) {
2159
2379
  return jspb.Message.setProto3StringField(this, 1, value);
2160
2380
  };
2161
2381
 
2162
2382
 
2163
2383
  /**
2164
- * optional string tag_name = 2;
2384
+ * optional string tag_group_id = 2;
2165
2385
  * @return {string}
2166
2386
  */
2167
- proto.wechaty.puppet.TagTagAddRequest.prototype.getTagName = function() {
2387
+ proto.wechaty.puppet.TagTagAddRequest.prototype.getTagGroupId = function() {
2168
2388
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2169
2389
  };
2170
2390
 
@@ -2173,7 +2393,7 @@ proto.wechaty.puppet.TagTagAddRequest.prototype.getTagName = function() {
2173
2393
  * @param {string} value
2174
2394
  * @return {!proto.wechaty.puppet.TagTagAddRequest} returns this
2175
2395
  */
2176
- proto.wechaty.puppet.TagTagAddRequest.prototype.setTagName = function(value) {
2396
+ proto.wechaty.puppet.TagTagAddRequest.prototype.setTagGroupId = function(value) {
2177
2397
  return jspb.Message.setProto3StringField(this, 2, value);
2178
2398
  };
2179
2399
 
@@ -2361,8 +2581,7 @@ proto.wechaty.puppet.TagTagDeleteRequest.prototype.toObject = function(opt_inclu
2361
2581
  */
2362
2582
  proto.wechaty.puppet.TagTagDeleteRequest.toObject = function(includeInstance, msg) {
2363
2583
  var f, obj = {
2364
- tagGroupId: jspb.Message.getFieldWithDefault(msg, 1, ""),
2365
- tagId: jspb.Message.getFieldWithDefault(msg, 2, "")
2584
+ tag: (f = msg.getTag()) && proto.wechaty.puppet.TagIdentifier.toObject(includeInstance, f)
2366
2585
  };
2367
2586
 
2368
2587
  if (includeInstance) {
@@ -2400,12 +2619,9 @@ proto.wechaty.puppet.TagTagDeleteRequest.deserializeBinaryFromReader = function(
2400
2619
  var field = reader.getFieldNumber();
2401
2620
  switch (field) {
2402
2621
  case 1:
2403
- var value = /** @type {string} */ (reader.readString());
2404
- msg.setTagGroupId(value);
2405
- break;
2406
- case 2:
2407
- var value = /** @type {string} */ (reader.readString());
2408
- msg.setTagId(value);
2622
+ var value = new proto.wechaty.puppet.TagIdentifier;
2623
+ reader.readMessage(value,proto.wechaty.puppet.TagIdentifier.deserializeBinaryFromReader);
2624
+ msg.setTag(value);
2409
2625
  break;
2410
2626
  default:
2411
2627
  reader.skipField();
@@ -2436,56 +2652,51 @@ proto.wechaty.puppet.TagTagDeleteRequest.prototype.serializeBinary = function()
2436
2652
  */
2437
2653
  proto.wechaty.puppet.TagTagDeleteRequest.serializeBinaryToWriter = function(message, writer) {
2438
2654
  var f = undefined;
2439
- f = message.getTagGroupId();
2440
- if (f.length > 0) {
2441
- writer.writeString(
2655
+ f = message.getTag();
2656
+ if (f != null) {
2657
+ writer.writeMessage(
2442
2658
  1,
2443
- f
2444
- );
2445
- }
2446
- f = message.getTagId();
2447
- if (f.length > 0) {
2448
- writer.writeString(
2449
- 2,
2450
- f
2659
+ f,
2660
+ proto.wechaty.puppet.TagIdentifier.serializeBinaryToWriter
2451
2661
  );
2452
2662
  }
2453
2663
  };
2454
2664
 
2455
2665
 
2456
2666
  /**
2457
- * optional string tag_group_id = 1;
2458
- * @return {string}
2667
+ * optional TagIdentifier tag = 1;
2668
+ * @return {?proto.wechaty.puppet.TagIdentifier}
2459
2669
  */
2460
- proto.wechaty.puppet.TagTagDeleteRequest.prototype.getTagGroupId = function() {
2461
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2670
+ proto.wechaty.puppet.TagTagDeleteRequest.prototype.getTag = function() {
2671
+ return /** @type{?proto.wechaty.puppet.TagIdentifier} */ (
2672
+ jspb.Message.getWrapperField(this, proto.wechaty.puppet.TagIdentifier, 1));
2462
2673
  };
2463
2674
 
2464
2675
 
2465
2676
  /**
2466
- * @param {string} value
2677
+ * @param {?proto.wechaty.puppet.TagIdentifier|undefined} value
2467
2678
  * @return {!proto.wechaty.puppet.TagTagDeleteRequest} returns this
2468
- */
2469
- proto.wechaty.puppet.TagTagDeleteRequest.prototype.setTagGroupId = function(value) {
2470
- return jspb.Message.setProto3StringField(this, 1, value);
2679
+ */
2680
+ proto.wechaty.puppet.TagTagDeleteRequest.prototype.setTag = function(value) {
2681
+ return jspb.Message.setWrapperField(this, 1, value);
2471
2682
  };
2472
2683
 
2473
2684
 
2474
2685
  /**
2475
- * optional string tag_id = 2;
2476
- * @return {string}
2686
+ * Clears the message field making it undefined.
2687
+ * @return {!proto.wechaty.puppet.TagTagDeleteRequest} returns this
2477
2688
  */
2478
- proto.wechaty.puppet.TagTagDeleteRequest.prototype.getTagId = function() {
2479
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2689
+ proto.wechaty.puppet.TagTagDeleteRequest.prototype.clearTag = function() {
2690
+ return this.setTag(undefined);
2480
2691
  };
2481
2692
 
2482
2693
 
2483
2694
  /**
2484
- * @param {string} value
2485
- * @return {!proto.wechaty.puppet.TagTagDeleteRequest} returns this
2695
+ * Returns whether this field is set.
2696
+ * @return {boolean}
2486
2697
  */
2487
- proto.wechaty.puppet.TagTagDeleteRequest.prototype.setTagId = function(value) {
2488
- return jspb.Message.setProto3StringField(this, 2, value);
2698
+ proto.wechaty.puppet.TagTagDeleteRequest.prototype.hasTag = function() {
2699
+ return jspb.Message.getField(this, 1) != null;
2489
2700
  };
2490
2701
 
2491
2702
 
@@ -3724,8 +3935,7 @@ proto.wechaty.puppet.TagTagContactListRequest.prototype.toObject = function(opt_
3724
3935
  */
3725
3936
  proto.wechaty.puppet.TagTagContactListRequest.toObject = function(includeInstance, msg) {
3726
3937
  var f, obj = {
3727
- tagGroupId: jspb.Message.getFieldWithDefault(msg, 1, ""),
3728
- tagId: jspb.Message.getFieldWithDefault(msg, 2, "")
3938
+ tag: (f = msg.getTag()) && proto.wechaty.puppet.TagIdentifier.toObject(includeInstance, f)
3729
3939
  };
3730
3940
 
3731
3941
  if (includeInstance) {
@@ -3763,12 +3973,9 @@ proto.wechaty.puppet.TagTagContactListRequest.deserializeBinaryFromReader = func
3763
3973
  var field = reader.getFieldNumber();
3764
3974
  switch (field) {
3765
3975
  case 1:
3766
- var value = /** @type {string} */ (reader.readString());
3767
- msg.setTagGroupId(value);
3768
- break;
3769
- case 2:
3770
- var value = /** @type {string} */ (reader.readString());
3771
- msg.setTagId(value);
3976
+ var value = new proto.wechaty.puppet.TagIdentifier;
3977
+ reader.readMessage(value,proto.wechaty.puppet.TagIdentifier.deserializeBinaryFromReader);
3978
+ msg.setTag(value);
3772
3979
  break;
3773
3980
  default:
3774
3981
  reader.skipField();
@@ -3799,56 +4006,51 @@ proto.wechaty.puppet.TagTagContactListRequest.prototype.serializeBinary = functi
3799
4006
  */
3800
4007
  proto.wechaty.puppet.TagTagContactListRequest.serializeBinaryToWriter = function(message, writer) {
3801
4008
  var f = undefined;
3802
- f = message.getTagGroupId();
3803
- if (f.length > 0) {
3804
- writer.writeString(
4009
+ f = message.getTag();
4010
+ if (f != null) {
4011
+ writer.writeMessage(
3805
4012
  1,
3806
- f
3807
- );
3808
- }
3809
- f = message.getTagId();
3810
- if (f.length > 0) {
3811
- writer.writeString(
3812
- 2,
3813
- f
4013
+ f,
4014
+ proto.wechaty.puppet.TagIdentifier.serializeBinaryToWriter
3814
4015
  );
3815
4016
  }
3816
4017
  };
3817
4018
 
3818
4019
 
3819
4020
  /**
3820
- * optional string tag_group_id = 1;
3821
- * @return {string}
4021
+ * optional TagIdentifier tag = 1;
4022
+ * @return {?proto.wechaty.puppet.TagIdentifier}
3822
4023
  */
3823
- proto.wechaty.puppet.TagTagContactListRequest.prototype.getTagGroupId = function() {
3824
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
4024
+ proto.wechaty.puppet.TagTagContactListRequest.prototype.getTag = function() {
4025
+ return /** @type{?proto.wechaty.puppet.TagIdentifier} */ (
4026
+ jspb.Message.getWrapperField(this, proto.wechaty.puppet.TagIdentifier, 1));
3825
4027
  };
3826
4028
 
3827
4029
 
3828
4030
  /**
3829
- * @param {string} value
4031
+ * @param {?proto.wechaty.puppet.TagIdentifier|undefined} value
3830
4032
  * @return {!proto.wechaty.puppet.TagTagContactListRequest} returns this
3831
- */
3832
- proto.wechaty.puppet.TagTagContactListRequest.prototype.setTagGroupId = function(value) {
3833
- return jspb.Message.setProto3StringField(this, 1, value);
4033
+ */
4034
+ proto.wechaty.puppet.TagTagContactListRequest.prototype.setTag = function(value) {
4035
+ return jspb.Message.setWrapperField(this, 1, value);
3834
4036
  };
3835
4037
 
3836
4038
 
3837
4039
  /**
3838
- * optional string tag_id = 2;
3839
- * @return {string}
4040
+ * Clears the message field making it undefined.
4041
+ * @return {!proto.wechaty.puppet.TagTagContactListRequest} returns this
3840
4042
  */
3841
- proto.wechaty.puppet.TagTagContactListRequest.prototype.getTagId = function() {
3842
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
4043
+ proto.wechaty.puppet.TagTagContactListRequest.prototype.clearTag = function() {
4044
+ return this.setTag(undefined);
3843
4045
  };
3844
4046
 
3845
4047
 
3846
4048
  /**
3847
- * @param {string} value
3848
- * @return {!proto.wechaty.puppet.TagTagContactListRequest} returns this
4049
+ * Returns whether this field is set.
4050
+ * @return {boolean}
3849
4051
  */
3850
- proto.wechaty.puppet.TagTagContactListRequest.prototype.setTagId = function(value) {
3851
- return jspb.Message.setProto3StringField(this, 2, value);
4052
+ proto.wechaty.puppet.TagTagContactListRequest.prototype.hasTag = function() {
4053
+ return jspb.Message.getField(this, 1) != null;
3852
4054
  };
3853
4055
 
3854
4056