@juzi/wechaty-grpc 1.0.13 → 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.
- package/dist/cjs/out/wechaty/puppet/base_pb.d.ts +2 -0
- package/dist/cjs/out/wechaty/puppet/base_pb.js +3 -1
- package/dist/cjs/out/wechaty/puppet/contact_pb.d.ts +6 -0
- package/dist/cjs/out/wechaty/puppet/contact_pb.js +51 -2
- package/dist/cjs/out/wechaty/puppet/event_pb.d.ts +1 -0
- package/dist/cjs/out/wechaty/puppet/event_pb.js +2 -1
- package/dist/cjs/out/wechaty/puppet/tag_pb.d.ts +41 -69
- package/dist/cjs/out/wechaty/puppet/tag_pb.js +187 -443
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +38 -30
- package/dist/cjs/out/wechaty/puppet.swagger.json +48 -43
- package/dist/cjs/proto/wechaty/puppet/base.proto +2 -0
- package/dist/cjs/proto/wechaty/puppet/contact.proto +2 -0
- package/dist/cjs/proto/wechaty/puppet/event.proto +1 -0
- package/dist/cjs/proto/wechaty/puppet/tag.proto +12 -16
- package/dist/cjs/proto/wechaty/puppet.proto +1 -1
- package/dist/cjs/src/package-json.js +1 -1
- package/dist/esm/out/wechaty/puppet/base_pb.d.ts +2 -0
- package/dist/esm/out/wechaty/puppet/base_pb.js +3 -1
- package/dist/esm/out/wechaty/puppet/contact_pb.d.ts +6 -0
- package/dist/esm/out/wechaty/puppet/contact_pb.js +51 -2
- package/dist/esm/out/wechaty/puppet/event_pb.d.ts +1 -0
- package/dist/esm/out/wechaty/puppet/event_pb.js +2 -1
- package/dist/esm/out/wechaty/puppet/tag_pb.d.ts +41 -69
- package/dist/esm/out/wechaty/puppet/tag_pb.js +187 -443
- package/dist/esm/out/wechaty/puppet.openapi.yaml +38 -30
- package/dist/esm/out/wechaty/puppet.swagger.json +48 -43
- package/dist/esm/proto/wechaty/puppet/base.proto +2 -0
- package/dist/esm/proto/wechaty/puppet/contact.proto +2 -0
- package/dist/esm/proto/wechaty/puppet/event.proto +1 -0
- package/dist/esm/proto/wechaty/puppet/tag.proto +12 -16
- package/dist/esm/proto/wechaty/puppet.proto +1 -1
- package/dist/esm/src/package-json.js +1 -1
- package/out/wechaty/puppet/base_pb.d.ts +2 -0
- package/out/wechaty/puppet/base_pb.js +3 -1
- package/out/wechaty/puppet/contact_pb.d.ts +6 -0
- package/out/wechaty/puppet/contact_pb.js +51 -2
- package/out/wechaty/puppet/event_pb.d.ts +1 -0
- package/out/wechaty/puppet/event_pb.js +2 -1
- package/out/wechaty/puppet/tag_pb.d.ts +41 -69
- package/out/wechaty/puppet/tag_pb.js +187 -443
- package/out/wechaty/puppet.openapi.yaml +38 -30
- package/out/wechaty/puppet.swagger.json +48 -43
- package/package.json +1 -1
- package/src/package-json.ts +1 -1
|
@@ -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.
|
|
@@ -1067,7 +885,8 @@ proto.wechaty.puppet.TagGroupPayload.prototype.toObject = function(opt_includeIn
|
|
|
1067
885
|
proto.wechaty.puppet.TagGroupPayload.toObject = function(includeInstance, msg) {
|
|
1068
886
|
var f, obj = {
|
|
1069
887
|
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1070
|
-
name: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
888
|
+
name: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
889
|
+
type: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
1071
890
|
};
|
|
1072
891
|
|
|
1073
892
|
if (includeInstance) {
|
|
@@ -1112,6 +931,10 @@ proto.wechaty.puppet.TagGroupPayload.deserializeBinaryFromReader = function(msg,
|
|
|
1112
931
|
var value = /** @type {string} */ (reader.readString());
|
|
1113
932
|
msg.setName(value);
|
|
1114
933
|
break;
|
|
934
|
+
case 3:
|
|
935
|
+
var value = /** @type {!proto.wechaty.puppet.TagType} */ (reader.readEnum());
|
|
936
|
+
msg.setType(value);
|
|
937
|
+
break;
|
|
1115
938
|
default:
|
|
1116
939
|
reader.skipField();
|
|
1117
940
|
break;
|
|
@@ -1155,6 +978,13 @@ proto.wechaty.puppet.TagGroupPayload.serializeBinaryToWriter = function(message,
|
|
|
1155
978
|
f
|
|
1156
979
|
);
|
|
1157
980
|
}
|
|
981
|
+
f = message.getType();
|
|
982
|
+
if (f !== 0.0) {
|
|
983
|
+
writer.writeEnum(
|
|
984
|
+
3,
|
|
985
|
+
f
|
|
986
|
+
);
|
|
987
|
+
}
|
|
1158
988
|
};
|
|
1159
989
|
|
|
1160
990
|
|
|
@@ -1194,6 +1024,24 @@ proto.wechaty.puppet.TagGroupPayload.prototype.setName = function(value) {
|
|
|
1194
1024
|
};
|
|
1195
1025
|
|
|
1196
1026
|
|
|
1027
|
+
/**
|
|
1028
|
+
* optional TagType type = 3;
|
|
1029
|
+
* @return {!proto.wechaty.puppet.TagType}
|
|
1030
|
+
*/
|
|
1031
|
+
proto.wechaty.puppet.TagGroupPayload.prototype.getType = function() {
|
|
1032
|
+
return /** @type {!proto.wechaty.puppet.TagType} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
1033
|
+
};
|
|
1034
|
+
|
|
1035
|
+
|
|
1036
|
+
/**
|
|
1037
|
+
* @param {!proto.wechaty.puppet.TagType} value
|
|
1038
|
+
* @return {!proto.wechaty.puppet.TagGroupPayload} returns this
|
|
1039
|
+
*/
|
|
1040
|
+
proto.wechaty.puppet.TagGroupPayload.prototype.setType = function(value) {
|
|
1041
|
+
return jspb.Message.setProto3EnumField(this, 3, value);
|
|
1042
|
+
};
|
|
1043
|
+
|
|
1044
|
+
|
|
1197
1045
|
|
|
1198
1046
|
/**
|
|
1199
1047
|
* List of repeated fields within this message type.
|
|
@@ -1233,8 +1081,7 @@ proto.wechaty.puppet.TagContactTagAddRequest.prototype.toObject = function(opt_i
|
|
|
1233
1081
|
*/
|
|
1234
1082
|
proto.wechaty.puppet.TagContactTagAddRequest.toObject = function(includeInstance, msg) {
|
|
1235
1083
|
var f, obj = {
|
|
1236
|
-
|
|
1237
|
-
proto.wechaty.puppet.TagIdentifier.toObject, includeInstance),
|
|
1084
|
+
tagIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
|
|
1238
1085
|
contactIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
|
|
1239
1086
|
};
|
|
1240
1087
|
|
|
@@ -1273,9 +1120,8 @@ proto.wechaty.puppet.TagContactTagAddRequest.deserializeBinaryFromReader = funct
|
|
|
1273
1120
|
var field = reader.getFieldNumber();
|
|
1274
1121
|
switch (field) {
|
|
1275
1122
|
case 1:
|
|
1276
|
-
var value =
|
|
1277
|
-
|
|
1278
|
-
msg.addTags(value);
|
|
1123
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1124
|
+
msg.addTagIds(value);
|
|
1279
1125
|
break;
|
|
1280
1126
|
case 2:
|
|
1281
1127
|
var value = /** @type {string} */ (reader.readString());
|
|
@@ -1310,12 +1156,11 @@ proto.wechaty.puppet.TagContactTagAddRequest.prototype.serializeBinary = functio
|
|
|
1310
1156
|
*/
|
|
1311
1157
|
proto.wechaty.puppet.TagContactTagAddRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1312
1158
|
var f = undefined;
|
|
1313
|
-
f = message.
|
|
1159
|
+
f = message.getTagIdsList();
|
|
1314
1160
|
if (f.length > 0) {
|
|
1315
|
-
writer.
|
|
1161
|
+
writer.writeRepeatedString(
|
|
1316
1162
|
1,
|
|
1317
|
-
f
|
|
1318
|
-
proto.wechaty.puppet.TagIdentifier.serializeBinaryToWriter
|
|
1163
|
+
f
|
|
1319
1164
|
);
|
|
1320
1165
|
}
|
|
1321
1166
|
f = message.getContactIdsList();
|
|
@@ -1329,31 +1174,30 @@ proto.wechaty.puppet.TagContactTagAddRequest.serializeBinaryToWriter = function(
|
|
|
1329
1174
|
|
|
1330
1175
|
|
|
1331
1176
|
/**
|
|
1332
|
-
* repeated
|
|
1333
|
-
* @return {!Array
|
|
1177
|
+
* repeated string tag_ids = 1;
|
|
1178
|
+
* @return {!Array<string>}
|
|
1334
1179
|
*/
|
|
1335
|
-
proto.wechaty.puppet.TagContactTagAddRequest.prototype.
|
|
1336
|
-
return /** @type{!Array
|
|
1337
|
-
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));
|
|
1338
1182
|
};
|
|
1339
1183
|
|
|
1340
1184
|
|
|
1341
1185
|
/**
|
|
1342
|
-
* @param {!Array
|
|
1186
|
+
* @param {!Array<string>} value
|
|
1343
1187
|
* @return {!proto.wechaty.puppet.TagContactTagAddRequest} returns this
|
|
1344
|
-
*/
|
|
1345
|
-
proto.wechaty.puppet.TagContactTagAddRequest.prototype.
|
|
1346
|
-
return jspb.Message.
|
|
1188
|
+
*/
|
|
1189
|
+
proto.wechaty.puppet.TagContactTagAddRequest.prototype.setTagIdsList = function(value) {
|
|
1190
|
+
return jspb.Message.setField(this, 1, value || []);
|
|
1347
1191
|
};
|
|
1348
1192
|
|
|
1349
1193
|
|
|
1350
1194
|
/**
|
|
1351
|
-
* @param {
|
|
1195
|
+
* @param {string} value
|
|
1352
1196
|
* @param {number=} opt_index
|
|
1353
|
-
* @return {!proto.wechaty.puppet.
|
|
1197
|
+
* @return {!proto.wechaty.puppet.TagContactTagAddRequest} returns this
|
|
1354
1198
|
*/
|
|
1355
|
-
proto.wechaty.puppet.TagContactTagAddRequest.prototype.
|
|
1356
|
-
return jspb.Message.
|
|
1199
|
+
proto.wechaty.puppet.TagContactTagAddRequest.prototype.addTagIds = function(value, opt_index) {
|
|
1200
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
1357
1201
|
};
|
|
1358
1202
|
|
|
1359
1203
|
|
|
@@ -1361,8 +1205,8 @@ proto.wechaty.puppet.TagContactTagAddRequest.prototype.addTags = function(opt_va
|
|
|
1361
1205
|
* Clears the list making it empty but non-null.
|
|
1362
1206
|
* @return {!proto.wechaty.puppet.TagContactTagAddRequest} returns this
|
|
1363
1207
|
*/
|
|
1364
|
-
proto.wechaty.puppet.TagContactTagAddRequest.prototype.
|
|
1365
|
-
return this.
|
|
1208
|
+
proto.wechaty.puppet.TagContactTagAddRequest.prototype.clearTagIdsList = function() {
|
|
1209
|
+
return this.setTagIdsList([]);
|
|
1366
1210
|
};
|
|
1367
1211
|
|
|
1368
1212
|
|
|
@@ -1543,8 +1387,7 @@ proto.wechaty.puppet.TagContactTagRemoveRequest.prototype.toObject = function(op
|
|
|
1543
1387
|
*/
|
|
1544
1388
|
proto.wechaty.puppet.TagContactTagRemoveRequest.toObject = function(includeInstance, msg) {
|
|
1545
1389
|
var f, obj = {
|
|
1546
|
-
|
|
1547
|
-
proto.wechaty.puppet.TagIdentifier.toObject, includeInstance),
|
|
1390
|
+
tagIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
|
|
1548
1391
|
contactIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
|
|
1549
1392
|
};
|
|
1550
1393
|
|
|
@@ -1583,9 +1426,8 @@ proto.wechaty.puppet.TagContactTagRemoveRequest.deserializeBinaryFromReader = fu
|
|
|
1583
1426
|
var field = reader.getFieldNumber();
|
|
1584
1427
|
switch (field) {
|
|
1585
1428
|
case 1:
|
|
1586
|
-
var value =
|
|
1587
|
-
|
|
1588
|
-
msg.addTags(value);
|
|
1429
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1430
|
+
msg.addTagIds(value);
|
|
1589
1431
|
break;
|
|
1590
1432
|
case 2:
|
|
1591
1433
|
var value = /** @type {string} */ (reader.readString());
|
|
@@ -1620,12 +1462,11 @@ proto.wechaty.puppet.TagContactTagRemoveRequest.prototype.serializeBinary = func
|
|
|
1620
1462
|
*/
|
|
1621
1463
|
proto.wechaty.puppet.TagContactTagRemoveRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1622
1464
|
var f = undefined;
|
|
1623
|
-
f = message.
|
|
1465
|
+
f = message.getTagIdsList();
|
|
1624
1466
|
if (f.length > 0) {
|
|
1625
|
-
writer.
|
|
1467
|
+
writer.writeRepeatedString(
|
|
1626
1468
|
1,
|
|
1627
|
-
f
|
|
1628
|
-
proto.wechaty.puppet.TagIdentifier.serializeBinaryToWriter
|
|
1469
|
+
f
|
|
1629
1470
|
);
|
|
1630
1471
|
}
|
|
1631
1472
|
f = message.getContactIdsList();
|
|
@@ -1639,31 +1480,30 @@ proto.wechaty.puppet.TagContactTagRemoveRequest.serializeBinaryToWriter = functi
|
|
|
1639
1480
|
|
|
1640
1481
|
|
|
1641
1482
|
/**
|
|
1642
|
-
* repeated
|
|
1643
|
-
* @return {!Array
|
|
1483
|
+
* repeated string tag_ids = 1;
|
|
1484
|
+
* @return {!Array<string>}
|
|
1644
1485
|
*/
|
|
1645
|
-
proto.wechaty.puppet.TagContactTagRemoveRequest.prototype.
|
|
1646
|
-
return /** @type{!Array
|
|
1647
|
-
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));
|
|
1648
1488
|
};
|
|
1649
1489
|
|
|
1650
1490
|
|
|
1651
1491
|
/**
|
|
1652
|
-
* @param {!Array
|
|
1492
|
+
* @param {!Array<string>} value
|
|
1653
1493
|
* @return {!proto.wechaty.puppet.TagContactTagRemoveRequest} returns this
|
|
1654
|
-
*/
|
|
1655
|
-
proto.wechaty.puppet.TagContactTagRemoveRequest.prototype.
|
|
1656
|
-
return jspb.Message.
|
|
1494
|
+
*/
|
|
1495
|
+
proto.wechaty.puppet.TagContactTagRemoveRequest.prototype.setTagIdsList = function(value) {
|
|
1496
|
+
return jspb.Message.setField(this, 1, value || []);
|
|
1657
1497
|
};
|
|
1658
1498
|
|
|
1659
1499
|
|
|
1660
1500
|
/**
|
|
1661
|
-
* @param {
|
|
1501
|
+
* @param {string} value
|
|
1662
1502
|
* @param {number=} opt_index
|
|
1663
|
-
* @return {!proto.wechaty.puppet.
|
|
1503
|
+
* @return {!proto.wechaty.puppet.TagContactTagRemoveRequest} returns this
|
|
1664
1504
|
*/
|
|
1665
|
-
proto.wechaty.puppet.TagContactTagRemoveRequest.prototype.
|
|
1666
|
-
return jspb.Message.
|
|
1505
|
+
proto.wechaty.puppet.TagContactTagRemoveRequest.prototype.addTagIds = function(value, opt_index) {
|
|
1506
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
1667
1507
|
};
|
|
1668
1508
|
|
|
1669
1509
|
|
|
@@ -1671,8 +1511,8 @@ proto.wechaty.puppet.TagContactTagRemoveRequest.prototype.addTags = function(opt
|
|
|
1671
1511
|
* Clears the list making it empty but non-null.
|
|
1672
1512
|
* @return {!proto.wechaty.puppet.TagContactTagRemoveRequest} returns this
|
|
1673
1513
|
*/
|
|
1674
|
-
proto.wechaty.puppet.TagContactTagRemoveRequest.prototype.
|
|
1675
|
-
return this.
|
|
1514
|
+
proto.wechaty.puppet.TagContactTagRemoveRequest.prototype.clearTagIdsList = function() {
|
|
1515
|
+
return this.setTagIdsList([]);
|
|
1676
1516
|
};
|
|
1677
1517
|
|
|
1678
1518
|
|
|
@@ -2497,7 +2337,7 @@ proto.wechaty.puppet.TagTagAddResponse.prototype.toObject = function(opt_include
|
|
|
2497
2337
|
*/
|
|
2498
2338
|
proto.wechaty.puppet.TagTagAddResponse.toObject = function(includeInstance, msg) {
|
|
2499
2339
|
var f, obj = {
|
|
2500
|
-
|
|
2340
|
+
tagId: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
2501
2341
|
};
|
|
2502
2342
|
|
|
2503
2343
|
if (includeInstance) {
|
|
@@ -2535,9 +2375,8 @@ proto.wechaty.puppet.TagTagAddResponse.deserializeBinaryFromReader = function(ms
|
|
|
2535
2375
|
var field = reader.getFieldNumber();
|
|
2536
2376
|
switch (field) {
|
|
2537
2377
|
case 1:
|
|
2538
|
-
var value =
|
|
2539
|
-
|
|
2540
|
-
msg.setTag(value);
|
|
2378
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2379
|
+
msg.setTagId(value);
|
|
2541
2380
|
break;
|
|
2542
2381
|
default:
|
|
2543
2382
|
reader.skipField();
|
|
@@ -2568,51 +2407,31 @@ proto.wechaty.puppet.TagTagAddResponse.prototype.serializeBinary = function() {
|
|
|
2568
2407
|
*/
|
|
2569
2408
|
proto.wechaty.puppet.TagTagAddResponse.serializeBinaryToWriter = function(message, writer) {
|
|
2570
2409
|
var f = undefined;
|
|
2571
|
-
f = message.
|
|
2572
|
-
if (f
|
|
2573
|
-
writer.
|
|
2410
|
+
f = message.getTagId();
|
|
2411
|
+
if (f.length > 0) {
|
|
2412
|
+
writer.writeString(
|
|
2574
2413
|
1,
|
|
2575
|
-
f
|
|
2576
|
-
proto.wechaty.puppet.TagIdentifier.serializeBinaryToWriter
|
|
2414
|
+
f
|
|
2577
2415
|
);
|
|
2578
2416
|
}
|
|
2579
2417
|
};
|
|
2580
2418
|
|
|
2581
2419
|
|
|
2582
2420
|
/**
|
|
2583
|
-
* optional
|
|
2584
|
-
* @return {
|
|
2421
|
+
* optional string tag_id = 1;
|
|
2422
|
+
* @return {string}
|
|
2585
2423
|
*/
|
|
2586
|
-
proto.wechaty.puppet.TagTagAddResponse.prototype.
|
|
2587
|
-
return /** @type{
|
|
2588
|
-
jspb.Message.getWrapperField(this, proto.wechaty.puppet.TagIdentifier, 1));
|
|
2589
|
-
};
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
/**
|
|
2593
|
-
* @param {?proto.wechaty.puppet.TagIdentifier|undefined} value
|
|
2594
|
-
* @return {!proto.wechaty.puppet.TagTagAddResponse} returns this
|
|
2595
|
-
*/
|
|
2596
|
-
proto.wechaty.puppet.TagTagAddResponse.prototype.setTag = function(value) {
|
|
2597
|
-
return jspb.Message.setWrapperField(this, 1, value);
|
|
2424
|
+
proto.wechaty.puppet.TagTagAddResponse.prototype.getTagId = function() {
|
|
2425
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
2598
2426
|
};
|
|
2599
2427
|
|
|
2600
2428
|
|
|
2601
2429
|
/**
|
|
2602
|
-
*
|
|
2430
|
+
* @param {string} value
|
|
2603
2431
|
* @return {!proto.wechaty.puppet.TagTagAddResponse} returns this
|
|
2604
2432
|
*/
|
|
2605
|
-
proto.wechaty.puppet.TagTagAddResponse.prototype.
|
|
2606
|
-
return
|
|
2607
|
-
};
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
/**
|
|
2611
|
-
* Returns whether this field is set.
|
|
2612
|
-
* @return {boolean}
|
|
2613
|
-
*/
|
|
2614
|
-
proto.wechaty.puppet.TagTagAddResponse.prototype.hasTag = function() {
|
|
2615
|
-
return jspb.Message.getField(this, 1) != null;
|
|
2433
|
+
proto.wechaty.puppet.TagTagAddResponse.prototype.setTagId = function(value) {
|
|
2434
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
2616
2435
|
};
|
|
2617
2436
|
|
|
2618
2437
|
|
|
@@ -2648,7 +2467,7 @@ proto.wechaty.puppet.TagTagDeleteRequest.prototype.toObject = function(opt_inclu
|
|
|
2648
2467
|
*/
|
|
2649
2468
|
proto.wechaty.puppet.TagTagDeleteRequest.toObject = function(includeInstance, msg) {
|
|
2650
2469
|
var f, obj = {
|
|
2651
|
-
|
|
2470
|
+
tagId: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
2652
2471
|
};
|
|
2653
2472
|
|
|
2654
2473
|
if (includeInstance) {
|
|
@@ -2686,9 +2505,8 @@ proto.wechaty.puppet.TagTagDeleteRequest.deserializeBinaryFromReader = function(
|
|
|
2686
2505
|
var field = reader.getFieldNumber();
|
|
2687
2506
|
switch (field) {
|
|
2688
2507
|
case 1:
|
|
2689
|
-
var value =
|
|
2690
|
-
|
|
2691
|
-
msg.setTag(value);
|
|
2508
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2509
|
+
msg.setTagId(value);
|
|
2692
2510
|
break;
|
|
2693
2511
|
default:
|
|
2694
2512
|
reader.skipField();
|
|
@@ -2719,51 +2537,31 @@ proto.wechaty.puppet.TagTagDeleteRequest.prototype.serializeBinary = function()
|
|
|
2719
2537
|
*/
|
|
2720
2538
|
proto.wechaty.puppet.TagTagDeleteRequest.serializeBinaryToWriter = function(message, writer) {
|
|
2721
2539
|
var f = undefined;
|
|
2722
|
-
f = message.
|
|
2723
|
-
if (f
|
|
2724
|
-
writer.
|
|
2540
|
+
f = message.getTagId();
|
|
2541
|
+
if (f.length > 0) {
|
|
2542
|
+
writer.writeString(
|
|
2725
2543
|
1,
|
|
2726
|
-
f
|
|
2727
|
-
proto.wechaty.puppet.TagIdentifier.serializeBinaryToWriter
|
|
2544
|
+
f
|
|
2728
2545
|
);
|
|
2729
2546
|
}
|
|
2730
2547
|
};
|
|
2731
2548
|
|
|
2732
2549
|
|
|
2733
2550
|
/**
|
|
2734
|
-
* optional
|
|
2735
|
-
* @return {
|
|
2551
|
+
* optional string tag_id = 1;
|
|
2552
|
+
* @return {string}
|
|
2736
2553
|
*/
|
|
2737
|
-
proto.wechaty.puppet.TagTagDeleteRequest.prototype.
|
|
2738
|
-
return /** @type{
|
|
2739
|
-
jspb.Message.getWrapperField(this, proto.wechaty.puppet.TagIdentifier, 1));
|
|
2740
|
-
};
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
/**
|
|
2744
|
-
* @param {?proto.wechaty.puppet.TagIdentifier|undefined} value
|
|
2745
|
-
* @return {!proto.wechaty.puppet.TagTagDeleteRequest} returns this
|
|
2746
|
-
*/
|
|
2747
|
-
proto.wechaty.puppet.TagTagDeleteRequest.prototype.setTag = function(value) {
|
|
2748
|
-
return jspb.Message.setWrapperField(this, 1, value);
|
|
2554
|
+
proto.wechaty.puppet.TagTagDeleteRequest.prototype.getTagId = function() {
|
|
2555
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
2749
2556
|
};
|
|
2750
2557
|
|
|
2751
2558
|
|
|
2752
2559
|
/**
|
|
2753
|
-
*
|
|
2560
|
+
* @param {string} value
|
|
2754
2561
|
* @return {!proto.wechaty.puppet.TagTagDeleteRequest} returns this
|
|
2755
2562
|
*/
|
|
2756
|
-
proto.wechaty.puppet.TagTagDeleteRequest.prototype.
|
|
2757
|
-
return
|
|
2758
|
-
};
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
/**
|
|
2762
|
-
* Returns whether this field is set.
|
|
2763
|
-
* @return {boolean}
|
|
2764
|
-
*/
|
|
2765
|
-
proto.wechaty.puppet.TagTagDeleteRequest.prototype.hasTag = function() {
|
|
2766
|
-
return jspb.Message.getField(this, 1) != null;
|
|
2563
|
+
proto.wechaty.puppet.TagTagDeleteRequest.prototype.setTagId = function(value) {
|
|
2564
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
2767
2565
|
};
|
|
2768
2566
|
|
|
2769
2567
|
|
|
@@ -3294,8 +3092,7 @@ proto.wechaty.puppet.TagGroupTagListResponse.prototype.toObject = function(opt_i
|
|
|
3294
3092
|
*/
|
|
3295
3093
|
proto.wechaty.puppet.TagGroupTagListResponse.toObject = function(includeInstance, msg) {
|
|
3296
3094
|
var f, obj = {
|
|
3297
|
-
|
|
3298
|
-
proto.wechaty.puppet.TagIdentifier.toObject, includeInstance)
|
|
3095
|
+
tagIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
|
|
3299
3096
|
};
|
|
3300
3097
|
|
|
3301
3098
|
if (includeInstance) {
|
|
@@ -3333,9 +3130,8 @@ proto.wechaty.puppet.TagGroupTagListResponse.deserializeBinaryFromReader = funct
|
|
|
3333
3130
|
var field = reader.getFieldNumber();
|
|
3334
3131
|
switch (field) {
|
|
3335
3132
|
case 1:
|
|
3336
|
-
var value =
|
|
3337
|
-
|
|
3338
|
-
msg.addTags(value);
|
|
3133
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3134
|
+
msg.addTagIds(value);
|
|
3339
3135
|
break;
|
|
3340
3136
|
default:
|
|
3341
3137
|
reader.skipField();
|
|
@@ -3366,43 +3162,41 @@ proto.wechaty.puppet.TagGroupTagListResponse.prototype.serializeBinary = functio
|
|
|
3366
3162
|
*/
|
|
3367
3163
|
proto.wechaty.puppet.TagGroupTagListResponse.serializeBinaryToWriter = function(message, writer) {
|
|
3368
3164
|
var f = undefined;
|
|
3369
|
-
f = message.
|
|
3165
|
+
f = message.getTagIdsList();
|
|
3370
3166
|
if (f.length > 0) {
|
|
3371
|
-
writer.
|
|
3167
|
+
writer.writeRepeatedString(
|
|
3372
3168
|
1,
|
|
3373
|
-
f
|
|
3374
|
-
proto.wechaty.puppet.TagIdentifier.serializeBinaryToWriter
|
|
3169
|
+
f
|
|
3375
3170
|
);
|
|
3376
3171
|
}
|
|
3377
3172
|
};
|
|
3378
3173
|
|
|
3379
3174
|
|
|
3380
3175
|
/**
|
|
3381
|
-
* repeated
|
|
3382
|
-
* @return {!Array
|
|
3176
|
+
* repeated string tag_ids = 1;
|
|
3177
|
+
* @return {!Array<string>}
|
|
3383
3178
|
*/
|
|
3384
|
-
proto.wechaty.puppet.TagGroupTagListResponse.prototype.
|
|
3385
|
-
return /** @type{!Array
|
|
3386
|
-
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));
|
|
3387
3181
|
};
|
|
3388
3182
|
|
|
3389
3183
|
|
|
3390
3184
|
/**
|
|
3391
|
-
* @param {!Array
|
|
3185
|
+
* @param {!Array<string>} value
|
|
3392
3186
|
* @return {!proto.wechaty.puppet.TagGroupTagListResponse} returns this
|
|
3393
|
-
*/
|
|
3394
|
-
proto.wechaty.puppet.TagGroupTagListResponse.prototype.
|
|
3395
|
-
return jspb.Message.
|
|
3187
|
+
*/
|
|
3188
|
+
proto.wechaty.puppet.TagGroupTagListResponse.prototype.setTagIdsList = function(value) {
|
|
3189
|
+
return jspb.Message.setField(this, 1, value || []);
|
|
3396
3190
|
};
|
|
3397
3191
|
|
|
3398
3192
|
|
|
3399
3193
|
/**
|
|
3400
|
-
* @param {
|
|
3194
|
+
* @param {string} value
|
|
3401
3195
|
* @param {number=} opt_index
|
|
3402
|
-
* @return {!proto.wechaty.puppet.
|
|
3196
|
+
* @return {!proto.wechaty.puppet.TagGroupTagListResponse} returns this
|
|
3403
3197
|
*/
|
|
3404
|
-
proto.wechaty.puppet.TagGroupTagListResponse.prototype.
|
|
3405
|
-
return jspb.Message.
|
|
3198
|
+
proto.wechaty.puppet.TagGroupTagListResponse.prototype.addTagIds = function(value, opt_index) {
|
|
3199
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
3406
3200
|
};
|
|
3407
3201
|
|
|
3408
3202
|
|
|
@@ -3410,8 +3204,8 @@ proto.wechaty.puppet.TagGroupTagListResponse.prototype.addTags = function(opt_va
|
|
|
3410
3204
|
* Clears the list making it empty but non-null.
|
|
3411
3205
|
* @return {!proto.wechaty.puppet.TagGroupTagListResponse} returns this
|
|
3412
3206
|
*/
|
|
3413
|
-
proto.wechaty.puppet.TagGroupTagListResponse.prototype.
|
|
3414
|
-
return this.
|
|
3207
|
+
proto.wechaty.puppet.TagGroupTagListResponse.prototype.clearTagIdsList = function() {
|
|
3208
|
+
return this.setTagIdsList([]);
|
|
3415
3209
|
};
|
|
3416
3210
|
|
|
3417
3211
|
|
|
@@ -3555,8 +3349,7 @@ proto.wechaty.puppet.TagTagListResponse.prototype.toObject = function(opt_includ
|
|
|
3555
3349
|
*/
|
|
3556
3350
|
proto.wechaty.puppet.TagTagListResponse.toObject = function(includeInstance, msg) {
|
|
3557
3351
|
var f, obj = {
|
|
3558
|
-
|
|
3559
|
-
proto.wechaty.puppet.TagIdentifier.toObject, includeInstance)
|
|
3352
|
+
tagIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
|
|
3560
3353
|
};
|
|
3561
3354
|
|
|
3562
3355
|
if (includeInstance) {
|
|
@@ -3594,9 +3387,8 @@ proto.wechaty.puppet.TagTagListResponse.deserializeBinaryFromReader = function(m
|
|
|
3594
3387
|
var field = reader.getFieldNumber();
|
|
3595
3388
|
switch (field) {
|
|
3596
3389
|
case 1:
|
|
3597
|
-
var value =
|
|
3598
|
-
|
|
3599
|
-
msg.addTags(value);
|
|
3390
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3391
|
+
msg.addTagIds(value);
|
|
3600
3392
|
break;
|
|
3601
3393
|
default:
|
|
3602
3394
|
reader.skipField();
|
|
@@ -3627,43 +3419,41 @@ proto.wechaty.puppet.TagTagListResponse.prototype.serializeBinary = function() {
|
|
|
3627
3419
|
*/
|
|
3628
3420
|
proto.wechaty.puppet.TagTagListResponse.serializeBinaryToWriter = function(message, writer) {
|
|
3629
3421
|
var f = undefined;
|
|
3630
|
-
f = message.
|
|
3422
|
+
f = message.getTagIdsList();
|
|
3631
3423
|
if (f.length > 0) {
|
|
3632
|
-
writer.
|
|
3424
|
+
writer.writeRepeatedString(
|
|
3633
3425
|
1,
|
|
3634
|
-
f
|
|
3635
|
-
proto.wechaty.puppet.TagIdentifier.serializeBinaryToWriter
|
|
3426
|
+
f
|
|
3636
3427
|
);
|
|
3637
3428
|
}
|
|
3638
3429
|
};
|
|
3639
3430
|
|
|
3640
3431
|
|
|
3641
3432
|
/**
|
|
3642
|
-
* repeated
|
|
3643
|
-
* @return {!Array
|
|
3433
|
+
* repeated string tag_ids = 1;
|
|
3434
|
+
* @return {!Array<string>}
|
|
3644
3435
|
*/
|
|
3645
|
-
proto.wechaty.puppet.TagTagListResponse.prototype.
|
|
3646
|
-
return /** @type{!Array
|
|
3647
|
-
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));
|
|
3648
3438
|
};
|
|
3649
3439
|
|
|
3650
3440
|
|
|
3651
3441
|
/**
|
|
3652
|
-
* @param {!Array
|
|
3442
|
+
* @param {!Array<string>} value
|
|
3653
3443
|
* @return {!proto.wechaty.puppet.TagTagListResponse} returns this
|
|
3654
|
-
*/
|
|
3655
|
-
proto.wechaty.puppet.TagTagListResponse.prototype.
|
|
3656
|
-
return jspb.Message.
|
|
3444
|
+
*/
|
|
3445
|
+
proto.wechaty.puppet.TagTagListResponse.prototype.setTagIdsList = function(value) {
|
|
3446
|
+
return jspb.Message.setField(this, 1, value || []);
|
|
3657
3447
|
};
|
|
3658
3448
|
|
|
3659
3449
|
|
|
3660
3450
|
/**
|
|
3661
|
-
* @param {
|
|
3451
|
+
* @param {string} value
|
|
3662
3452
|
* @param {number=} opt_index
|
|
3663
|
-
* @return {!proto.wechaty.puppet.
|
|
3453
|
+
* @return {!proto.wechaty.puppet.TagTagListResponse} returns this
|
|
3664
3454
|
*/
|
|
3665
|
-
proto.wechaty.puppet.TagTagListResponse.prototype.
|
|
3666
|
-
return jspb.Message.
|
|
3455
|
+
proto.wechaty.puppet.TagTagListResponse.prototype.addTagIds = function(value, opt_index) {
|
|
3456
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
3667
3457
|
};
|
|
3668
3458
|
|
|
3669
3459
|
|
|
@@ -3671,8 +3461,8 @@ proto.wechaty.puppet.TagTagListResponse.prototype.addTags = function(opt_value,
|
|
|
3671
3461
|
* Clears the list making it empty but non-null.
|
|
3672
3462
|
* @return {!proto.wechaty.puppet.TagTagListResponse} returns this
|
|
3673
3463
|
*/
|
|
3674
|
-
proto.wechaty.puppet.TagTagListResponse.prototype.
|
|
3675
|
-
return this.
|
|
3464
|
+
proto.wechaty.puppet.TagTagListResponse.prototype.clearTagIdsList = function() {
|
|
3465
|
+
return this.setTagIdsList([]);
|
|
3676
3466
|
};
|
|
3677
3467
|
|
|
3678
3468
|
|
|
@@ -3845,8 +3635,7 @@ proto.wechaty.puppet.TagContactTagListResponse.prototype.toObject = function(opt
|
|
|
3845
3635
|
*/
|
|
3846
3636
|
proto.wechaty.puppet.TagContactTagListResponse.toObject = function(includeInstance, msg) {
|
|
3847
3637
|
var f, obj = {
|
|
3848
|
-
|
|
3849
|
-
proto.wechaty.puppet.TagIdentifier.toObject, includeInstance)
|
|
3638
|
+
tagIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
|
|
3850
3639
|
};
|
|
3851
3640
|
|
|
3852
3641
|
if (includeInstance) {
|
|
@@ -3884,9 +3673,8 @@ proto.wechaty.puppet.TagContactTagListResponse.deserializeBinaryFromReader = fun
|
|
|
3884
3673
|
var field = reader.getFieldNumber();
|
|
3885
3674
|
switch (field) {
|
|
3886
3675
|
case 1:
|
|
3887
|
-
var value =
|
|
3888
|
-
|
|
3889
|
-
msg.addTags(value);
|
|
3676
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3677
|
+
msg.addTagIds(value);
|
|
3890
3678
|
break;
|
|
3891
3679
|
default:
|
|
3892
3680
|
reader.skipField();
|
|
@@ -3917,43 +3705,41 @@ proto.wechaty.puppet.TagContactTagListResponse.prototype.serializeBinary = funct
|
|
|
3917
3705
|
*/
|
|
3918
3706
|
proto.wechaty.puppet.TagContactTagListResponse.serializeBinaryToWriter = function(message, writer) {
|
|
3919
3707
|
var f = undefined;
|
|
3920
|
-
f = message.
|
|
3708
|
+
f = message.getTagIdsList();
|
|
3921
3709
|
if (f.length > 0) {
|
|
3922
|
-
writer.
|
|
3710
|
+
writer.writeRepeatedString(
|
|
3923
3711
|
1,
|
|
3924
|
-
f
|
|
3925
|
-
proto.wechaty.puppet.TagIdentifier.serializeBinaryToWriter
|
|
3712
|
+
f
|
|
3926
3713
|
);
|
|
3927
3714
|
}
|
|
3928
3715
|
};
|
|
3929
3716
|
|
|
3930
3717
|
|
|
3931
3718
|
/**
|
|
3932
|
-
* repeated
|
|
3933
|
-
* @return {!Array
|
|
3719
|
+
* repeated string tag_ids = 1;
|
|
3720
|
+
* @return {!Array<string>}
|
|
3934
3721
|
*/
|
|
3935
|
-
proto.wechaty.puppet.TagContactTagListResponse.prototype.
|
|
3936
|
-
return /** @type{!Array
|
|
3937
|
-
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));
|
|
3938
3724
|
};
|
|
3939
3725
|
|
|
3940
3726
|
|
|
3941
3727
|
/**
|
|
3942
|
-
* @param {!Array
|
|
3728
|
+
* @param {!Array<string>} value
|
|
3943
3729
|
* @return {!proto.wechaty.puppet.TagContactTagListResponse} returns this
|
|
3944
|
-
*/
|
|
3945
|
-
proto.wechaty.puppet.TagContactTagListResponse.prototype.
|
|
3946
|
-
return jspb.Message.
|
|
3730
|
+
*/
|
|
3731
|
+
proto.wechaty.puppet.TagContactTagListResponse.prototype.setTagIdsList = function(value) {
|
|
3732
|
+
return jspb.Message.setField(this, 1, value || []);
|
|
3947
3733
|
};
|
|
3948
3734
|
|
|
3949
3735
|
|
|
3950
3736
|
/**
|
|
3951
|
-
* @param {
|
|
3737
|
+
* @param {string} value
|
|
3952
3738
|
* @param {number=} opt_index
|
|
3953
|
-
* @return {!proto.wechaty.puppet.
|
|
3739
|
+
* @return {!proto.wechaty.puppet.TagContactTagListResponse} returns this
|
|
3954
3740
|
*/
|
|
3955
|
-
proto.wechaty.puppet.TagContactTagListResponse.prototype.
|
|
3956
|
-
return jspb.Message.
|
|
3741
|
+
proto.wechaty.puppet.TagContactTagListResponse.prototype.addTagIds = function(value, opt_index) {
|
|
3742
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
3957
3743
|
};
|
|
3958
3744
|
|
|
3959
3745
|
|
|
@@ -3961,8 +3747,8 @@ proto.wechaty.puppet.TagContactTagListResponse.prototype.addTags = function(opt_
|
|
|
3961
3747
|
* Clears the list making it empty but non-null.
|
|
3962
3748
|
* @return {!proto.wechaty.puppet.TagContactTagListResponse} returns this
|
|
3963
3749
|
*/
|
|
3964
|
-
proto.wechaty.puppet.TagContactTagListResponse.prototype.
|
|
3965
|
-
return this.
|
|
3750
|
+
proto.wechaty.puppet.TagContactTagListResponse.prototype.clearTagIdsList = function() {
|
|
3751
|
+
return this.setTagIdsList([]);
|
|
3966
3752
|
};
|
|
3967
3753
|
|
|
3968
3754
|
|
|
@@ -3998,7 +3784,7 @@ proto.wechaty.puppet.TagTagContactListRequest.prototype.toObject = function(opt_
|
|
|
3998
3784
|
*/
|
|
3999
3785
|
proto.wechaty.puppet.TagTagContactListRequest.toObject = function(includeInstance, msg) {
|
|
4000
3786
|
var f, obj = {
|
|
4001
|
-
|
|
3787
|
+
tagId: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
4002
3788
|
};
|
|
4003
3789
|
|
|
4004
3790
|
if (includeInstance) {
|
|
@@ -4036,9 +3822,8 @@ proto.wechaty.puppet.TagTagContactListRequest.deserializeBinaryFromReader = func
|
|
|
4036
3822
|
var field = reader.getFieldNumber();
|
|
4037
3823
|
switch (field) {
|
|
4038
3824
|
case 1:
|
|
4039
|
-
var value =
|
|
4040
|
-
|
|
4041
|
-
msg.setTag(value);
|
|
3825
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3826
|
+
msg.setTagId(value);
|
|
4042
3827
|
break;
|
|
4043
3828
|
default:
|
|
4044
3829
|
reader.skipField();
|
|
@@ -4069,51 +3854,31 @@ proto.wechaty.puppet.TagTagContactListRequest.prototype.serializeBinary = functi
|
|
|
4069
3854
|
*/
|
|
4070
3855
|
proto.wechaty.puppet.TagTagContactListRequest.serializeBinaryToWriter = function(message, writer) {
|
|
4071
3856
|
var f = undefined;
|
|
4072
|
-
f = message.
|
|
4073
|
-
if (f
|
|
4074
|
-
writer.
|
|
3857
|
+
f = message.getTagId();
|
|
3858
|
+
if (f.length > 0) {
|
|
3859
|
+
writer.writeString(
|
|
4075
3860
|
1,
|
|
4076
|
-
f
|
|
4077
|
-
proto.wechaty.puppet.TagIdentifier.serializeBinaryToWriter
|
|
3861
|
+
f
|
|
4078
3862
|
);
|
|
4079
3863
|
}
|
|
4080
3864
|
};
|
|
4081
3865
|
|
|
4082
3866
|
|
|
4083
3867
|
/**
|
|
4084
|
-
* optional
|
|
4085
|
-
* @return {
|
|
3868
|
+
* optional string tag_id = 1;
|
|
3869
|
+
* @return {string}
|
|
4086
3870
|
*/
|
|
4087
|
-
proto.wechaty.puppet.TagTagContactListRequest.prototype.
|
|
4088
|
-
return /** @type{
|
|
4089
|
-
jspb.Message.getWrapperField(this, proto.wechaty.puppet.TagIdentifier, 1));
|
|
4090
|
-
};
|
|
4091
|
-
|
|
4092
|
-
|
|
4093
|
-
/**
|
|
4094
|
-
* @param {?proto.wechaty.puppet.TagIdentifier|undefined} value
|
|
4095
|
-
* @return {!proto.wechaty.puppet.TagTagContactListRequest} returns this
|
|
4096
|
-
*/
|
|
4097
|
-
proto.wechaty.puppet.TagTagContactListRequest.prototype.setTag = function(value) {
|
|
4098
|
-
return jspb.Message.setWrapperField(this, 1, value);
|
|
3871
|
+
proto.wechaty.puppet.TagTagContactListRequest.prototype.getTagId = function() {
|
|
3872
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
4099
3873
|
};
|
|
4100
3874
|
|
|
4101
3875
|
|
|
4102
3876
|
/**
|
|
4103
|
-
*
|
|
3877
|
+
* @param {string} value
|
|
4104
3878
|
* @return {!proto.wechaty.puppet.TagTagContactListRequest} returns this
|
|
4105
3879
|
*/
|
|
4106
|
-
proto.wechaty.puppet.TagTagContactListRequest.prototype.
|
|
4107
|
-
return
|
|
4108
|
-
};
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
/**
|
|
4112
|
-
* Returns whether this field is set.
|
|
4113
|
-
* @return {boolean}
|
|
4114
|
-
*/
|
|
4115
|
-
proto.wechaty.puppet.TagTagContactListRequest.prototype.hasTag = function() {
|
|
4116
|
-
return jspb.Message.getField(this, 1) != null;
|
|
3880
|
+
proto.wechaty.puppet.TagTagContactListRequest.prototype.setTagId = function(value) {
|
|
3881
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
4117
3882
|
};
|
|
4118
3883
|
|
|
4119
3884
|
|
|
@@ -4586,7 +4351,7 @@ proto.wechaty.puppet.TagPayloadRequest.prototype.toObject = function(opt_include
|
|
|
4586
4351
|
*/
|
|
4587
4352
|
proto.wechaty.puppet.TagPayloadRequest.toObject = function(includeInstance, msg) {
|
|
4588
4353
|
var f, obj = {
|
|
4589
|
-
|
|
4354
|
+
tagId: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
4590
4355
|
};
|
|
4591
4356
|
|
|
4592
4357
|
if (includeInstance) {
|
|
@@ -4624,9 +4389,8 @@ proto.wechaty.puppet.TagPayloadRequest.deserializeBinaryFromReader = function(ms
|
|
|
4624
4389
|
var field = reader.getFieldNumber();
|
|
4625
4390
|
switch (field) {
|
|
4626
4391
|
case 1:
|
|
4627
|
-
var value =
|
|
4628
|
-
|
|
4629
|
-
msg.setTag(value);
|
|
4392
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4393
|
+
msg.setTagId(value);
|
|
4630
4394
|
break;
|
|
4631
4395
|
default:
|
|
4632
4396
|
reader.skipField();
|
|
@@ -4657,51 +4421,31 @@ proto.wechaty.puppet.TagPayloadRequest.prototype.serializeBinary = function() {
|
|
|
4657
4421
|
*/
|
|
4658
4422
|
proto.wechaty.puppet.TagPayloadRequest.serializeBinaryToWriter = function(message, writer) {
|
|
4659
4423
|
var f = undefined;
|
|
4660
|
-
f = message.
|
|
4661
|
-
if (f
|
|
4662
|
-
writer.
|
|
4424
|
+
f = message.getTagId();
|
|
4425
|
+
if (f.length > 0) {
|
|
4426
|
+
writer.writeString(
|
|
4663
4427
|
1,
|
|
4664
|
-
f
|
|
4665
|
-
proto.wechaty.puppet.TagIdentifier.serializeBinaryToWriter
|
|
4428
|
+
f
|
|
4666
4429
|
);
|
|
4667
4430
|
}
|
|
4668
4431
|
};
|
|
4669
4432
|
|
|
4670
4433
|
|
|
4671
4434
|
/**
|
|
4672
|
-
* optional
|
|
4673
|
-
* @return {
|
|
4435
|
+
* optional string tag_id = 1;
|
|
4436
|
+
* @return {string}
|
|
4674
4437
|
*/
|
|
4675
|
-
proto.wechaty.puppet.TagPayloadRequest.prototype.
|
|
4676
|
-
return /** @type{
|
|
4677
|
-
jspb.Message.getWrapperField(this, proto.wechaty.puppet.TagIdentifier, 1));
|
|
4678
|
-
};
|
|
4679
|
-
|
|
4680
|
-
|
|
4681
|
-
/**
|
|
4682
|
-
* @param {?proto.wechaty.puppet.TagIdentifier|undefined} value
|
|
4683
|
-
* @return {!proto.wechaty.puppet.TagPayloadRequest} returns this
|
|
4684
|
-
*/
|
|
4685
|
-
proto.wechaty.puppet.TagPayloadRequest.prototype.setTag = function(value) {
|
|
4686
|
-
return jspb.Message.setWrapperField(this, 1, value);
|
|
4438
|
+
proto.wechaty.puppet.TagPayloadRequest.prototype.getTagId = function() {
|
|
4439
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
4687
4440
|
};
|
|
4688
4441
|
|
|
4689
4442
|
|
|
4690
4443
|
/**
|
|
4691
|
-
*
|
|
4444
|
+
* @param {string} value
|
|
4692
4445
|
* @return {!proto.wechaty.puppet.TagPayloadRequest} returns this
|
|
4693
4446
|
*/
|
|
4694
|
-
proto.wechaty.puppet.TagPayloadRequest.prototype.
|
|
4695
|
-
return
|
|
4696
|
-
};
|
|
4697
|
-
|
|
4698
|
-
|
|
4699
|
-
/**
|
|
4700
|
-
* Returns whether this field is set.
|
|
4701
|
-
* @return {boolean}
|
|
4702
|
-
*/
|
|
4703
|
-
proto.wechaty.puppet.TagPayloadRequest.prototype.hasTag = function() {
|
|
4704
|
-
return jspb.Message.getField(this, 1) != null;
|
|
4447
|
+
proto.wechaty.puppet.TagPayloadRequest.prototype.setTagId = function(value) {
|
|
4448
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
4705
4449
|
};
|
|
4706
4450
|
|
|
4707
4451
|
|