@juzi/wechaty-grpc 1.0.109 → 1.0.110
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/event_pb.d.ts +1 -0
- package/dist/cjs/out/wechaty/puppet/event_pb.js +2 -1
- package/dist/cjs/out/wechaty/puppet/room_pb.d.ts +199 -0
- package/dist/cjs/out/wechaty/puppet/room_pb.js +1418 -1
- package/dist/cjs/out/wechaty/puppet.openapi.yaml +150 -1
- package/dist/cjs/out/wechaty/puppet.swagger.json +225 -2
- package/dist/cjs/out/wechaty/puppet_grpc_pb.d.ts +51 -0
- package/dist/cjs/out/wechaty/puppet_grpc_pb.js +89 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.d.ts +57 -0
- package/dist/cjs/out/wechaty/puppet_pb_service.js +120 -0
- package/dist/cjs/proto/wechaty/puppet/event.proto +1 -0
- package/dist/cjs/proto/wechaty/puppet/room.proto +55 -0
- package/dist/cjs/proto/wechaty/puppet.proto +5 -0
- package/dist/cjs/src/package-json.js +1 -1
- package/dist/cjs/tests/puppet-server-impl.d.ts.map +1 -1
- package/dist/cjs/tests/puppet-server-impl.js +15 -0
- package/dist/cjs/tests/puppet-server-impl.js.map +1 -1
- package/dist/cjs/tests/room-member-load.spec.d.ts +2 -0
- package/dist/cjs/tests/room-member-load.spec.d.ts.map +1 -0
- package/dist/cjs/tests/room-member-load.spec.js +134 -0
- package/dist/cjs/tests/room-member-load.spec.js.map +1 -0
- 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/room_pb.d.ts +199 -0
- package/dist/esm/out/wechaty/puppet/room_pb.js +1418 -1
- package/dist/esm/out/wechaty/puppet.openapi.yaml +150 -1
- package/dist/esm/out/wechaty/puppet.swagger.json +225 -2
- package/dist/esm/out/wechaty/puppet_grpc_pb.d.ts +51 -0
- package/dist/esm/out/wechaty/puppet_grpc_pb.js +89 -0
- package/dist/esm/out/wechaty/puppet_pb_service.d.ts +57 -0
- package/dist/esm/out/wechaty/puppet_pb_service.js +120 -0
- package/dist/esm/proto/wechaty/puppet/event.proto +1 -0
- package/dist/esm/proto/wechaty/puppet/room.proto +55 -0
- package/dist/esm/proto/wechaty/puppet.proto +5 -0
- package/dist/esm/src/package-json.js +1 -1
- package/dist/esm/tests/puppet-server-impl.d.ts.map +1 -1
- package/dist/esm/tests/puppet-server-impl.js +15 -0
- package/dist/esm/tests/puppet-server-impl.js.map +1 -1
- package/dist/esm/tests/room-member-load.spec.d.ts +2 -0
- package/dist/esm/tests/room-member-load.spec.d.ts.map +1 -0
- package/dist/esm/tests/room-member-load.spec.js +132 -0
- package/dist/esm/tests/room-member-load.spec.js.map +1 -0
- package/out/wechaty/puppet/event_pb.d.ts +1 -0
- package/out/wechaty/puppet/event_pb.js +2 -1
- package/out/wechaty/puppet/room_pb.d.ts +199 -0
- package/out/wechaty/puppet/room_pb.js +1418 -1
- package/out/wechaty/puppet.openapi.yaml +150 -1
- package/out/wechaty/puppet.swagger.json +225 -2
- package/out/wechaty/puppet_grpc_pb.d.ts +51 -0
- package/out/wechaty/puppet_grpc_pb.js +89 -0
- package/out/wechaty/puppet_pb_service.d.ts +57 -0
- package/out/wechaty/puppet_pb_service.js +120 -0
- package/package.json +1 -1
- package/src/package-json.ts +1 -1
|
@@ -21,6 +21,8 @@ var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/time
|
|
|
21
21
|
goog.object.extend(proto, google_protobuf_timestamp_pb);
|
|
22
22
|
var wechaty_puppet_util_pb = require('../../wechaty/puppet/util_pb.js');
|
|
23
23
|
goog.object.extend(proto, wechaty_puppet_util_pb);
|
|
24
|
+
var wechaty_puppet_room$member_pb = require('../../wechaty/puppet/room-member_pb.js');
|
|
25
|
+
goog.object.extend(proto, wechaty_puppet_room$member_pb);
|
|
24
26
|
goog.exportSymbol('proto.wechaty.puppet.BatchRoomPayloadRequest', null, global);
|
|
25
27
|
goog.exportSymbol('proto.wechaty.puppet.BatchRoomPayloadResponse', null, global);
|
|
26
28
|
goog.exportSymbol('proto.wechaty.puppet.RoomAddRequest', null, global);
|
|
@@ -43,6 +45,13 @@ goog.exportSymbol('proto.wechaty.puppet.RoomDismissRequest', null, global);
|
|
|
43
45
|
goog.exportSymbol('proto.wechaty.puppet.RoomDismissResponse', null, global);
|
|
44
46
|
goog.exportSymbol('proto.wechaty.puppet.RoomListRequest', null, global);
|
|
45
47
|
goog.exportSymbol('proto.wechaty.puppet.RoomListResponse', null, global);
|
|
48
|
+
goog.exportSymbol('proto.wechaty.puppet.RoomMemberLoadMode', null, global);
|
|
49
|
+
goog.exportSymbol('proto.wechaty.puppet.RoomMemberLoadStateRequest', null, global);
|
|
50
|
+
goog.exportSymbol('proto.wechaty.puppet.RoomMemberLoadStateResponse', null, global);
|
|
51
|
+
goog.exportSymbol('proto.wechaty.puppet.RoomMemberLoadStatus', null, global);
|
|
52
|
+
goog.exportSymbol('proto.wechaty.puppet.RoomMemberSnapshotRequest', null, global);
|
|
53
|
+
goog.exportSymbol('proto.wechaty.puppet.RoomMemberSnapshotResponse', null, global);
|
|
54
|
+
goog.exportSymbol('proto.wechaty.puppet.RoomMemberSyncRequest', null, global);
|
|
46
55
|
goog.exportSymbol('proto.wechaty.puppet.RoomOwnerTransferRequest', null, global);
|
|
47
56
|
goog.exportSymbol('proto.wechaty.puppet.RoomOwnerTransferResponse', null, global);
|
|
48
57
|
goog.exportSymbol('proto.wechaty.puppet.RoomParseDynamicQRCodeRequest', null, global);
|
|
@@ -857,6 +866,111 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
857
866
|
*/
|
|
858
867
|
proto.wechaty.puppet.BatchRoomPayloadResponse.displayName = 'proto.wechaty.puppet.BatchRoomPayloadResponse';
|
|
859
868
|
}
|
|
869
|
+
/**
|
|
870
|
+
* Generated by JsPbCodeGenerator.
|
|
871
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
872
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
873
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
874
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
875
|
+
* valid.
|
|
876
|
+
* @extends {jspb.Message}
|
|
877
|
+
* @constructor
|
|
878
|
+
*/
|
|
879
|
+
proto.wechaty.puppet.RoomMemberSyncRequest = function(opt_data) {
|
|
880
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
881
|
+
};
|
|
882
|
+
goog.inherits(proto.wechaty.puppet.RoomMemberSyncRequest, jspb.Message);
|
|
883
|
+
if (goog.DEBUG && !COMPILED) {
|
|
884
|
+
/**
|
|
885
|
+
* @public
|
|
886
|
+
* @override
|
|
887
|
+
*/
|
|
888
|
+
proto.wechaty.puppet.RoomMemberSyncRequest.displayName = 'proto.wechaty.puppet.RoomMemberSyncRequest';
|
|
889
|
+
}
|
|
890
|
+
/**
|
|
891
|
+
* Generated by JsPbCodeGenerator.
|
|
892
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
893
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
894
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
895
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
896
|
+
* valid.
|
|
897
|
+
* @extends {jspb.Message}
|
|
898
|
+
* @constructor
|
|
899
|
+
*/
|
|
900
|
+
proto.wechaty.puppet.RoomMemberLoadStateRequest = function(opt_data) {
|
|
901
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
902
|
+
};
|
|
903
|
+
goog.inherits(proto.wechaty.puppet.RoomMemberLoadStateRequest, jspb.Message);
|
|
904
|
+
if (goog.DEBUG && !COMPILED) {
|
|
905
|
+
/**
|
|
906
|
+
* @public
|
|
907
|
+
* @override
|
|
908
|
+
*/
|
|
909
|
+
proto.wechaty.puppet.RoomMemberLoadStateRequest.displayName = 'proto.wechaty.puppet.RoomMemberLoadStateRequest';
|
|
910
|
+
}
|
|
911
|
+
/**
|
|
912
|
+
* Generated by JsPbCodeGenerator.
|
|
913
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
914
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
915
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
916
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
917
|
+
* valid.
|
|
918
|
+
* @extends {jspb.Message}
|
|
919
|
+
* @constructor
|
|
920
|
+
*/
|
|
921
|
+
proto.wechaty.puppet.RoomMemberLoadStateResponse = function(opt_data) {
|
|
922
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
923
|
+
};
|
|
924
|
+
goog.inherits(proto.wechaty.puppet.RoomMemberLoadStateResponse, jspb.Message);
|
|
925
|
+
if (goog.DEBUG && !COMPILED) {
|
|
926
|
+
/**
|
|
927
|
+
* @public
|
|
928
|
+
* @override
|
|
929
|
+
*/
|
|
930
|
+
proto.wechaty.puppet.RoomMemberLoadStateResponse.displayName = 'proto.wechaty.puppet.RoomMemberLoadStateResponse';
|
|
931
|
+
}
|
|
932
|
+
/**
|
|
933
|
+
* Generated by JsPbCodeGenerator.
|
|
934
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
935
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
936
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
937
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
938
|
+
* valid.
|
|
939
|
+
* @extends {jspb.Message}
|
|
940
|
+
* @constructor
|
|
941
|
+
*/
|
|
942
|
+
proto.wechaty.puppet.RoomMemberSnapshotRequest = function(opt_data) {
|
|
943
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
944
|
+
};
|
|
945
|
+
goog.inherits(proto.wechaty.puppet.RoomMemberSnapshotRequest, jspb.Message);
|
|
946
|
+
if (goog.DEBUG && !COMPILED) {
|
|
947
|
+
/**
|
|
948
|
+
* @public
|
|
949
|
+
* @override
|
|
950
|
+
*/
|
|
951
|
+
proto.wechaty.puppet.RoomMemberSnapshotRequest.displayName = 'proto.wechaty.puppet.RoomMemberSnapshotRequest';
|
|
952
|
+
}
|
|
953
|
+
/**
|
|
954
|
+
* Generated by JsPbCodeGenerator.
|
|
955
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
956
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
957
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
958
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
959
|
+
* valid.
|
|
960
|
+
* @extends {jspb.Message}
|
|
961
|
+
* @constructor
|
|
962
|
+
*/
|
|
963
|
+
proto.wechaty.puppet.RoomMemberSnapshotResponse = function(opt_data) {
|
|
964
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.wechaty.puppet.RoomMemberSnapshotResponse.repeatedFields_, null);
|
|
965
|
+
};
|
|
966
|
+
goog.inherits(proto.wechaty.puppet.RoomMemberSnapshotResponse, jspb.Message);
|
|
967
|
+
if (goog.DEBUG && !COMPILED) {
|
|
968
|
+
/**
|
|
969
|
+
* @public
|
|
970
|
+
* @override
|
|
971
|
+
*/
|
|
972
|
+
proto.wechaty.puppet.RoomMemberSnapshotResponse.displayName = 'proto.wechaty.puppet.RoomMemberSnapshotResponse';
|
|
973
|
+
}
|
|
860
974
|
|
|
861
975
|
|
|
862
976
|
|
|
@@ -1293,7 +1407,12 @@ proto.wechaty.puppet.RoomPayloadResponse.toObject = function(includeInstance, ms
|
|
|
1293
1407
|
additionalInfo: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
1294
1408
|
roomRemark: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
1295
1409
|
external: jspb.Message.getBooleanFieldWithDefault(msg, 10, false),
|
|
1296
|
-
createTime: (f = msg.getCreateTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
|
|
1410
|
+
createTime: (f = msg.getCreateTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
1411
|
+
memberCount: jspb.Message.getFieldWithDefault(msg, 12, 0),
|
|
1412
|
+
memberLoadMode: jspb.Message.getFieldWithDefault(msg, 13, 0),
|
|
1413
|
+
memberLoadStatus: jspb.Message.getFieldWithDefault(msg, 14, 0),
|
|
1414
|
+
memberLoadRevision: jspb.Message.getFieldWithDefault(msg, 15, ""),
|
|
1415
|
+
memberLoadedAt: (f = msg.getMemberLoadedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
|
|
1297
1416
|
};
|
|
1298
1417
|
|
|
1299
1418
|
if (includeInstance) {
|
|
@@ -1375,6 +1494,27 @@ proto.wechaty.puppet.RoomPayloadResponse.deserializeBinaryFromReader = function(
|
|
|
1375
1494
|
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
1376
1495
|
msg.setCreateTime(value);
|
|
1377
1496
|
break;
|
|
1497
|
+
case 12:
|
|
1498
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
1499
|
+
msg.setMemberCount(value);
|
|
1500
|
+
break;
|
|
1501
|
+
case 13:
|
|
1502
|
+
var value = /** @type {!proto.wechaty.puppet.RoomMemberLoadMode} */ (reader.readEnum());
|
|
1503
|
+
msg.setMemberLoadMode(value);
|
|
1504
|
+
break;
|
|
1505
|
+
case 14:
|
|
1506
|
+
var value = /** @type {!proto.wechaty.puppet.RoomMemberLoadStatus} */ (reader.readEnum());
|
|
1507
|
+
msg.setMemberLoadStatus(value);
|
|
1508
|
+
break;
|
|
1509
|
+
case 15:
|
|
1510
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1511
|
+
msg.setMemberLoadRevision(value);
|
|
1512
|
+
break;
|
|
1513
|
+
case 16:
|
|
1514
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
1515
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
1516
|
+
msg.setMemberLoadedAt(value);
|
|
1517
|
+
break;
|
|
1378
1518
|
default:
|
|
1379
1519
|
reader.skipField();
|
|
1380
1520
|
break;
|
|
@@ -1482,6 +1622,42 @@ proto.wechaty.puppet.RoomPayloadResponse.serializeBinaryToWriter = function(mess
|
|
|
1482
1622
|
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
1483
1623
|
);
|
|
1484
1624
|
}
|
|
1625
|
+
f = message.getMemberCount();
|
|
1626
|
+
if (f !== 0) {
|
|
1627
|
+
writer.writeUint32(
|
|
1628
|
+
12,
|
|
1629
|
+
f
|
|
1630
|
+
);
|
|
1631
|
+
}
|
|
1632
|
+
f = message.getMemberLoadMode();
|
|
1633
|
+
if (f !== 0.0) {
|
|
1634
|
+
writer.writeEnum(
|
|
1635
|
+
13,
|
|
1636
|
+
f
|
|
1637
|
+
);
|
|
1638
|
+
}
|
|
1639
|
+
f = message.getMemberLoadStatus();
|
|
1640
|
+
if (f !== 0.0) {
|
|
1641
|
+
writer.writeEnum(
|
|
1642
|
+
14,
|
|
1643
|
+
f
|
|
1644
|
+
);
|
|
1645
|
+
}
|
|
1646
|
+
f = message.getMemberLoadRevision();
|
|
1647
|
+
if (f.length > 0) {
|
|
1648
|
+
writer.writeString(
|
|
1649
|
+
15,
|
|
1650
|
+
f
|
|
1651
|
+
);
|
|
1652
|
+
}
|
|
1653
|
+
f = message.getMemberLoadedAt();
|
|
1654
|
+
if (f != null) {
|
|
1655
|
+
writer.writeMessage(
|
|
1656
|
+
16,
|
|
1657
|
+
f,
|
|
1658
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
1659
|
+
);
|
|
1660
|
+
}
|
|
1485
1661
|
};
|
|
1486
1662
|
|
|
1487
1663
|
|
|
@@ -1740,6 +1916,115 @@ proto.wechaty.puppet.RoomPayloadResponse.prototype.hasCreateTime = function() {
|
|
|
1740
1916
|
};
|
|
1741
1917
|
|
|
1742
1918
|
|
|
1919
|
+
/**
|
|
1920
|
+
* optional uint32 member_count = 12;
|
|
1921
|
+
* @return {number}
|
|
1922
|
+
*/
|
|
1923
|
+
proto.wechaty.puppet.RoomPayloadResponse.prototype.getMemberCount = function() {
|
|
1924
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0));
|
|
1925
|
+
};
|
|
1926
|
+
|
|
1927
|
+
|
|
1928
|
+
/**
|
|
1929
|
+
* @param {number} value
|
|
1930
|
+
* @return {!proto.wechaty.puppet.RoomPayloadResponse} returns this
|
|
1931
|
+
*/
|
|
1932
|
+
proto.wechaty.puppet.RoomPayloadResponse.prototype.setMemberCount = function(value) {
|
|
1933
|
+
return jspb.Message.setProto3IntField(this, 12, value);
|
|
1934
|
+
};
|
|
1935
|
+
|
|
1936
|
+
|
|
1937
|
+
/**
|
|
1938
|
+
* optional RoomMemberLoadMode member_load_mode = 13;
|
|
1939
|
+
* @return {!proto.wechaty.puppet.RoomMemberLoadMode}
|
|
1940
|
+
*/
|
|
1941
|
+
proto.wechaty.puppet.RoomPayloadResponse.prototype.getMemberLoadMode = function() {
|
|
1942
|
+
return /** @type {!proto.wechaty.puppet.RoomMemberLoadMode} */ (jspb.Message.getFieldWithDefault(this, 13, 0));
|
|
1943
|
+
};
|
|
1944
|
+
|
|
1945
|
+
|
|
1946
|
+
/**
|
|
1947
|
+
* @param {!proto.wechaty.puppet.RoomMemberLoadMode} value
|
|
1948
|
+
* @return {!proto.wechaty.puppet.RoomPayloadResponse} returns this
|
|
1949
|
+
*/
|
|
1950
|
+
proto.wechaty.puppet.RoomPayloadResponse.prototype.setMemberLoadMode = function(value) {
|
|
1951
|
+
return jspb.Message.setProto3EnumField(this, 13, value);
|
|
1952
|
+
};
|
|
1953
|
+
|
|
1954
|
+
|
|
1955
|
+
/**
|
|
1956
|
+
* optional RoomMemberLoadStatus member_load_status = 14;
|
|
1957
|
+
* @return {!proto.wechaty.puppet.RoomMemberLoadStatus}
|
|
1958
|
+
*/
|
|
1959
|
+
proto.wechaty.puppet.RoomPayloadResponse.prototype.getMemberLoadStatus = function() {
|
|
1960
|
+
return /** @type {!proto.wechaty.puppet.RoomMemberLoadStatus} */ (jspb.Message.getFieldWithDefault(this, 14, 0));
|
|
1961
|
+
};
|
|
1962
|
+
|
|
1963
|
+
|
|
1964
|
+
/**
|
|
1965
|
+
* @param {!proto.wechaty.puppet.RoomMemberLoadStatus} value
|
|
1966
|
+
* @return {!proto.wechaty.puppet.RoomPayloadResponse} returns this
|
|
1967
|
+
*/
|
|
1968
|
+
proto.wechaty.puppet.RoomPayloadResponse.prototype.setMemberLoadStatus = function(value) {
|
|
1969
|
+
return jspb.Message.setProto3EnumField(this, 14, value);
|
|
1970
|
+
};
|
|
1971
|
+
|
|
1972
|
+
|
|
1973
|
+
/**
|
|
1974
|
+
* optional string member_load_revision = 15;
|
|
1975
|
+
* @return {string}
|
|
1976
|
+
*/
|
|
1977
|
+
proto.wechaty.puppet.RoomPayloadResponse.prototype.getMemberLoadRevision = function() {
|
|
1978
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
|
|
1979
|
+
};
|
|
1980
|
+
|
|
1981
|
+
|
|
1982
|
+
/**
|
|
1983
|
+
* @param {string} value
|
|
1984
|
+
* @return {!proto.wechaty.puppet.RoomPayloadResponse} returns this
|
|
1985
|
+
*/
|
|
1986
|
+
proto.wechaty.puppet.RoomPayloadResponse.prototype.setMemberLoadRevision = function(value) {
|
|
1987
|
+
return jspb.Message.setProto3StringField(this, 15, value);
|
|
1988
|
+
};
|
|
1989
|
+
|
|
1990
|
+
|
|
1991
|
+
/**
|
|
1992
|
+
* optional google.protobuf.Timestamp member_loaded_at = 16;
|
|
1993
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
1994
|
+
*/
|
|
1995
|
+
proto.wechaty.puppet.RoomPayloadResponse.prototype.getMemberLoadedAt = function() {
|
|
1996
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
1997
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 16));
|
|
1998
|
+
};
|
|
1999
|
+
|
|
2000
|
+
|
|
2001
|
+
/**
|
|
2002
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
2003
|
+
* @return {!proto.wechaty.puppet.RoomPayloadResponse} returns this
|
|
2004
|
+
*/
|
|
2005
|
+
proto.wechaty.puppet.RoomPayloadResponse.prototype.setMemberLoadedAt = function(value) {
|
|
2006
|
+
return jspb.Message.setWrapperField(this, 16, value);
|
|
2007
|
+
};
|
|
2008
|
+
|
|
2009
|
+
|
|
2010
|
+
/**
|
|
2011
|
+
* Clears the message field making it undefined.
|
|
2012
|
+
* @return {!proto.wechaty.puppet.RoomPayloadResponse} returns this
|
|
2013
|
+
*/
|
|
2014
|
+
proto.wechaty.puppet.RoomPayloadResponse.prototype.clearMemberLoadedAt = function() {
|
|
2015
|
+
return this.setMemberLoadedAt(undefined);
|
|
2016
|
+
};
|
|
2017
|
+
|
|
2018
|
+
|
|
2019
|
+
/**
|
|
2020
|
+
* Returns whether this field is set.
|
|
2021
|
+
* @return {boolean}
|
|
2022
|
+
*/
|
|
2023
|
+
proto.wechaty.puppet.RoomPayloadResponse.prototype.hasMemberLoadedAt = function() {
|
|
2024
|
+
return jspb.Message.getField(this, 16) != null;
|
|
2025
|
+
};
|
|
2026
|
+
|
|
2027
|
+
|
|
1743
2028
|
|
|
1744
2029
|
/**
|
|
1745
2030
|
* List of repeated fields within this message type.
|
|
@@ -7565,4 +7850,1136 @@ proto.wechaty.puppet.BatchRoomPayloadResponse.prototype.clearRoomPayloadsList =
|
|
|
7565
7850
|
};
|
|
7566
7851
|
|
|
7567
7852
|
|
|
7853
|
+
|
|
7854
|
+
|
|
7855
|
+
|
|
7856
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
7857
|
+
/**
|
|
7858
|
+
* Creates an object representation of this proto.
|
|
7859
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
7860
|
+
* Optional fields that are not set will be set to undefined.
|
|
7861
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
7862
|
+
* For the list of reserved names please see:
|
|
7863
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
7864
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
7865
|
+
* JSPB instance for transitional soy proto support:
|
|
7866
|
+
* http://goto/soy-param-migration
|
|
7867
|
+
* @return {!Object}
|
|
7868
|
+
*/
|
|
7869
|
+
proto.wechaty.puppet.RoomMemberSyncRequest.prototype.toObject = function(opt_includeInstance) {
|
|
7870
|
+
return proto.wechaty.puppet.RoomMemberSyncRequest.toObject(opt_includeInstance, this);
|
|
7871
|
+
};
|
|
7872
|
+
|
|
7873
|
+
|
|
7874
|
+
/**
|
|
7875
|
+
* Static version of the {@see toObject} method.
|
|
7876
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
7877
|
+
* the JSPB instance for transitional soy proto support:
|
|
7878
|
+
* http://goto/soy-param-migration
|
|
7879
|
+
* @param {!proto.wechaty.puppet.RoomMemberSyncRequest} msg The msg instance to transform.
|
|
7880
|
+
* @return {!Object}
|
|
7881
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7882
|
+
*/
|
|
7883
|
+
proto.wechaty.puppet.RoomMemberSyncRequest.toObject = function(includeInstance, msg) {
|
|
7884
|
+
var f, obj = {
|
|
7885
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
7886
|
+
force: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
|
|
7887
|
+
};
|
|
7888
|
+
|
|
7889
|
+
if (includeInstance) {
|
|
7890
|
+
obj.$jspbMessageInstance = msg;
|
|
7891
|
+
}
|
|
7892
|
+
return obj;
|
|
7893
|
+
};
|
|
7894
|
+
}
|
|
7895
|
+
|
|
7896
|
+
|
|
7897
|
+
/**
|
|
7898
|
+
* Deserializes binary data (in protobuf wire format).
|
|
7899
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
7900
|
+
* @return {!proto.wechaty.puppet.RoomMemberSyncRequest}
|
|
7901
|
+
*/
|
|
7902
|
+
proto.wechaty.puppet.RoomMemberSyncRequest.deserializeBinary = function(bytes) {
|
|
7903
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
7904
|
+
var msg = new proto.wechaty.puppet.RoomMemberSyncRequest;
|
|
7905
|
+
return proto.wechaty.puppet.RoomMemberSyncRequest.deserializeBinaryFromReader(msg, reader);
|
|
7906
|
+
};
|
|
7907
|
+
|
|
7908
|
+
|
|
7909
|
+
/**
|
|
7910
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
7911
|
+
* given reader into the given message object.
|
|
7912
|
+
* @param {!proto.wechaty.puppet.RoomMemberSyncRequest} msg The message object to deserialize into.
|
|
7913
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
7914
|
+
* @return {!proto.wechaty.puppet.RoomMemberSyncRequest}
|
|
7915
|
+
*/
|
|
7916
|
+
proto.wechaty.puppet.RoomMemberSyncRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
7917
|
+
while (reader.nextField()) {
|
|
7918
|
+
if (reader.isEndGroup()) {
|
|
7919
|
+
break;
|
|
7920
|
+
}
|
|
7921
|
+
var field = reader.getFieldNumber();
|
|
7922
|
+
switch (field) {
|
|
7923
|
+
case 1:
|
|
7924
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7925
|
+
msg.setId(value);
|
|
7926
|
+
break;
|
|
7927
|
+
case 2:
|
|
7928
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
7929
|
+
msg.setForce(value);
|
|
7930
|
+
break;
|
|
7931
|
+
default:
|
|
7932
|
+
reader.skipField();
|
|
7933
|
+
break;
|
|
7934
|
+
}
|
|
7935
|
+
}
|
|
7936
|
+
return msg;
|
|
7937
|
+
};
|
|
7938
|
+
|
|
7939
|
+
|
|
7940
|
+
/**
|
|
7941
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
7942
|
+
* @return {!Uint8Array}
|
|
7943
|
+
*/
|
|
7944
|
+
proto.wechaty.puppet.RoomMemberSyncRequest.prototype.serializeBinary = function() {
|
|
7945
|
+
var writer = new jspb.BinaryWriter();
|
|
7946
|
+
proto.wechaty.puppet.RoomMemberSyncRequest.serializeBinaryToWriter(this, writer);
|
|
7947
|
+
return writer.getResultBuffer();
|
|
7948
|
+
};
|
|
7949
|
+
|
|
7950
|
+
|
|
7951
|
+
/**
|
|
7952
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
7953
|
+
* format), writing to the given BinaryWriter.
|
|
7954
|
+
* @param {!proto.wechaty.puppet.RoomMemberSyncRequest} message
|
|
7955
|
+
* @param {!jspb.BinaryWriter} writer
|
|
7956
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7957
|
+
*/
|
|
7958
|
+
proto.wechaty.puppet.RoomMemberSyncRequest.serializeBinaryToWriter = function(message, writer) {
|
|
7959
|
+
var f = undefined;
|
|
7960
|
+
f = message.getId();
|
|
7961
|
+
if (f.length > 0) {
|
|
7962
|
+
writer.writeString(
|
|
7963
|
+
1,
|
|
7964
|
+
f
|
|
7965
|
+
);
|
|
7966
|
+
}
|
|
7967
|
+
f = message.getForce();
|
|
7968
|
+
if (f) {
|
|
7969
|
+
writer.writeBool(
|
|
7970
|
+
2,
|
|
7971
|
+
f
|
|
7972
|
+
);
|
|
7973
|
+
}
|
|
7974
|
+
};
|
|
7975
|
+
|
|
7976
|
+
|
|
7977
|
+
/**
|
|
7978
|
+
* optional string id = 1;
|
|
7979
|
+
* @return {string}
|
|
7980
|
+
*/
|
|
7981
|
+
proto.wechaty.puppet.RoomMemberSyncRequest.prototype.getId = function() {
|
|
7982
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
7983
|
+
};
|
|
7984
|
+
|
|
7985
|
+
|
|
7986
|
+
/**
|
|
7987
|
+
* @param {string} value
|
|
7988
|
+
* @return {!proto.wechaty.puppet.RoomMemberSyncRequest} returns this
|
|
7989
|
+
*/
|
|
7990
|
+
proto.wechaty.puppet.RoomMemberSyncRequest.prototype.setId = function(value) {
|
|
7991
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
7992
|
+
};
|
|
7993
|
+
|
|
7994
|
+
|
|
7995
|
+
/**
|
|
7996
|
+
* optional bool force = 2;
|
|
7997
|
+
* @return {boolean}
|
|
7998
|
+
*/
|
|
7999
|
+
proto.wechaty.puppet.RoomMemberSyncRequest.prototype.getForce = function() {
|
|
8000
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
|
|
8001
|
+
};
|
|
8002
|
+
|
|
8003
|
+
|
|
8004
|
+
/**
|
|
8005
|
+
* @param {boolean} value
|
|
8006
|
+
* @return {!proto.wechaty.puppet.RoomMemberSyncRequest} returns this
|
|
8007
|
+
*/
|
|
8008
|
+
proto.wechaty.puppet.RoomMemberSyncRequest.prototype.setForce = function(value) {
|
|
8009
|
+
return jspb.Message.setProto3BooleanField(this, 2, value);
|
|
8010
|
+
};
|
|
8011
|
+
|
|
8012
|
+
|
|
8013
|
+
|
|
8014
|
+
|
|
8015
|
+
|
|
8016
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
8017
|
+
/**
|
|
8018
|
+
* Creates an object representation of this proto.
|
|
8019
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
8020
|
+
* Optional fields that are not set will be set to undefined.
|
|
8021
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
8022
|
+
* For the list of reserved names please see:
|
|
8023
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
8024
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
8025
|
+
* JSPB instance for transitional soy proto support:
|
|
8026
|
+
* http://goto/soy-param-migration
|
|
8027
|
+
* @return {!Object}
|
|
8028
|
+
*/
|
|
8029
|
+
proto.wechaty.puppet.RoomMemberLoadStateRequest.prototype.toObject = function(opt_includeInstance) {
|
|
8030
|
+
return proto.wechaty.puppet.RoomMemberLoadStateRequest.toObject(opt_includeInstance, this);
|
|
8031
|
+
};
|
|
8032
|
+
|
|
8033
|
+
|
|
8034
|
+
/**
|
|
8035
|
+
* Static version of the {@see toObject} method.
|
|
8036
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
8037
|
+
* the JSPB instance for transitional soy proto support:
|
|
8038
|
+
* http://goto/soy-param-migration
|
|
8039
|
+
* @param {!proto.wechaty.puppet.RoomMemberLoadStateRequest} msg The msg instance to transform.
|
|
8040
|
+
* @return {!Object}
|
|
8041
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8042
|
+
*/
|
|
8043
|
+
proto.wechaty.puppet.RoomMemberLoadStateRequest.toObject = function(includeInstance, msg) {
|
|
8044
|
+
var f, obj = {
|
|
8045
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
8046
|
+
};
|
|
8047
|
+
|
|
8048
|
+
if (includeInstance) {
|
|
8049
|
+
obj.$jspbMessageInstance = msg;
|
|
8050
|
+
}
|
|
8051
|
+
return obj;
|
|
8052
|
+
};
|
|
8053
|
+
}
|
|
8054
|
+
|
|
8055
|
+
|
|
8056
|
+
/**
|
|
8057
|
+
* Deserializes binary data (in protobuf wire format).
|
|
8058
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
8059
|
+
* @return {!proto.wechaty.puppet.RoomMemberLoadStateRequest}
|
|
8060
|
+
*/
|
|
8061
|
+
proto.wechaty.puppet.RoomMemberLoadStateRequest.deserializeBinary = function(bytes) {
|
|
8062
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
8063
|
+
var msg = new proto.wechaty.puppet.RoomMemberLoadStateRequest;
|
|
8064
|
+
return proto.wechaty.puppet.RoomMemberLoadStateRequest.deserializeBinaryFromReader(msg, reader);
|
|
8065
|
+
};
|
|
8066
|
+
|
|
8067
|
+
|
|
8068
|
+
/**
|
|
8069
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
8070
|
+
* given reader into the given message object.
|
|
8071
|
+
* @param {!proto.wechaty.puppet.RoomMemberLoadStateRequest} msg The message object to deserialize into.
|
|
8072
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
8073
|
+
* @return {!proto.wechaty.puppet.RoomMemberLoadStateRequest}
|
|
8074
|
+
*/
|
|
8075
|
+
proto.wechaty.puppet.RoomMemberLoadStateRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
8076
|
+
while (reader.nextField()) {
|
|
8077
|
+
if (reader.isEndGroup()) {
|
|
8078
|
+
break;
|
|
8079
|
+
}
|
|
8080
|
+
var field = reader.getFieldNumber();
|
|
8081
|
+
switch (field) {
|
|
8082
|
+
case 1:
|
|
8083
|
+
var value = /** @type {string} */ (reader.readString());
|
|
8084
|
+
msg.setId(value);
|
|
8085
|
+
break;
|
|
8086
|
+
default:
|
|
8087
|
+
reader.skipField();
|
|
8088
|
+
break;
|
|
8089
|
+
}
|
|
8090
|
+
}
|
|
8091
|
+
return msg;
|
|
8092
|
+
};
|
|
8093
|
+
|
|
8094
|
+
|
|
8095
|
+
/**
|
|
8096
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
8097
|
+
* @return {!Uint8Array}
|
|
8098
|
+
*/
|
|
8099
|
+
proto.wechaty.puppet.RoomMemberLoadStateRequest.prototype.serializeBinary = function() {
|
|
8100
|
+
var writer = new jspb.BinaryWriter();
|
|
8101
|
+
proto.wechaty.puppet.RoomMemberLoadStateRequest.serializeBinaryToWriter(this, writer);
|
|
8102
|
+
return writer.getResultBuffer();
|
|
8103
|
+
};
|
|
8104
|
+
|
|
8105
|
+
|
|
8106
|
+
/**
|
|
8107
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
8108
|
+
* format), writing to the given BinaryWriter.
|
|
8109
|
+
* @param {!proto.wechaty.puppet.RoomMemberLoadStateRequest} message
|
|
8110
|
+
* @param {!jspb.BinaryWriter} writer
|
|
8111
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8112
|
+
*/
|
|
8113
|
+
proto.wechaty.puppet.RoomMemberLoadStateRequest.serializeBinaryToWriter = function(message, writer) {
|
|
8114
|
+
var f = undefined;
|
|
8115
|
+
f = message.getId();
|
|
8116
|
+
if (f.length > 0) {
|
|
8117
|
+
writer.writeString(
|
|
8118
|
+
1,
|
|
8119
|
+
f
|
|
8120
|
+
);
|
|
8121
|
+
}
|
|
8122
|
+
};
|
|
8123
|
+
|
|
8124
|
+
|
|
8125
|
+
/**
|
|
8126
|
+
* optional string id = 1;
|
|
8127
|
+
* @return {string}
|
|
8128
|
+
*/
|
|
8129
|
+
proto.wechaty.puppet.RoomMemberLoadStateRequest.prototype.getId = function() {
|
|
8130
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
8131
|
+
};
|
|
8132
|
+
|
|
8133
|
+
|
|
8134
|
+
/**
|
|
8135
|
+
* @param {string} value
|
|
8136
|
+
* @return {!proto.wechaty.puppet.RoomMemberLoadStateRequest} returns this
|
|
8137
|
+
*/
|
|
8138
|
+
proto.wechaty.puppet.RoomMemberLoadStateRequest.prototype.setId = function(value) {
|
|
8139
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
8140
|
+
};
|
|
8141
|
+
|
|
8142
|
+
|
|
8143
|
+
|
|
8144
|
+
|
|
8145
|
+
|
|
8146
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
8147
|
+
/**
|
|
8148
|
+
* Creates an object representation of this proto.
|
|
8149
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
8150
|
+
* Optional fields that are not set will be set to undefined.
|
|
8151
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
8152
|
+
* For the list of reserved names please see:
|
|
8153
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
8154
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
8155
|
+
* JSPB instance for transitional soy proto support:
|
|
8156
|
+
* http://goto/soy-param-migration
|
|
8157
|
+
* @return {!Object}
|
|
8158
|
+
*/
|
|
8159
|
+
proto.wechaty.puppet.RoomMemberLoadStateResponse.prototype.toObject = function(opt_includeInstance) {
|
|
8160
|
+
return proto.wechaty.puppet.RoomMemberLoadStateResponse.toObject(opt_includeInstance, this);
|
|
8161
|
+
};
|
|
8162
|
+
|
|
8163
|
+
|
|
8164
|
+
/**
|
|
8165
|
+
* Static version of the {@see toObject} method.
|
|
8166
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
8167
|
+
* the JSPB instance for transitional soy proto support:
|
|
8168
|
+
* http://goto/soy-param-migration
|
|
8169
|
+
* @param {!proto.wechaty.puppet.RoomMemberLoadStateResponse} msg The msg instance to transform.
|
|
8170
|
+
* @return {!Object}
|
|
8171
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8172
|
+
*/
|
|
8173
|
+
proto.wechaty.puppet.RoomMemberLoadStateResponse.toObject = function(includeInstance, msg) {
|
|
8174
|
+
var f, obj = {
|
|
8175
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
8176
|
+
taskId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
8177
|
+
status: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
8178
|
+
revision: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
8179
|
+
loadedAt: (f = msg.getLoadedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
8180
|
+
error: jspb.Message.getFieldWithDefault(msg, 6, "")
|
|
8181
|
+
};
|
|
8182
|
+
|
|
8183
|
+
if (includeInstance) {
|
|
8184
|
+
obj.$jspbMessageInstance = msg;
|
|
8185
|
+
}
|
|
8186
|
+
return obj;
|
|
8187
|
+
};
|
|
8188
|
+
}
|
|
8189
|
+
|
|
8190
|
+
|
|
8191
|
+
/**
|
|
8192
|
+
* Deserializes binary data (in protobuf wire format).
|
|
8193
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
8194
|
+
* @return {!proto.wechaty.puppet.RoomMemberLoadStateResponse}
|
|
8195
|
+
*/
|
|
8196
|
+
proto.wechaty.puppet.RoomMemberLoadStateResponse.deserializeBinary = function(bytes) {
|
|
8197
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
8198
|
+
var msg = new proto.wechaty.puppet.RoomMemberLoadStateResponse;
|
|
8199
|
+
return proto.wechaty.puppet.RoomMemberLoadStateResponse.deserializeBinaryFromReader(msg, reader);
|
|
8200
|
+
};
|
|
8201
|
+
|
|
8202
|
+
|
|
8203
|
+
/**
|
|
8204
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
8205
|
+
* given reader into the given message object.
|
|
8206
|
+
* @param {!proto.wechaty.puppet.RoomMemberLoadStateResponse} msg The message object to deserialize into.
|
|
8207
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
8208
|
+
* @return {!proto.wechaty.puppet.RoomMemberLoadStateResponse}
|
|
8209
|
+
*/
|
|
8210
|
+
proto.wechaty.puppet.RoomMemberLoadStateResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
8211
|
+
while (reader.nextField()) {
|
|
8212
|
+
if (reader.isEndGroup()) {
|
|
8213
|
+
break;
|
|
8214
|
+
}
|
|
8215
|
+
var field = reader.getFieldNumber();
|
|
8216
|
+
switch (field) {
|
|
8217
|
+
case 1:
|
|
8218
|
+
var value = /** @type {string} */ (reader.readString());
|
|
8219
|
+
msg.setId(value);
|
|
8220
|
+
break;
|
|
8221
|
+
case 2:
|
|
8222
|
+
var value = /** @type {string} */ (reader.readString());
|
|
8223
|
+
msg.setTaskId(value);
|
|
8224
|
+
break;
|
|
8225
|
+
case 3:
|
|
8226
|
+
var value = /** @type {!proto.wechaty.puppet.RoomMemberLoadStatus} */ (reader.readEnum());
|
|
8227
|
+
msg.setStatus(value);
|
|
8228
|
+
break;
|
|
8229
|
+
case 4:
|
|
8230
|
+
var value = /** @type {string} */ (reader.readString());
|
|
8231
|
+
msg.setRevision(value);
|
|
8232
|
+
break;
|
|
8233
|
+
case 5:
|
|
8234
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
8235
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
8236
|
+
msg.setLoadedAt(value);
|
|
8237
|
+
break;
|
|
8238
|
+
case 6:
|
|
8239
|
+
var value = /** @type {string} */ (reader.readString());
|
|
8240
|
+
msg.setError(value);
|
|
8241
|
+
break;
|
|
8242
|
+
default:
|
|
8243
|
+
reader.skipField();
|
|
8244
|
+
break;
|
|
8245
|
+
}
|
|
8246
|
+
}
|
|
8247
|
+
return msg;
|
|
8248
|
+
};
|
|
8249
|
+
|
|
8250
|
+
|
|
8251
|
+
/**
|
|
8252
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
8253
|
+
* @return {!Uint8Array}
|
|
8254
|
+
*/
|
|
8255
|
+
proto.wechaty.puppet.RoomMemberLoadStateResponse.prototype.serializeBinary = function() {
|
|
8256
|
+
var writer = new jspb.BinaryWriter();
|
|
8257
|
+
proto.wechaty.puppet.RoomMemberLoadStateResponse.serializeBinaryToWriter(this, writer);
|
|
8258
|
+
return writer.getResultBuffer();
|
|
8259
|
+
};
|
|
8260
|
+
|
|
8261
|
+
|
|
8262
|
+
/**
|
|
8263
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
8264
|
+
* format), writing to the given BinaryWriter.
|
|
8265
|
+
* @param {!proto.wechaty.puppet.RoomMemberLoadStateResponse} message
|
|
8266
|
+
* @param {!jspb.BinaryWriter} writer
|
|
8267
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8268
|
+
*/
|
|
8269
|
+
proto.wechaty.puppet.RoomMemberLoadStateResponse.serializeBinaryToWriter = function(message, writer) {
|
|
8270
|
+
var f = undefined;
|
|
8271
|
+
f = message.getId();
|
|
8272
|
+
if (f.length > 0) {
|
|
8273
|
+
writer.writeString(
|
|
8274
|
+
1,
|
|
8275
|
+
f
|
|
8276
|
+
);
|
|
8277
|
+
}
|
|
8278
|
+
f = message.getTaskId();
|
|
8279
|
+
if (f.length > 0) {
|
|
8280
|
+
writer.writeString(
|
|
8281
|
+
2,
|
|
8282
|
+
f
|
|
8283
|
+
);
|
|
8284
|
+
}
|
|
8285
|
+
f = message.getStatus();
|
|
8286
|
+
if (f !== 0.0) {
|
|
8287
|
+
writer.writeEnum(
|
|
8288
|
+
3,
|
|
8289
|
+
f
|
|
8290
|
+
);
|
|
8291
|
+
}
|
|
8292
|
+
f = message.getRevision();
|
|
8293
|
+
if (f.length > 0) {
|
|
8294
|
+
writer.writeString(
|
|
8295
|
+
4,
|
|
8296
|
+
f
|
|
8297
|
+
);
|
|
8298
|
+
}
|
|
8299
|
+
f = message.getLoadedAt();
|
|
8300
|
+
if (f != null) {
|
|
8301
|
+
writer.writeMessage(
|
|
8302
|
+
5,
|
|
8303
|
+
f,
|
|
8304
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
8305
|
+
);
|
|
8306
|
+
}
|
|
8307
|
+
f = message.getError();
|
|
8308
|
+
if (f.length > 0) {
|
|
8309
|
+
writer.writeString(
|
|
8310
|
+
6,
|
|
8311
|
+
f
|
|
8312
|
+
);
|
|
8313
|
+
}
|
|
8314
|
+
};
|
|
8315
|
+
|
|
8316
|
+
|
|
8317
|
+
/**
|
|
8318
|
+
* optional string id = 1;
|
|
8319
|
+
* @return {string}
|
|
8320
|
+
*/
|
|
8321
|
+
proto.wechaty.puppet.RoomMemberLoadStateResponse.prototype.getId = function() {
|
|
8322
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
8323
|
+
};
|
|
8324
|
+
|
|
8325
|
+
|
|
8326
|
+
/**
|
|
8327
|
+
* @param {string} value
|
|
8328
|
+
* @return {!proto.wechaty.puppet.RoomMemberLoadStateResponse} returns this
|
|
8329
|
+
*/
|
|
8330
|
+
proto.wechaty.puppet.RoomMemberLoadStateResponse.prototype.setId = function(value) {
|
|
8331
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
8332
|
+
};
|
|
8333
|
+
|
|
8334
|
+
|
|
8335
|
+
/**
|
|
8336
|
+
* optional string task_id = 2;
|
|
8337
|
+
* @return {string}
|
|
8338
|
+
*/
|
|
8339
|
+
proto.wechaty.puppet.RoomMemberLoadStateResponse.prototype.getTaskId = function() {
|
|
8340
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
8341
|
+
};
|
|
8342
|
+
|
|
8343
|
+
|
|
8344
|
+
/**
|
|
8345
|
+
* @param {string} value
|
|
8346
|
+
* @return {!proto.wechaty.puppet.RoomMemberLoadStateResponse} returns this
|
|
8347
|
+
*/
|
|
8348
|
+
proto.wechaty.puppet.RoomMemberLoadStateResponse.prototype.setTaskId = function(value) {
|
|
8349
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
8350
|
+
};
|
|
8351
|
+
|
|
8352
|
+
|
|
8353
|
+
/**
|
|
8354
|
+
* optional RoomMemberLoadStatus status = 3;
|
|
8355
|
+
* @return {!proto.wechaty.puppet.RoomMemberLoadStatus}
|
|
8356
|
+
*/
|
|
8357
|
+
proto.wechaty.puppet.RoomMemberLoadStateResponse.prototype.getStatus = function() {
|
|
8358
|
+
return /** @type {!proto.wechaty.puppet.RoomMemberLoadStatus} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
8359
|
+
};
|
|
8360
|
+
|
|
8361
|
+
|
|
8362
|
+
/**
|
|
8363
|
+
* @param {!proto.wechaty.puppet.RoomMemberLoadStatus} value
|
|
8364
|
+
* @return {!proto.wechaty.puppet.RoomMemberLoadStateResponse} returns this
|
|
8365
|
+
*/
|
|
8366
|
+
proto.wechaty.puppet.RoomMemberLoadStateResponse.prototype.setStatus = function(value) {
|
|
8367
|
+
return jspb.Message.setProto3EnumField(this, 3, value);
|
|
8368
|
+
};
|
|
8369
|
+
|
|
8370
|
+
|
|
8371
|
+
/**
|
|
8372
|
+
* optional string revision = 4;
|
|
8373
|
+
* @return {string}
|
|
8374
|
+
*/
|
|
8375
|
+
proto.wechaty.puppet.RoomMemberLoadStateResponse.prototype.getRevision = function() {
|
|
8376
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
8377
|
+
};
|
|
8378
|
+
|
|
8379
|
+
|
|
8380
|
+
/**
|
|
8381
|
+
* @param {string} value
|
|
8382
|
+
* @return {!proto.wechaty.puppet.RoomMemberLoadStateResponse} returns this
|
|
8383
|
+
*/
|
|
8384
|
+
proto.wechaty.puppet.RoomMemberLoadStateResponse.prototype.setRevision = function(value) {
|
|
8385
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
8386
|
+
};
|
|
8387
|
+
|
|
8388
|
+
|
|
8389
|
+
/**
|
|
8390
|
+
* optional google.protobuf.Timestamp loaded_at = 5;
|
|
8391
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
8392
|
+
*/
|
|
8393
|
+
proto.wechaty.puppet.RoomMemberLoadStateResponse.prototype.getLoadedAt = function() {
|
|
8394
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
8395
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5));
|
|
8396
|
+
};
|
|
8397
|
+
|
|
8398
|
+
|
|
8399
|
+
/**
|
|
8400
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
8401
|
+
* @return {!proto.wechaty.puppet.RoomMemberLoadStateResponse} returns this
|
|
8402
|
+
*/
|
|
8403
|
+
proto.wechaty.puppet.RoomMemberLoadStateResponse.prototype.setLoadedAt = function(value) {
|
|
8404
|
+
return jspb.Message.setWrapperField(this, 5, value);
|
|
8405
|
+
};
|
|
8406
|
+
|
|
8407
|
+
|
|
8408
|
+
/**
|
|
8409
|
+
* Clears the message field making it undefined.
|
|
8410
|
+
* @return {!proto.wechaty.puppet.RoomMemberLoadStateResponse} returns this
|
|
8411
|
+
*/
|
|
8412
|
+
proto.wechaty.puppet.RoomMemberLoadStateResponse.prototype.clearLoadedAt = function() {
|
|
8413
|
+
return this.setLoadedAt(undefined);
|
|
8414
|
+
};
|
|
8415
|
+
|
|
8416
|
+
|
|
8417
|
+
/**
|
|
8418
|
+
* Returns whether this field is set.
|
|
8419
|
+
* @return {boolean}
|
|
8420
|
+
*/
|
|
8421
|
+
proto.wechaty.puppet.RoomMemberLoadStateResponse.prototype.hasLoadedAt = function() {
|
|
8422
|
+
return jspb.Message.getField(this, 5) != null;
|
|
8423
|
+
};
|
|
8424
|
+
|
|
8425
|
+
|
|
8426
|
+
/**
|
|
8427
|
+
* optional string error = 6;
|
|
8428
|
+
* @return {string}
|
|
8429
|
+
*/
|
|
8430
|
+
proto.wechaty.puppet.RoomMemberLoadStateResponse.prototype.getError = function() {
|
|
8431
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
8432
|
+
};
|
|
8433
|
+
|
|
8434
|
+
|
|
8435
|
+
/**
|
|
8436
|
+
* @param {string} value
|
|
8437
|
+
* @return {!proto.wechaty.puppet.RoomMemberLoadStateResponse} returns this
|
|
8438
|
+
*/
|
|
8439
|
+
proto.wechaty.puppet.RoomMemberLoadStateResponse.prototype.setError = function(value) {
|
|
8440
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
8441
|
+
};
|
|
8442
|
+
|
|
8443
|
+
|
|
8444
|
+
|
|
8445
|
+
|
|
8446
|
+
|
|
8447
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
8448
|
+
/**
|
|
8449
|
+
* Creates an object representation of this proto.
|
|
8450
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
8451
|
+
* Optional fields that are not set will be set to undefined.
|
|
8452
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
8453
|
+
* For the list of reserved names please see:
|
|
8454
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
8455
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
8456
|
+
* JSPB instance for transitional soy proto support:
|
|
8457
|
+
* http://goto/soy-param-migration
|
|
8458
|
+
* @return {!Object}
|
|
8459
|
+
*/
|
|
8460
|
+
proto.wechaty.puppet.RoomMemberSnapshotRequest.prototype.toObject = function(opt_includeInstance) {
|
|
8461
|
+
return proto.wechaty.puppet.RoomMemberSnapshotRequest.toObject(opt_includeInstance, this);
|
|
8462
|
+
};
|
|
8463
|
+
|
|
8464
|
+
|
|
8465
|
+
/**
|
|
8466
|
+
* Static version of the {@see toObject} method.
|
|
8467
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
8468
|
+
* the JSPB instance for transitional soy proto support:
|
|
8469
|
+
* http://goto/soy-param-migration
|
|
8470
|
+
* @param {!proto.wechaty.puppet.RoomMemberSnapshotRequest} msg The msg instance to transform.
|
|
8471
|
+
* @return {!Object}
|
|
8472
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8473
|
+
*/
|
|
8474
|
+
proto.wechaty.puppet.RoomMemberSnapshotRequest.toObject = function(includeInstance, msg) {
|
|
8475
|
+
var f, obj = {
|
|
8476
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
8477
|
+
revision: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
8478
|
+
pageToken: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
8479
|
+
pageSize: jspb.Message.getFieldWithDefault(msg, 4, 0)
|
|
8480
|
+
};
|
|
8481
|
+
|
|
8482
|
+
if (includeInstance) {
|
|
8483
|
+
obj.$jspbMessageInstance = msg;
|
|
8484
|
+
}
|
|
8485
|
+
return obj;
|
|
8486
|
+
};
|
|
8487
|
+
}
|
|
8488
|
+
|
|
8489
|
+
|
|
8490
|
+
/**
|
|
8491
|
+
* Deserializes binary data (in protobuf wire format).
|
|
8492
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
8493
|
+
* @return {!proto.wechaty.puppet.RoomMemberSnapshotRequest}
|
|
8494
|
+
*/
|
|
8495
|
+
proto.wechaty.puppet.RoomMemberSnapshotRequest.deserializeBinary = function(bytes) {
|
|
8496
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
8497
|
+
var msg = new proto.wechaty.puppet.RoomMemberSnapshotRequest;
|
|
8498
|
+
return proto.wechaty.puppet.RoomMemberSnapshotRequest.deserializeBinaryFromReader(msg, reader);
|
|
8499
|
+
};
|
|
8500
|
+
|
|
8501
|
+
|
|
8502
|
+
/**
|
|
8503
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
8504
|
+
* given reader into the given message object.
|
|
8505
|
+
* @param {!proto.wechaty.puppet.RoomMemberSnapshotRequest} msg The message object to deserialize into.
|
|
8506
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
8507
|
+
* @return {!proto.wechaty.puppet.RoomMemberSnapshotRequest}
|
|
8508
|
+
*/
|
|
8509
|
+
proto.wechaty.puppet.RoomMemberSnapshotRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
8510
|
+
while (reader.nextField()) {
|
|
8511
|
+
if (reader.isEndGroup()) {
|
|
8512
|
+
break;
|
|
8513
|
+
}
|
|
8514
|
+
var field = reader.getFieldNumber();
|
|
8515
|
+
switch (field) {
|
|
8516
|
+
case 1:
|
|
8517
|
+
var value = /** @type {string} */ (reader.readString());
|
|
8518
|
+
msg.setId(value);
|
|
8519
|
+
break;
|
|
8520
|
+
case 2:
|
|
8521
|
+
var value = /** @type {string} */ (reader.readString());
|
|
8522
|
+
msg.setRevision(value);
|
|
8523
|
+
break;
|
|
8524
|
+
case 3:
|
|
8525
|
+
var value = /** @type {string} */ (reader.readString());
|
|
8526
|
+
msg.setPageToken(value);
|
|
8527
|
+
break;
|
|
8528
|
+
case 4:
|
|
8529
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
8530
|
+
msg.setPageSize(value);
|
|
8531
|
+
break;
|
|
8532
|
+
default:
|
|
8533
|
+
reader.skipField();
|
|
8534
|
+
break;
|
|
8535
|
+
}
|
|
8536
|
+
}
|
|
8537
|
+
return msg;
|
|
8538
|
+
};
|
|
8539
|
+
|
|
8540
|
+
|
|
8541
|
+
/**
|
|
8542
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
8543
|
+
* @return {!Uint8Array}
|
|
8544
|
+
*/
|
|
8545
|
+
proto.wechaty.puppet.RoomMemberSnapshotRequest.prototype.serializeBinary = function() {
|
|
8546
|
+
var writer = new jspb.BinaryWriter();
|
|
8547
|
+
proto.wechaty.puppet.RoomMemberSnapshotRequest.serializeBinaryToWriter(this, writer);
|
|
8548
|
+
return writer.getResultBuffer();
|
|
8549
|
+
};
|
|
8550
|
+
|
|
8551
|
+
|
|
8552
|
+
/**
|
|
8553
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
8554
|
+
* format), writing to the given BinaryWriter.
|
|
8555
|
+
* @param {!proto.wechaty.puppet.RoomMemberSnapshotRequest} message
|
|
8556
|
+
* @param {!jspb.BinaryWriter} writer
|
|
8557
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8558
|
+
*/
|
|
8559
|
+
proto.wechaty.puppet.RoomMemberSnapshotRequest.serializeBinaryToWriter = function(message, writer) {
|
|
8560
|
+
var f = undefined;
|
|
8561
|
+
f = message.getId();
|
|
8562
|
+
if (f.length > 0) {
|
|
8563
|
+
writer.writeString(
|
|
8564
|
+
1,
|
|
8565
|
+
f
|
|
8566
|
+
);
|
|
8567
|
+
}
|
|
8568
|
+
f = message.getRevision();
|
|
8569
|
+
if (f.length > 0) {
|
|
8570
|
+
writer.writeString(
|
|
8571
|
+
2,
|
|
8572
|
+
f
|
|
8573
|
+
);
|
|
8574
|
+
}
|
|
8575
|
+
f = message.getPageToken();
|
|
8576
|
+
if (f.length > 0) {
|
|
8577
|
+
writer.writeString(
|
|
8578
|
+
3,
|
|
8579
|
+
f
|
|
8580
|
+
);
|
|
8581
|
+
}
|
|
8582
|
+
f = message.getPageSize();
|
|
8583
|
+
if (f !== 0) {
|
|
8584
|
+
writer.writeUint32(
|
|
8585
|
+
4,
|
|
8586
|
+
f
|
|
8587
|
+
);
|
|
8588
|
+
}
|
|
8589
|
+
};
|
|
8590
|
+
|
|
8591
|
+
|
|
8592
|
+
/**
|
|
8593
|
+
* optional string id = 1;
|
|
8594
|
+
* @return {string}
|
|
8595
|
+
*/
|
|
8596
|
+
proto.wechaty.puppet.RoomMemberSnapshotRequest.prototype.getId = function() {
|
|
8597
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
8598
|
+
};
|
|
8599
|
+
|
|
8600
|
+
|
|
8601
|
+
/**
|
|
8602
|
+
* @param {string} value
|
|
8603
|
+
* @return {!proto.wechaty.puppet.RoomMemberSnapshotRequest} returns this
|
|
8604
|
+
*/
|
|
8605
|
+
proto.wechaty.puppet.RoomMemberSnapshotRequest.prototype.setId = function(value) {
|
|
8606
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
8607
|
+
};
|
|
8608
|
+
|
|
8609
|
+
|
|
8610
|
+
/**
|
|
8611
|
+
* optional string revision = 2;
|
|
8612
|
+
* @return {string}
|
|
8613
|
+
*/
|
|
8614
|
+
proto.wechaty.puppet.RoomMemberSnapshotRequest.prototype.getRevision = function() {
|
|
8615
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
8616
|
+
};
|
|
8617
|
+
|
|
8618
|
+
|
|
8619
|
+
/**
|
|
8620
|
+
* @param {string} value
|
|
8621
|
+
* @return {!proto.wechaty.puppet.RoomMemberSnapshotRequest} returns this
|
|
8622
|
+
*/
|
|
8623
|
+
proto.wechaty.puppet.RoomMemberSnapshotRequest.prototype.setRevision = function(value) {
|
|
8624
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
8625
|
+
};
|
|
8626
|
+
|
|
8627
|
+
|
|
8628
|
+
/**
|
|
8629
|
+
* optional string page_token = 3;
|
|
8630
|
+
* @return {string}
|
|
8631
|
+
*/
|
|
8632
|
+
proto.wechaty.puppet.RoomMemberSnapshotRequest.prototype.getPageToken = function() {
|
|
8633
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
8634
|
+
};
|
|
8635
|
+
|
|
8636
|
+
|
|
8637
|
+
/**
|
|
8638
|
+
* @param {string} value
|
|
8639
|
+
* @return {!proto.wechaty.puppet.RoomMemberSnapshotRequest} returns this
|
|
8640
|
+
*/
|
|
8641
|
+
proto.wechaty.puppet.RoomMemberSnapshotRequest.prototype.setPageToken = function(value) {
|
|
8642
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
8643
|
+
};
|
|
8644
|
+
|
|
8645
|
+
|
|
8646
|
+
/**
|
|
8647
|
+
* optional uint32 page_size = 4;
|
|
8648
|
+
* @return {number}
|
|
8649
|
+
*/
|
|
8650
|
+
proto.wechaty.puppet.RoomMemberSnapshotRequest.prototype.getPageSize = function() {
|
|
8651
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
8652
|
+
};
|
|
8653
|
+
|
|
8654
|
+
|
|
8655
|
+
/**
|
|
8656
|
+
* @param {number} value
|
|
8657
|
+
* @return {!proto.wechaty.puppet.RoomMemberSnapshotRequest} returns this
|
|
8658
|
+
*/
|
|
8659
|
+
proto.wechaty.puppet.RoomMemberSnapshotRequest.prototype.setPageSize = function(value) {
|
|
8660
|
+
return jspb.Message.setProto3IntField(this, 4, value);
|
|
8661
|
+
};
|
|
8662
|
+
|
|
8663
|
+
|
|
8664
|
+
|
|
8665
|
+
/**
|
|
8666
|
+
* List of repeated fields within this message type.
|
|
8667
|
+
* @private {!Array<number>}
|
|
8668
|
+
* @const
|
|
8669
|
+
*/
|
|
8670
|
+
proto.wechaty.puppet.RoomMemberSnapshotResponse.repeatedFields_ = [4];
|
|
8671
|
+
|
|
8672
|
+
|
|
8673
|
+
|
|
8674
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
8675
|
+
/**
|
|
8676
|
+
* Creates an object representation of this proto.
|
|
8677
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
8678
|
+
* Optional fields that are not set will be set to undefined.
|
|
8679
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
8680
|
+
* For the list of reserved names please see:
|
|
8681
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
8682
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
8683
|
+
* JSPB instance for transitional soy proto support:
|
|
8684
|
+
* http://goto/soy-param-migration
|
|
8685
|
+
* @return {!Object}
|
|
8686
|
+
*/
|
|
8687
|
+
proto.wechaty.puppet.RoomMemberSnapshotResponse.prototype.toObject = function(opt_includeInstance) {
|
|
8688
|
+
return proto.wechaty.puppet.RoomMemberSnapshotResponse.toObject(opt_includeInstance, this);
|
|
8689
|
+
};
|
|
8690
|
+
|
|
8691
|
+
|
|
8692
|
+
/**
|
|
8693
|
+
* Static version of the {@see toObject} method.
|
|
8694
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
8695
|
+
* the JSPB instance for transitional soy proto support:
|
|
8696
|
+
* http://goto/soy-param-migration
|
|
8697
|
+
* @param {!proto.wechaty.puppet.RoomMemberSnapshotResponse} msg The msg instance to transform.
|
|
8698
|
+
* @return {!Object}
|
|
8699
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8700
|
+
*/
|
|
8701
|
+
proto.wechaty.puppet.RoomMemberSnapshotResponse.toObject = function(includeInstance, msg) {
|
|
8702
|
+
var f, obj = {
|
|
8703
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
8704
|
+
revision: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
8705
|
+
loadedAt: (f = msg.getLoadedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
8706
|
+
membersList: jspb.Message.toObjectList(msg.getMembersList(),
|
|
8707
|
+
wechaty_puppet_room$member_pb.RoomMemberPayloadResponse.toObject, includeInstance),
|
|
8708
|
+
nextPageToken: jspb.Message.getFieldWithDefault(msg, 5, "")
|
|
8709
|
+
};
|
|
8710
|
+
|
|
8711
|
+
if (includeInstance) {
|
|
8712
|
+
obj.$jspbMessageInstance = msg;
|
|
8713
|
+
}
|
|
8714
|
+
return obj;
|
|
8715
|
+
};
|
|
8716
|
+
}
|
|
8717
|
+
|
|
8718
|
+
|
|
8719
|
+
/**
|
|
8720
|
+
* Deserializes binary data (in protobuf wire format).
|
|
8721
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
8722
|
+
* @return {!proto.wechaty.puppet.RoomMemberSnapshotResponse}
|
|
8723
|
+
*/
|
|
8724
|
+
proto.wechaty.puppet.RoomMemberSnapshotResponse.deserializeBinary = function(bytes) {
|
|
8725
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
8726
|
+
var msg = new proto.wechaty.puppet.RoomMemberSnapshotResponse;
|
|
8727
|
+
return proto.wechaty.puppet.RoomMemberSnapshotResponse.deserializeBinaryFromReader(msg, reader);
|
|
8728
|
+
};
|
|
8729
|
+
|
|
8730
|
+
|
|
8731
|
+
/**
|
|
8732
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
8733
|
+
* given reader into the given message object.
|
|
8734
|
+
* @param {!proto.wechaty.puppet.RoomMemberSnapshotResponse} msg The message object to deserialize into.
|
|
8735
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
8736
|
+
* @return {!proto.wechaty.puppet.RoomMemberSnapshotResponse}
|
|
8737
|
+
*/
|
|
8738
|
+
proto.wechaty.puppet.RoomMemberSnapshotResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
8739
|
+
while (reader.nextField()) {
|
|
8740
|
+
if (reader.isEndGroup()) {
|
|
8741
|
+
break;
|
|
8742
|
+
}
|
|
8743
|
+
var field = reader.getFieldNumber();
|
|
8744
|
+
switch (field) {
|
|
8745
|
+
case 1:
|
|
8746
|
+
var value = /** @type {string} */ (reader.readString());
|
|
8747
|
+
msg.setId(value);
|
|
8748
|
+
break;
|
|
8749
|
+
case 2:
|
|
8750
|
+
var value = /** @type {string} */ (reader.readString());
|
|
8751
|
+
msg.setRevision(value);
|
|
8752
|
+
break;
|
|
8753
|
+
case 3:
|
|
8754
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
8755
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
8756
|
+
msg.setLoadedAt(value);
|
|
8757
|
+
break;
|
|
8758
|
+
case 4:
|
|
8759
|
+
var value = new wechaty_puppet_room$member_pb.RoomMemberPayloadResponse;
|
|
8760
|
+
reader.readMessage(value,wechaty_puppet_room$member_pb.RoomMemberPayloadResponse.deserializeBinaryFromReader);
|
|
8761
|
+
msg.addMembers(value);
|
|
8762
|
+
break;
|
|
8763
|
+
case 5:
|
|
8764
|
+
var value = /** @type {string} */ (reader.readString());
|
|
8765
|
+
msg.setNextPageToken(value);
|
|
8766
|
+
break;
|
|
8767
|
+
default:
|
|
8768
|
+
reader.skipField();
|
|
8769
|
+
break;
|
|
8770
|
+
}
|
|
8771
|
+
}
|
|
8772
|
+
return msg;
|
|
8773
|
+
};
|
|
8774
|
+
|
|
8775
|
+
|
|
8776
|
+
/**
|
|
8777
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
8778
|
+
* @return {!Uint8Array}
|
|
8779
|
+
*/
|
|
8780
|
+
proto.wechaty.puppet.RoomMemberSnapshotResponse.prototype.serializeBinary = function() {
|
|
8781
|
+
var writer = new jspb.BinaryWriter();
|
|
8782
|
+
proto.wechaty.puppet.RoomMemberSnapshotResponse.serializeBinaryToWriter(this, writer);
|
|
8783
|
+
return writer.getResultBuffer();
|
|
8784
|
+
};
|
|
8785
|
+
|
|
8786
|
+
|
|
8787
|
+
/**
|
|
8788
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
8789
|
+
* format), writing to the given BinaryWriter.
|
|
8790
|
+
* @param {!proto.wechaty.puppet.RoomMemberSnapshotResponse} message
|
|
8791
|
+
* @param {!jspb.BinaryWriter} writer
|
|
8792
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8793
|
+
*/
|
|
8794
|
+
proto.wechaty.puppet.RoomMemberSnapshotResponse.serializeBinaryToWriter = function(message, writer) {
|
|
8795
|
+
var f = undefined;
|
|
8796
|
+
f = message.getId();
|
|
8797
|
+
if (f.length > 0) {
|
|
8798
|
+
writer.writeString(
|
|
8799
|
+
1,
|
|
8800
|
+
f
|
|
8801
|
+
);
|
|
8802
|
+
}
|
|
8803
|
+
f = message.getRevision();
|
|
8804
|
+
if (f.length > 0) {
|
|
8805
|
+
writer.writeString(
|
|
8806
|
+
2,
|
|
8807
|
+
f
|
|
8808
|
+
);
|
|
8809
|
+
}
|
|
8810
|
+
f = message.getLoadedAt();
|
|
8811
|
+
if (f != null) {
|
|
8812
|
+
writer.writeMessage(
|
|
8813
|
+
3,
|
|
8814
|
+
f,
|
|
8815
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
8816
|
+
);
|
|
8817
|
+
}
|
|
8818
|
+
f = message.getMembersList();
|
|
8819
|
+
if (f.length > 0) {
|
|
8820
|
+
writer.writeRepeatedMessage(
|
|
8821
|
+
4,
|
|
8822
|
+
f,
|
|
8823
|
+
wechaty_puppet_room$member_pb.RoomMemberPayloadResponse.serializeBinaryToWriter
|
|
8824
|
+
);
|
|
8825
|
+
}
|
|
8826
|
+
f = message.getNextPageToken();
|
|
8827
|
+
if (f.length > 0) {
|
|
8828
|
+
writer.writeString(
|
|
8829
|
+
5,
|
|
8830
|
+
f
|
|
8831
|
+
);
|
|
8832
|
+
}
|
|
8833
|
+
};
|
|
8834
|
+
|
|
8835
|
+
|
|
8836
|
+
/**
|
|
8837
|
+
* optional string id = 1;
|
|
8838
|
+
* @return {string}
|
|
8839
|
+
*/
|
|
8840
|
+
proto.wechaty.puppet.RoomMemberSnapshotResponse.prototype.getId = function() {
|
|
8841
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
8842
|
+
};
|
|
8843
|
+
|
|
8844
|
+
|
|
8845
|
+
/**
|
|
8846
|
+
* @param {string} value
|
|
8847
|
+
* @return {!proto.wechaty.puppet.RoomMemberSnapshotResponse} returns this
|
|
8848
|
+
*/
|
|
8849
|
+
proto.wechaty.puppet.RoomMemberSnapshotResponse.prototype.setId = function(value) {
|
|
8850
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
8851
|
+
};
|
|
8852
|
+
|
|
8853
|
+
|
|
8854
|
+
/**
|
|
8855
|
+
* optional string revision = 2;
|
|
8856
|
+
* @return {string}
|
|
8857
|
+
*/
|
|
8858
|
+
proto.wechaty.puppet.RoomMemberSnapshotResponse.prototype.getRevision = function() {
|
|
8859
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
8860
|
+
};
|
|
8861
|
+
|
|
8862
|
+
|
|
8863
|
+
/**
|
|
8864
|
+
* @param {string} value
|
|
8865
|
+
* @return {!proto.wechaty.puppet.RoomMemberSnapshotResponse} returns this
|
|
8866
|
+
*/
|
|
8867
|
+
proto.wechaty.puppet.RoomMemberSnapshotResponse.prototype.setRevision = function(value) {
|
|
8868
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
8869
|
+
};
|
|
8870
|
+
|
|
8871
|
+
|
|
8872
|
+
/**
|
|
8873
|
+
* optional google.protobuf.Timestamp loaded_at = 3;
|
|
8874
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
8875
|
+
*/
|
|
8876
|
+
proto.wechaty.puppet.RoomMemberSnapshotResponse.prototype.getLoadedAt = function() {
|
|
8877
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
8878
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
|
|
8879
|
+
};
|
|
8880
|
+
|
|
8881
|
+
|
|
8882
|
+
/**
|
|
8883
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
8884
|
+
* @return {!proto.wechaty.puppet.RoomMemberSnapshotResponse} returns this
|
|
8885
|
+
*/
|
|
8886
|
+
proto.wechaty.puppet.RoomMemberSnapshotResponse.prototype.setLoadedAt = function(value) {
|
|
8887
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
8888
|
+
};
|
|
8889
|
+
|
|
8890
|
+
|
|
8891
|
+
/**
|
|
8892
|
+
* Clears the message field making it undefined.
|
|
8893
|
+
* @return {!proto.wechaty.puppet.RoomMemberSnapshotResponse} returns this
|
|
8894
|
+
*/
|
|
8895
|
+
proto.wechaty.puppet.RoomMemberSnapshotResponse.prototype.clearLoadedAt = function() {
|
|
8896
|
+
return this.setLoadedAt(undefined);
|
|
8897
|
+
};
|
|
8898
|
+
|
|
8899
|
+
|
|
8900
|
+
/**
|
|
8901
|
+
* Returns whether this field is set.
|
|
8902
|
+
* @return {boolean}
|
|
8903
|
+
*/
|
|
8904
|
+
proto.wechaty.puppet.RoomMemberSnapshotResponse.prototype.hasLoadedAt = function() {
|
|
8905
|
+
return jspb.Message.getField(this, 3) != null;
|
|
8906
|
+
};
|
|
8907
|
+
|
|
8908
|
+
|
|
8909
|
+
/**
|
|
8910
|
+
* repeated RoomMemberPayloadResponse members = 4;
|
|
8911
|
+
* @return {!Array<!proto.wechaty.puppet.RoomMemberPayloadResponse>}
|
|
8912
|
+
*/
|
|
8913
|
+
proto.wechaty.puppet.RoomMemberSnapshotResponse.prototype.getMembersList = function() {
|
|
8914
|
+
return /** @type{!Array<!proto.wechaty.puppet.RoomMemberPayloadResponse>} */ (
|
|
8915
|
+
jspb.Message.getRepeatedWrapperField(this, wechaty_puppet_room$member_pb.RoomMemberPayloadResponse, 4));
|
|
8916
|
+
};
|
|
8917
|
+
|
|
8918
|
+
|
|
8919
|
+
/**
|
|
8920
|
+
* @param {!Array<!proto.wechaty.puppet.RoomMemberPayloadResponse>} value
|
|
8921
|
+
* @return {!proto.wechaty.puppet.RoomMemberSnapshotResponse} returns this
|
|
8922
|
+
*/
|
|
8923
|
+
proto.wechaty.puppet.RoomMemberSnapshotResponse.prototype.setMembersList = function(value) {
|
|
8924
|
+
return jspb.Message.setRepeatedWrapperField(this, 4, value);
|
|
8925
|
+
};
|
|
8926
|
+
|
|
8927
|
+
|
|
8928
|
+
/**
|
|
8929
|
+
* @param {!proto.wechaty.puppet.RoomMemberPayloadResponse=} opt_value
|
|
8930
|
+
* @param {number=} opt_index
|
|
8931
|
+
* @return {!proto.wechaty.puppet.RoomMemberPayloadResponse}
|
|
8932
|
+
*/
|
|
8933
|
+
proto.wechaty.puppet.RoomMemberSnapshotResponse.prototype.addMembers = function(opt_value, opt_index) {
|
|
8934
|
+
return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.wechaty.puppet.RoomMemberPayloadResponse, opt_index);
|
|
8935
|
+
};
|
|
8936
|
+
|
|
8937
|
+
|
|
8938
|
+
/**
|
|
8939
|
+
* Clears the list making it empty but non-null.
|
|
8940
|
+
* @return {!proto.wechaty.puppet.RoomMemberSnapshotResponse} returns this
|
|
8941
|
+
*/
|
|
8942
|
+
proto.wechaty.puppet.RoomMemberSnapshotResponse.prototype.clearMembersList = function() {
|
|
8943
|
+
return this.setMembersList([]);
|
|
8944
|
+
};
|
|
8945
|
+
|
|
8946
|
+
|
|
8947
|
+
/**
|
|
8948
|
+
* optional string next_page_token = 5;
|
|
8949
|
+
* @return {string}
|
|
8950
|
+
*/
|
|
8951
|
+
proto.wechaty.puppet.RoomMemberSnapshotResponse.prototype.getNextPageToken = function() {
|
|
8952
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
8953
|
+
};
|
|
8954
|
+
|
|
8955
|
+
|
|
8956
|
+
/**
|
|
8957
|
+
* @param {string} value
|
|
8958
|
+
* @return {!proto.wechaty.puppet.RoomMemberSnapshotResponse} returns this
|
|
8959
|
+
*/
|
|
8960
|
+
proto.wechaty.puppet.RoomMemberSnapshotResponse.prototype.setNextPageToken = function(value) {
|
|
8961
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
8962
|
+
};
|
|
8963
|
+
|
|
8964
|
+
|
|
8965
|
+
/**
|
|
8966
|
+
* @enum {number}
|
|
8967
|
+
*/
|
|
8968
|
+
proto.wechaty.puppet.RoomMemberLoadMode = {
|
|
8969
|
+
ROOM_MEMBER_LOAD_MODE_UNSPECIFIED: 0,
|
|
8970
|
+
ROOM_MEMBER_LOAD_MODE_NORMAL: 1,
|
|
8971
|
+
ROOM_MEMBER_LOAD_MODE_LAZY: 2
|
|
8972
|
+
};
|
|
8973
|
+
|
|
8974
|
+
/**
|
|
8975
|
+
* @enum {number}
|
|
8976
|
+
*/
|
|
8977
|
+
proto.wechaty.puppet.RoomMemberLoadStatus = {
|
|
8978
|
+
ROOM_MEMBER_LOAD_STATUS_UNSPECIFIED: 0,
|
|
8979
|
+
ROOM_MEMBER_LOAD_STATUS_PENDING: 1,
|
|
8980
|
+
ROOM_MEMBER_LOAD_STATUS_LOADING: 2,
|
|
8981
|
+
ROOM_MEMBER_LOAD_STATUS_LOADED: 3,
|
|
8982
|
+
ROOM_MEMBER_LOAD_STATUS_FAILED: 4
|
|
8983
|
+
};
|
|
8984
|
+
|
|
7568
8985
|
goog.object.extend(exports, proto.wechaty.puppet);
|