core-3nweb-client-lib 0.43.7 → 0.43.9
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/build/api-defs/files.d.ts +82 -4
- package/build/core/storage/synced/obj-files.d.ts +1 -0
- package/build/core/storage/synced/obj-files.js +16 -0
- package/build/core/storage/synced/obj-status.d.ts +1 -0
- package/build/core/storage/synced/obj-status.js +18 -0
- package/build/core/storage/synced/storage.d.ts +6 -2
- package/build/core/storage/synced/storage.js +12 -17
- package/build/core/storage/synced/upsyncer.d.ts +10 -1
- package/build/core/storage/synced/upsyncer.js +72 -9
- package/build/core-ipc/file.d.ts +27 -4
- package/build/core-ipc/file.js +90 -94
- package/build/core-ipc/fs.js +68 -132
- package/build/lib-client/fs-utils/files.js +6 -0
- package/build/lib-client/objs-on-disk/obj-on-disk.d.ts +1 -0
- package/build/lib-client/objs-on-disk/obj-on-disk.js +8 -1
- package/build/lib-client/xsp-fs/common.d.ts +13 -21
- package/build/lib-client/xsp-fs/common.js +4 -16
- package/build/lib-client/xsp-fs/file-node.d.ts +3 -2
- package/build/lib-client/xsp-fs/file-node.js +17 -11
- package/build/lib-client/xsp-fs/file.d.ts +5 -0
- package/build/lib-client/xsp-fs/file.js +26 -13
- package/build/lib-client/xsp-fs/folder-node.d.ts +7 -1
- package/build/lib-client/xsp-fs/folder-node.js +18 -10
- package/build/lib-client/xsp-fs/fs.d.ts +5 -0
- package/build/lib-client/xsp-fs/fs.js +33 -26
- package/build/lib-client/xsp-fs/link-node.d.ts +3 -0
- package/build/lib-client/xsp-fs/link-node.js +5 -1
- package/build/lib-client/xsp-fs/node-in-fs.d.ts +20 -6
- package/build/lib-client/xsp-fs/node-in-fs.js +69 -14
- package/build/lib-client/xsp-fs/node-persistence.d.ts +1 -0
- package/build/lib-client/xsp-fs/node-persistence.js +4 -0
- package/build/lib-common/big-endian.js +2 -2
- package/build/lib-common/processes/labelled-exec-pools.js +1 -3
- package/build/protos/asmail.proto.js +1614 -1588
- package/build/protos/file.proto.js +1258 -541
- package/build/protos/fs.proto.js +1459 -1433
- package/package.json +4 -4
- package/protos/file.proto +31 -15
- package/protos/fs.proto +13 -22
|
@@ -993,9 +993,9 @@ $root.file = (function() {
|
|
|
993
993
|
* Properties of an UploadingStateMsg.
|
|
994
994
|
* @memberof file
|
|
995
995
|
* @interface IUploadingStateMsg
|
|
996
|
-
* @property {
|
|
997
|
-
* @property {
|
|
998
|
-
* @property {
|
|
996
|
+
* @property {number|Long|null} [localVersion] UploadingStateMsg localVersion
|
|
997
|
+
* @property {number|Long|null} [remoteVersion] UploadingStateMsg remoteVersion
|
|
998
|
+
* @property {number|Long|null} [bytesLeftToUpload] UploadingStateMsg bytesLeftToUpload
|
|
999
999
|
* @property {boolean|null} [uploadStarted] UploadingStateMsg uploadStarted
|
|
1000
1000
|
*/
|
|
1001
1001
|
|
|
@@ -1016,27 +1016,27 @@ $root.file = (function() {
|
|
|
1016
1016
|
|
|
1017
1017
|
/**
|
|
1018
1018
|
* UploadingStateMsg localVersion.
|
|
1019
|
-
* @member {
|
|
1019
|
+
* @member {number|Long} localVersion
|
|
1020
1020
|
* @memberof file.UploadingStateMsg
|
|
1021
1021
|
* @instance
|
|
1022
1022
|
*/
|
|
1023
|
-
UploadingStateMsg.prototype.localVersion =
|
|
1023
|
+
UploadingStateMsg.prototype.localVersion = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
1024
1024
|
|
|
1025
1025
|
/**
|
|
1026
1026
|
* UploadingStateMsg remoteVersion.
|
|
1027
|
-
* @member {
|
|
1027
|
+
* @member {number|Long} remoteVersion
|
|
1028
1028
|
* @memberof file.UploadingStateMsg
|
|
1029
1029
|
* @instance
|
|
1030
1030
|
*/
|
|
1031
|
-
UploadingStateMsg.prototype.remoteVersion =
|
|
1031
|
+
UploadingStateMsg.prototype.remoteVersion = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
1032
1032
|
|
|
1033
1033
|
/**
|
|
1034
1034
|
* UploadingStateMsg bytesLeftToUpload.
|
|
1035
|
-
* @member {
|
|
1035
|
+
* @member {number|Long} bytesLeftToUpload
|
|
1036
1036
|
* @memberof file.UploadingStateMsg
|
|
1037
1037
|
* @instance
|
|
1038
1038
|
*/
|
|
1039
|
-
UploadingStateMsg.prototype.bytesLeftToUpload =
|
|
1039
|
+
UploadingStateMsg.prototype.bytesLeftToUpload = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
1040
1040
|
|
|
1041
1041
|
/**
|
|
1042
1042
|
* UploadingStateMsg uploadStarted.
|
|
@@ -1071,11 +1071,11 @@ $root.file = (function() {
|
|
|
1071
1071
|
if (!writer)
|
|
1072
1072
|
writer = $Writer.create();
|
|
1073
1073
|
if (message.localVersion != null && Object.hasOwnProperty.call(message, "localVersion"))
|
|
1074
|
-
|
|
1074
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.localVersion);
|
|
1075
1075
|
if (message.remoteVersion != null && Object.hasOwnProperty.call(message, "remoteVersion"))
|
|
1076
|
-
|
|
1076
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.remoteVersion);
|
|
1077
1077
|
if (message.bytesLeftToUpload != null && Object.hasOwnProperty.call(message, "bytesLeftToUpload"))
|
|
1078
|
-
|
|
1078
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.bytesLeftToUpload);
|
|
1079
1079
|
if (message.uploadStarted != null && Object.hasOwnProperty.call(message, "uploadStarted"))
|
|
1080
1080
|
writer.uint32(/* id 4, wireType 0 =*/32).bool(message.uploadStarted);
|
|
1081
1081
|
return writer;
|
|
@@ -1115,15 +1115,15 @@ $root.file = (function() {
|
|
|
1115
1115
|
break;
|
|
1116
1116
|
switch (tag >>> 3) {
|
|
1117
1117
|
case 1: {
|
|
1118
|
-
message.localVersion =
|
|
1118
|
+
message.localVersion = reader.uint64();
|
|
1119
1119
|
break;
|
|
1120
1120
|
}
|
|
1121
1121
|
case 2: {
|
|
1122
|
-
message.remoteVersion =
|
|
1122
|
+
message.remoteVersion = reader.uint64();
|
|
1123
1123
|
break;
|
|
1124
1124
|
}
|
|
1125
1125
|
case 3: {
|
|
1126
|
-
message.bytesLeftToUpload =
|
|
1126
|
+
message.bytesLeftToUpload = reader.uint64();
|
|
1127
1127
|
break;
|
|
1128
1128
|
}
|
|
1129
1129
|
case 4: {
|
|
@@ -1165,21 +1165,15 @@ $root.file = (function() {
|
|
|
1165
1165
|
UploadingStateMsg.verify = function verify(message) {
|
|
1166
1166
|
if (typeof message !== "object" || message === null)
|
|
1167
1167
|
return "object expected";
|
|
1168
|
-
if (message.localVersion != null && message.hasOwnProperty("localVersion"))
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
if (
|
|
1176
|
-
return "
|
|
1177
|
-
}
|
|
1178
|
-
if (message.bytesLeftToUpload != null && message.hasOwnProperty("bytesLeftToUpload")) {
|
|
1179
|
-
var error = $root.common.UInt64Value.verify(message.bytesLeftToUpload);
|
|
1180
|
-
if (error)
|
|
1181
|
-
return "bytesLeftToUpload." + error;
|
|
1182
|
-
}
|
|
1168
|
+
if (message.localVersion != null && message.hasOwnProperty("localVersion"))
|
|
1169
|
+
if (!$util.isInteger(message.localVersion) && !(message.localVersion && $util.isInteger(message.localVersion.low) && $util.isInteger(message.localVersion.high)))
|
|
1170
|
+
return "localVersion: integer|Long expected";
|
|
1171
|
+
if (message.remoteVersion != null && message.hasOwnProperty("remoteVersion"))
|
|
1172
|
+
if (!$util.isInteger(message.remoteVersion) && !(message.remoteVersion && $util.isInteger(message.remoteVersion.low) && $util.isInteger(message.remoteVersion.high)))
|
|
1173
|
+
return "remoteVersion: integer|Long expected";
|
|
1174
|
+
if (message.bytesLeftToUpload != null && message.hasOwnProperty("bytesLeftToUpload"))
|
|
1175
|
+
if (!$util.isInteger(message.bytesLeftToUpload) && !(message.bytesLeftToUpload && $util.isInteger(message.bytesLeftToUpload.low) && $util.isInteger(message.bytesLeftToUpload.high)))
|
|
1176
|
+
return "bytesLeftToUpload: integer|Long expected";
|
|
1183
1177
|
if (message.uploadStarted != null && message.hasOwnProperty("uploadStarted"))
|
|
1184
1178
|
if (typeof message.uploadStarted !== "boolean")
|
|
1185
1179
|
return "uploadStarted: boolean expected";
|
|
@@ -1198,21 +1192,33 @@ $root.file = (function() {
|
|
|
1198
1192
|
if (object instanceof $root.file.UploadingStateMsg)
|
|
1199
1193
|
return object;
|
|
1200
1194
|
var message = new $root.file.UploadingStateMsg();
|
|
1201
|
-
if (object.localVersion != null)
|
|
1202
|
-
if (
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1195
|
+
if (object.localVersion != null)
|
|
1196
|
+
if ($util.Long)
|
|
1197
|
+
(message.localVersion = $util.Long.fromValue(object.localVersion)).unsigned = true;
|
|
1198
|
+
else if (typeof object.localVersion === "string")
|
|
1199
|
+
message.localVersion = parseInt(object.localVersion, 10);
|
|
1200
|
+
else if (typeof object.localVersion === "number")
|
|
1201
|
+
message.localVersion = object.localVersion;
|
|
1202
|
+
else if (typeof object.localVersion === "object")
|
|
1203
|
+
message.localVersion = new $util.LongBits(object.localVersion.low >>> 0, object.localVersion.high >>> 0).toNumber(true);
|
|
1204
|
+
if (object.remoteVersion != null)
|
|
1205
|
+
if ($util.Long)
|
|
1206
|
+
(message.remoteVersion = $util.Long.fromValue(object.remoteVersion)).unsigned = true;
|
|
1207
|
+
else if (typeof object.remoteVersion === "string")
|
|
1208
|
+
message.remoteVersion = parseInt(object.remoteVersion, 10);
|
|
1209
|
+
else if (typeof object.remoteVersion === "number")
|
|
1210
|
+
message.remoteVersion = object.remoteVersion;
|
|
1211
|
+
else if (typeof object.remoteVersion === "object")
|
|
1212
|
+
message.remoteVersion = new $util.LongBits(object.remoteVersion.low >>> 0, object.remoteVersion.high >>> 0).toNumber(true);
|
|
1213
|
+
if (object.bytesLeftToUpload != null)
|
|
1214
|
+
if ($util.Long)
|
|
1215
|
+
(message.bytesLeftToUpload = $util.Long.fromValue(object.bytesLeftToUpload)).unsigned = true;
|
|
1216
|
+
else if (typeof object.bytesLeftToUpload === "string")
|
|
1217
|
+
message.bytesLeftToUpload = parseInt(object.bytesLeftToUpload, 10);
|
|
1218
|
+
else if (typeof object.bytesLeftToUpload === "number")
|
|
1219
|
+
message.bytesLeftToUpload = object.bytesLeftToUpload;
|
|
1220
|
+
else if (typeof object.bytesLeftToUpload === "object")
|
|
1221
|
+
message.bytesLeftToUpload = new $util.LongBits(object.bytesLeftToUpload.low >>> 0, object.bytesLeftToUpload.high >>> 0).toNumber(true);
|
|
1216
1222
|
if (object.uploadStarted != null)
|
|
1217
1223
|
message.uploadStarted = Boolean(object.uploadStarted);
|
|
1218
1224
|
return message;
|
|
@@ -1232,17 +1238,38 @@ $root.file = (function() {
|
|
|
1232
1238
|
options = {};
|
|
1233
1239
|
var object = {};
|
|
1234
1240
|
if (options.defaults) {
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1241
|
+
if ($util.Long) {
|
|
1242
|
+
var long = new $util.Long(0, 0, true);
|
|
1243
|
+
object.localVersion = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
1244
|
+
} else
|
|
1245
|
+
object.localVersion = options.longs === String ? "0" : 0;
|
|
1246
|
+
if ($util.Long) {
|
|
1247
|
+
var long = new $util.Long(0, 0, true);
|
|
1248
|
+
object.remoteVersion = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
1249
|
+
} else
|
|
1250
|
+
object.remoteVersion = options.longs === String ? "0" : 0;
|
|
1251
|
+
if ($util.Long) {
|
|
1252
|
+
var long = new $util.Long(0, 0, true);
|
|
1253
|
+
object.bytesLeftToUpload = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
1254
|
+
} else
|
|
1255
|
+
object.bytesLeftToUpload = options.longs === String ? "0" : 0;
|
|
1238
1256
|
object.uploadStarted = false;
|
|
1239
1257
|
}
|
|
1240
1258
|
if (message.localVersion != null && message.hasOwnProperty("localVersion"))
|
|
1241
|
-
|
|
1259
|
+
if (typeof message.localVersion === "number")
|
|
1260
|
+
object.localVersion = options.longs === String ? String(message.localVersion) : message.localVersion;
|
|
1261
|
+
else
|
|
1262
|
+
object.localVersion = options.longs === String ? $util.Long.prototype.toString.call(message.localVersion) : options.longs === Number ? new $util.LongBits(message.localVersion.low >>> 0, message.localVersion.high >>> 0).toNumber(true) : message.localVersion;
|
|
1242
1263
|
if (message.remoteVersion != null && message.hasOwnProperty("remoteVersion"))
|
|
1243
|
-
|
|
1264
|
+
if (typeof message.remoteVersion === "number")
|
|
1265
|
+
object.remoteVersion = options.longs === String ? String(message.remoteVersion) : message.remoteVersion;
|
|
1266
|
+
else
|
|
1267
|
+
object.remoteVersion = options.longs === String ? $util.Long.prototype.toString.call(message.remoteVersion) : options.longs === Number ? new $util.LongBits(message.remoteVersion.low >>> 0, message.remoteVersion.high >>> 0).toNumber(true) : message.remoteVersion;
|
|
1244
1268
|
if (message.bytesLeftToUpload != null && message.hasOwnProperty("bytesLeftToUpload"))
|
|
1245
|
-
|
|
1269
|
+
if (typeof message.bytesLeftToUpload === "number")
|
|
1270
|
+
object.bytesLeftToUpload = options.longs === String ? String(message.bytesLeftToUpload) : message.bytesLeftToUpload;
|
|
1271
|
+
else
|
|
1272
|
+
object.bytesLeftToUpload = options.longs === String ? $util.Long.prototype.toString.call(message.bytesLeftToUpload) : options.longs === Number ? new $util.LongBits(message.bytesLeftToUpload.low >>> 0, message.bytesLeftToUpload.high >>> 0).toNumber(true) : message.bytesLeftToUpload;
|
|
1246
1273
|
if (message.uploadStarted != null && message.hasOwnProperty("uploadStarted"))
|
|
1247
1274
|
object.uploadStarted = message.uploadStarted;
|
|
1248
1275
|
return object;
|
|
@@ -1291,7 +1318,8 @@ $root.file = (function() {
|
|
|
1291
1318
|
* @property {common.IUInt64Value|null} [mtime] StatsMsg mtime
|
|
1292
1319
|
* @property {common.IUInt64Value|null} [ctime] StatsMsg ctime
|
|
1293
1320
|
* @property {common.IUInt64Value|null} [version] StatsMsg version
|
|
1294
|
-
* @property {
|
|
1321
|
+
* @property {common.IUInt64Value|null} [bytesNeedDownload] StatsMsg bytesNeedDownload
|
|
1322
|
+
* @property {common.IStringValue|null} [versionSyncBranch] StatsMsg versionSyncBranch
|
|
1295
1323
|
*/
|
|
1296
1324
|
|
|
1297
1325
|
/**
|
|
@@ -1374,12 +1402,20 @@ $root.file = (function() {
|
|
|
1374
1402
|
StatsMsg.prototype.version = null;
|
|
1375
1403
|
|
|
1376
1404
|
/**
|
|
1377
|
-
* StatsMsg
|
|
1378
|
-
* @member {
|
|
1405
|
+
* StatsMsg bytesNeedDownload.
|
|
1406
|
+
* @member {common.IUInt64Value|null|undefined} bytesNeedDownload
|
|
1407
|
+
* @memberof file.StatsMsg
|
|
1408
|
+
* @instance
|
|
1409
|
+
*/
|
|
1410
|
+
StatsMsg.prototype.bytesNeedDownload = null;
|
|
1411
|
+
|
|
1412
|
+
/**
|
|
1413
|
+
* StatsMsg versionSyncBranch.
|
|
1414
|
+
* @member {common.IStringValue|null|undefined} versionSyncBranch
|
|
1379
1415
|
* @memberof file.StatsMsg
|
|
1380
1416
|
* @instance
|
|
1381
1417
|
*/
|
|
1382
|
-
StatsMsg.prototype.
|
|
1418
|
+
StatsMsg.prototype.versionSyncBranch = null;
|
|
1383
1419
|
|
|
1384
1420
|
/**
|
|
1385
1421
|
* Creates a new StatsMsg instance using the specified properties.
|
|
@@ -1421,8 +1457,10 @@ $root.file = (function() {
|
|
|
1421
1457
|
$root.common.UInt64Value.encode(message.ctime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
1422
1458
|
if (message.version != null && Object.hasOwnProperty.call(message, "version"))
|
|
1423
1459
|
$root.common.UInt64Value.encode(message.version, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
|
1424
|
-
if (message.
|
|
1425
|
-
$root.
|
|
1460
|
+
if (message.bytesNeedDownload != null && Object.hasOwnProperty.call(message, "bytesNeedDownload"))
|
|
1461
|
+
$root.common.UInt64Value.encode(message.bytesNeedDownload, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
|
|
1462
|
+
if (message.versionSyncBranch != null && Object.hasOwnProperty.call(message, "versionSyncBranch"))
|
|
1463
|
+
$root.common.StringValue.encode(message.versionSyncBranch, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
1426
1464
|
return writer;
|
|
1427
1465
|
};
|
|
1428
1466
|
|
|
@@ -1492,7 +1530,11 @@ $root.file = (function() {
|
|
|
1492
1530
|
break;
|
|
1493
1531
|
}
|
|
1494
1532
|
case 9: {
|
|
1495
|
-
message.
|
|
1533
|
+
message.bytesNeedDownload = $root.common.UInt64Value.decode(reader, reader.uint32());
|
|
1534
|
+
break;
|
|
1535
|
+
}
|
|
1536
|
+
case 10: {
|
|
1537
|
+
message.versionSyncBranch = $root.common.StringValue.decode(reader, reader.uint32());
|
|
1496
1538
|
break;
|
|
1497
1539
|
}
|
|
1498
1540
|
default:
|
|
@@ -1568,10 +1610,15 @@ $root.file = (function() {
|
|
|
1568
1610
|
if (error)
|
|
1569
1611
|
return "version." + error;
|
|
1570
1612
|
}
|
|
1571
|
-
if (message.
|
|
1572
|
-
var error = $root.
|
|
1613
|
+
if (message.bytesNeedDownload != null && message.hasOwnProperty("bytesNeedDownload")) {
|
|
1614
|
+
var error = $root.common.UInt64Value.verify(message.bytesNeedDownload);
|
|
1615
|
+
if (error)
|
|
1616
|
+
return "bytesNeedDownload." + error;
|
|
1617
|
+
}
|
|
1618
|
+
if (message.versionSyncBranch != null && message.hasOwnProperty("versionSyncBranch")) {
|
|
1619
|
+
var error = $root.common.StringValue.verify(message.versionSyncBranch);
|
|
1573
1620
|
if (error)
|
|
1574
|
-
return "
|
|
1621
|
+
return "versionSyncBranch." + error;
|
|
1575
1622
|
}
|
|
1576
1623
|
return null;
|
|
1577
1624
|
};
|
|
@@ -1625,10 +1672,15 @@ $root.file = (function() {
|
|
|
1625
1672
|
throw TypeError(".file.StatsMsg.version: object expected");
|
|
1626
1673
|
message.version = $root.common.UInt64Value.fromObject(object.version);
|
|
1627
1674
|
}
|
|
1628
|
-
if (object.
|
|
1629
|
-
if (typeof object.
|
|
1630
|
-
throw TypeError(".file.StatsMsg.
|
|
1631
|
-
message.
|
|
1675
|
+
if (object.bytesNeedDownload != null) {
|
|
1676
|
+
if (typeof object.bytesNeedDownload !== "object")
|
|
1677
|
+
throw TypeError(".file.StatsMsg.bytesNeedDownload: object expected");
|
|
1678
|
+
message.bytesNeedDownload = $root.common.UInt64Value.fromObject(object.bytesNeedDownload);
|
|
1679
|
+
}
|
|
1680
|
+
if (object.versionSyncBranch != null) {
|
|
1681
|
+
if (typeof object.versionSyncBranch !== "object")
|
|
1682
|
+
throw TypeError(".file.StatsMsg.versionSyncBranch: object expected");
|
|
1683
|
+
message.versionSyncBranch = $root.common.StringValue.fromObject(object.versionSyncBranch);
|
|
1632
1684
|
}
|
|
1633
1685
|
return message;
|
|
1634
1686
|
};
|
|
@@ -1655,7 +1707,8 @@ $root.file = (function() {
|
|
|
1655
1707
|
object.mtime = null;
|
|
1656
1708
|
object.ctime = null;
|
|
1657
1709
|
object.version = null;
|
|
1658
|
-
object.
|
|
1710
|
+
object.bytesNeedDownload = null;
|
|
1711
|
+
object.versionSyncBranch = null;
|
|
1659
1712
|
}
|
|
1660
1713
|
if (message.isFile != null && message.hasOwnProperty("isFile"))
|
|
1661
1714
|
object.isFile = $root.common.BooleanValue.toObject(message.isFile, options);
|
|
@@ -1673,8 +1726,10 @@ $root.file = (function() {
|
|
|
1673
1726
|
object.ctime = $root.common.UInt64Value.toObject(message.ctime, options);
|
|
1674
1727
|
if (message.version != null && message.hasOwnProperty("version"))
|
|
1675
1728
|
object.version = $root.common.UInt64Value.toObject(message.version, options);
|
|
1676
|
-
if (message.
|
|
1677
|
-
object.
|
|
1729
|
+
if (message.bytesNeedDownload != null && message.hasOwnProperty("bytesNeedDownload"))
|
|
1730
|
+
object.bytesNeedDownload = $root.common.UInt64Value.toObject(message.bytesNeedDownload, options);
|
|
1731
|
+
if (message.versionSyncBranch != null && message.hasOwnProperty("versionSyncBranch"))
|
|
1732
|
+
object.versionSyncBranch = $root.common.StringValue.toObject(message.versionSyncBranch, options);
|
|
1678
1733
|
return object;
|
|
1679
1734
|
};
|
|
1680
1735
|
|
|
@@ -2628,29 +2683,25 @@ $root.file = (function() {
|
|
|
2628
2683
|
return ReadBytesReplyBody;
|
|
2629
2684
|
})();
|
|
2630
2685
|
|
|
2631
|
-
file.
|
|
2686
|
+
file.VersionedReadFlags = (function() {
|
|
2632
2687
|
|
|
2633
2688
|
/**
|
|
2634
|
-
* Properties of a
|
|
2689
|
+
* Properties of a VersionedReadFlags.
|
|
2635
2690
|
* @memberof file
|
|
2636
|
-
* @interface
|
|
2637
|
-
* @property {
|
|
2638
|
-
* @property {
|
|
2639
|
-
* @property {common.IStringValue|null} [src] FileEventMsg src
|
|
2640
|
-
* @property {common.IUInt64Value|null} [newVersion] FileEventMsg newVersion
|
|
2641
|
-
* @property {common.IUInt64Value|null} [removedArchVer] FileEventMsg removedArchVer
|
|
2642
|
-
* @property {common.IUInt64Value|null} [archivedVersion] FileEventMsg archivedVersion
|
|
2691
|
+
* @interface IVersionedReadFlags
|
|
2692
|
+
* @property {common.IUInt64Value|null} [archivedVersion] VersionedReadFlags archivedVersion
|
|
2693
|
+
* @property {common.IUInt64Value|null} [remoteVersion] VersionedReadFlags remoteVersion
|
|
2643
2694
|
*/
|
|
2644
2695
|
|
|
2645
2696
|
/**
|
|
2646
|
-
* Constructs a new
|
|
2697
|
+
* Constructs a new VersionedReadFlags.
|
|
2647
2698
|
* @memberof file
|
|
2648
|
-
* @classdesc Represents a
|
|
2649
|
-
* @implements
|
|
2699
|
+
* @classdesc Represents a VersionedReadFlags.
|
|
2700
|
+
* @implements IVersionedReadFlags
|
|
2650
2701
|
* @constructor
|
|
2651
|
-
* @param {file.
|
|
2702
|
+
* @param {file.IVersionedReadFlags=} [properties] Properties to set
|
|
2652
2703
|
*/
|
|
2653
|
-
function
|
|
2704
|
+
function VersionedReadFlags(properties) {
|
|
2654
2705
|
if (properties)
|
|
2655
2706
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
2656
2707
|
if (properties[keys[i]] != null)
|
|
@@ -2658,147 +2709,91 @@ $root.file = (function() {
|
|
|
2658
2709
|
}
|
|
2659
2710
|
|
|
2660
2711
|
/**
|
|
2661
|
-
*
|
|
2662
|
-
* @member {
|
|
2663
|
-
* @memberof file.
|
|
2664
|
-
* @instance
|
|
2665
|
-
*/
|
|
2666
|
-
FileEventMsg.prototype.type = "";
|
|
2667
|
-
|
|
2668
|
-
/**
|
|
2669
|
-
* FileEventMsg path.
|
|
2670
|
-
* @member {string} path
|
|
2671
|
-
* @memberof file.FileEventMsg
|
|
2672
|
-
* @instance
|
|
2673
|
-
*/
|
|
2674
|
-
FileEventMsg.prototype.path = "";
|
|
2675
|
-
|
|
2676
|
-
/**
|
|
2677
|
-
* FileEventMsg src.
|
|
2678
|
-
* @member {common.IStringValue|null|undefined} src
|
|
2679
|
-
* @memberof file.FileEventMsg
|
|
2680
|
-
* @instance
|
|
2681
|
-
*/
|
|
2682
|
-
FileEventMsg.prototype.src = null;
|
|
2683
|
-
|
|
2684
|
-
/**
|
|
2685
|
-
* FileEventMsg newVersion.
|
|
2686
|
-
* @member {common.IUInt64Value|null|undefined} newVersion
|
|
2687
|
-
* @memberof file.FileEventMsg
|
|
2688
|
-
* @instance
|
|
2689
|
-
*/
|
|
2690
|
-
FileEventMsg.prototype.newVersion = null;
|
|
2691
|
-
|
|
2692
|
-
/**
|
|
2693
|
-
* FileEventMsg removedArchVer.
|
|
2694
|
-
* @member {common.IUInt64Value|null|undefined} removedArchVer
|
|
2695
|
-
* @memberof file.FileEventMsg
|
|
2712
|
+
* VersionedReadFlags archivedVersion.
|
|
2713
|
+
* @member {common.IUInt64Value|null|undefined} archivedVersion
|
|
2714
|
+
* @memberof file.VersionedReadFlags
|
|
2696
2715
|
* @instance
|
|
2697
2716
|
*/
|
|
2698
|
-
|
|
2717
|
+
VersionedReadFlags.prototype.archivedVersion = null;
|
|
2699
2718
|
|
|
2700
2719
|
/**
|
|
2701
|
-
*
|
|
2702
|
-
* @member {common.IUInt64Value|null|undefined}
|
|
2703
|
-
* @memberof file.
|
|
2720
|
+
* VersionedReadFlags remoteVersion.
|
|
2721
|
+
* @member {common.IUInt64Value|null|undefined} remoteVersion
|
|
2722
|
+
* @memberof file.VersionedReadFlags
|
|
2704
2723
|
* @instance
|
|
2705
2724
|
*/
|
|
2706
|
-
|
|
2725
|
+
VersionedReadFlags.prototype.remoteVersion = null;
|
|
2707
2726
|
|
|
2708
2727
|
/**
|
|
2709
|
-
* Creates a new
|
|
2728
|
+
* Creates a new VersionedReadFlags instance using the specified properties.
|
|
2710
2729
|
* @function create
|
|
2711
|
-
* @memberof file.
|
|
2730
|
+
* @memberof file.VersionedReadFlags
|
|
2712
2731
|
* @static
|
|
2713
|
-
* @param {file.
|
|
2714
|
-
* @returns {file.
|
|
2732
|
+
* @param {file.IVersionedReadFlags=} [properties] Properties to set
|
|
2733
|
+
* @returns {file.VersionedReadFlags} VersionedReadFlags instance
|
|
2715
2734
|
*/
|
|
2716
|
-
|
|
2717
|
-
return new
|
|
2735
|
+
VersionedReadFlags.create = function create(properties) {
|
|
2736
|
+
return new VersionedReadFlags(properties);
|
|
2718
2737
|
};
|
|
2719
2738
|
|
|
2720
2739
|
/**
|
|
2721
|
-
* Encodes the specified
|
|
2740
|
+
* Encodes the specified VersionedReadFlags message. Does not implicitly {@link file.VersionedReadFlags.verify|verify} messages.
|
|
2722
2741
|
* @function encode
|
|
2723
|
-
* @memberof file.
|
|
2742
|
+
* @memberof file.VersionedReadFlags
|
|
2724
2743
|
* @static
|
|
2725
|
-
* @param {file.
|
|
2744
|
+
* @param {file.IVersionedReadFlags} message VersionedReadFlags message or plain object to encode
|
|
2726
2745
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2727
2746
|
* @returns {$protobuf.Writer} Writer
|
|
2728
2747
|
*/
|
|
2729
|
-
|
|
2748
|
+
VersionedReadFlags.encode = function encode(message, writer) {
|
|
2730
2749
|
if (!writer)
|
|
2731
2750
|
writer = $Writer.create();
|
|
2732
|
-
if (message.type != null && Object.hasOwnProperty.call(message, "type"))
|
|
2733
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.type);
|
|
2734
|
-
if (message.path != null && Object.hasOwnProperty.call(message, "path"))
|
|
2735
|
-
writer.uint32(/* id 2, wireType 2 =*/18).string(message.path);
|
|
2736
|
-
if (message.src != null && Object.hasOwnProperty.call(message, "src"))
|
|
2737
|
-
$root.common.StringValue.encode(message.src, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
2738
|
-
if (message.newVersion != null && Object.hasOwnProperty.call(message, "newVersion"))
|
|
2739
|
-
$root.common.UInt64Value.encode(message.newVersion, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
2740
|
-
if (message.removedArchVer != null && Object.hasOwnProperty.call(message, "removedArchVer"))
|
|
2741
|
-
$root.common.UInt64Value.encode(message.removedArchVer, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
2742
2751
|
if (message.archivedVersion != null && Object.hasOwnProperty.call(message, "archivedVersion"))
|
|
2743
|
-
$root.common.UInt64Value.encode(message.archivedVersion, writer.uint32(/* id
|
|
2752
|
+
$root.common.UInt64Value.encode(message.archivedVersion, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
2753
|
+
if (message.remoteVersion != null && Object.hasOwnProperty.call(message, "remoteVersion"))
|
|
2754
|
+
$root.common.UInt64Value.encode(message.remoteVersion, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
2744
2755
|
return writer;
|
|
2745
2756
|
};
|
|
2746
2757
|
|
|
2747
2758
|
/**
|
|
2748
|
-
* Encodes the specified
|
|
2759
|
+
* Encodes the specified VersionedReadFlags message, length delimited. Does not implicitly {@link file.VersionedReadFlags.verify|verify} messages.
|
|
2749
2760
|
* @function encodeDelimited
|
|
2750
|
-
* @memberof file.
|
|
2761
|
+
* @memberof file.VersionedReadFlags
|
|
2751
2762
|
* @static
|
|
2752
|
-
* @param {file.
|
|
2763
|
+
* @param {file.IVersionedReadFlags} message VersionedReadFlags message or plain object to encode
|
|
2753
2764
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2754
2765
|
* @returns {$protobuf.Writer} Writer
|
|
2755
2766
|
*/
|
|
2756
|
-
|
|
2767
|
+
VersionedReadFlags.encodeDelimited = function encodeDelimited(message, writer) {
|
|
2757
2768
|
return this.encode(message, writer).ldelim();
|
|
2758
2769
|
};
|
|
2759
2770
|
|
|
2760
2771
|
/**
|
|
2761
|
-
* Decodes a
|
|
2772
|
+
* Decodes a VersionedReadFlags message from the specified reader or buffer.
|
|
2762
2773
|
* @function decode
|
|
2763
|
-
* @memberof file.
|
|
2774
|
+
* @memberof file.VersionedReadFlags
|
|
2764
2775
|
* @static
|
|
2765
2776
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
2766
2777
|
* @param {number} [length] Message length if known beforehand
|
|
2767
|
-
* @returns {file.
|
|
2778
|
+
* @returns {file.VersionedReadFlags} VersionedReadFlags
|
|
2768
2779
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2769
2780
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2770
2781
|
*/
|
|
2771
|
-
|
|
2782
|
+
VersionedReadFlags.decode = function decode(reader, length, error) {
|
|
2772
2783
|
if (!(reader instanceof $Reader))
|
|
2773
2784
|
reader = $Reader.create(reader);
|
|
2774
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.
|
|
2785
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.VersionedReadFlags();
|
|
2775
2786
|
while (reader.pos < end) {
|
|
2776
2787
|
var tag = reader.uint32();
|
|
2777
2788
|
if (tag === error)
|
|
2778
2789
|
break;
|
|
2779
2790
|
switch (tag >>> 3) {
|
|
2780
2791
|
case 1: {
|
|
2781
|
-
message.
|
|
2792
|
+
message.archivedVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
|
|
2782
2793
|
break;
|
|
2783
2794
|
}
|
|
2784
2795
|
case 2: {
|
|
2785
|
-
message.
|
|
2786
|
-
break;
|
|
2787
|
-
}
|
|
2788
|
-
case 3: {
|
|
2789
|
-
message.src = $root.common.StringValue.decode(reader, reader.uint32());
|
|
2790
|
-
break;
|
|
2791
|
-
}
|
|
2792
|
-
case 4: {
|
|
2793
|
-
message.newVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
|
|
2794
|
-
break;
|
|
2795
|
-
}
|
|
2796
|
-
case 5: {
|
|
2797
|
-
message.removedArchVer = $root.common.UInt64Value.decode(reader, reader.uint32());
|
|
2798
|
-
break;
|
|
2799
|
-
}
|
|
2800
|
-
case 6: {
|
|
2801
|
-
message.archivedVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
|
|
2796
|
+
message.remoteVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
|
|
2802
2797
|
break;
|
|
2803
2798
|
}
|
|
2804
2799
|
default:
|
|
@@ -2810,184 +2805,141 @@ $root.file = (function() {
|
|
|
2810
2805
|
};
|
|
2811
2806
|
|
|
2812
2807
|
/**
|
|
2813
|
-
* Decodes a
|
|
2808
|
+
* Decodes a VersionedReadFlags message from the specified reader or buffer, length delimited.
|
|
2814
2809
|
* @function decodeDelimited
|
|
2815
|
-
* @memberof file.
|
|
2810
|
+
* @memberof file.VersionedReadFlags
|
|
2816
2811
|
* @static
|
|
2817
2812
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
2818
|
-
* @returns {file.
|
|
2813
|
+
* @returns {file.VersionedReadFlags} VersionedReadFlags
|
|
2819
2814
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2820
2815
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2821
2816
|
*/
|
|
2822
|
-
|
|
2817
|
+
VersionedReadFlags.decodeDelimited = function decodeDelimited(reader) {
|
|
2823
2818
|
if (!(reader instanceof $Reader))
|
|
2824
2819
|
reader = new $Reader(reader);
|
|
2825
2820
|
return this.decode(reader, reader.uint32());
|
|
2826
2821
|
};
|
|
2827
2822
|
|
|
2828
2823
|
/**
|
|
2829
|
-
* Verifies a
|
|
2824
|
+
* Verifies a VersionedReadFlags message.
|
|
2830
2825
|
* @function verify
|
|
2831
|
-
* @memberof file.
|
|
2826
|
+
* @memberof file.VersionedReadFlags
|
|
2832
2827
|
* @static
|
|
2833
2828
|
* @param {Object.<string,*>} message Plain object to verify
|
|
2834
2829
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
2835
2830
|
*/
|
|
2836
|
-
|
|
2831
|
+
VersionedReadFlags.verify = function verify(message) {
|
|
2837
2832
|
if (typeof message !== "object" || message === null)
|
|
2838
2833
|
return "object expected";
|
|
2839
|
-
if (message.type != null && message.hasOwnProperty("type"))
|
|
2840
|
-
if (!$util.isString(message.type))
|
|
2841
|
-
return "type: string expected";
|
|
2842
|
-
if (message.path != null && message.hasOwnProperty("path"))
|
|
2843
|
-
if (!$util.isString(message.path))
|
|
2844
|
-
return "path: string expected";
|
|
2845
|
-
if (message.src != null && message.hasOwnProperty("src")) {
|
|
2846
|
-
var error = $root.common.StringValue.verify(message.src);
|
|
2847
|
-
if (error)
|
|
2848
|
-
return "src." + error;
|
|
2849
|
-
}
|
|
2850
|
-
if (message.newVersion != null && message.hasOwnProperty("newVersion")) {
|
|
2851
|
-
var error = $root.common.UInt64Value.verify(message.newVersion);
|
|
2852
|
-
if (error)
|
|
2853
|
-
return "newVersion." + error;
|
|
2854
|
-
}
|
|
2855
|
-
if (message.removedArchVer != null && message.hasOwnProperty("removedArchVer")) {
|
|
2856
|
-
var error = $root.common.UInt64Value.verify(message.removedArchVer);
|
|
2857
|
-
if (error)
|
|
2858
|
-
return "removedArchVer." + error;
|
|
2859
|
-
}
|
|
2860
2834
|
if (message.archivedVersion != null && message.hasOwnProperty("archivedVersion")) {
|
|
2861
2835
|
var error = $root.common.UInt64Value.verify(message.archivedVersion);
|
|
2862
2836
|
if (error)
|
|
2863
2837
|
return "archivedVersion." + error;
|
|
2864
2838
|
}
|
|
2839
|
+
if (message.remoteVersion != null && message.hasOwnProperty("remoteVersion")) {
|
|
2840
|
+
var error = $root.common.UInt64Value.verify(message.remoteVersion);
|
|
2841
|
+
if (error)
|
|
2842
|
+
return "remoteVersion." + error;
|
|
2843
|
+
}
|
|
2865
2844
|
return null;
|
|
2866
2845
|
};
|
|
2867
2846
|
|
|
2868
2847
|
/**
|
|
2869
|
-
* Creates a
|
|
2848
|
+
* Creates a VersionedReadFlags message from a plain object. Also converts values to their respective internal types.
|
|
2870
2849
|
* @function fromObject
|
|
2871
|
-
* @memberof file.
|
|
2850
|
+
* @memberof file.VersionedReadFlags
|
|
2872
2851
|
* @static
|
|
2873
2852
|
* @param {Object.<string,*>} object Plain object
|
|
2874
|
-
* @returns {file.
|
|
2853
|
+
* @returns {file.VersionedReadFlags} VersionedReadFlags
|
|
2875
2854
|
*/
|
|
2876
|
-
|
|
2877
|
-
if (object instanceof $root.file.
|
|
2855
|
+
VersionedReadFlags.fromObject = function fromObject(object) {
|
|
2856
|
+
if (object instanceof $root.file.VersionedReadFlags)
|
|
2878
2857
|
return object;
|
|
2879
|
-
var message = new $root.file.
|
|
2880
|
-
if (object.type != null)
|
|
2881
|
-
message.type = String(object.type);
|
|
2882
|
-
if (object.path != null)
|
|
2883
|
-
message.path = String(object.path);
|
|
2884
|
-
if (object.src != null) {
|
|
2885
|
-
if (typeof object.src !== "object")
|
|
2886
|
-
throw TypeError(".file.FileEventMsg.src: object expected");
|
|
2887
|
-
message.src = $root.common.StringValue.fromObject(object.src);
|
|
2888
|
-
}
|
|
2889
|
-
if (object.newVersion != null) {
|
|
2890
|
-
if (typeof object.newVersion !== "object")
|
|
2891
|
-
throw TypeError(".file.FileEventMsg.newVersion: object expected");
|
|
2892
|
-
message.newVersion = $root.common.UInt64Value.fromObject(object.newVersion);
|
|
2893
|
-
}
|
|
2894
|
-
if (object.removedArchVer != null) {
|
|
2895
|
-
if (typeof object.removedArchVer !== "object")
|
|
2896
|
-
throw TypeError(".file.FileEventMsg.removedArchVer: object expected");
|
|
2897
|
-
message.removedArchVer = $root.common.UInt64Value.fromObject(object.removedArchVer);
|
|
2898
|
-
}
|
|
2858
|
+
var message = new $root.file.VersionedReadFlags();
|
|
2899
2859
|
if (object.archivedVersion != null) {
|
|
2900
2860
|
if (typeof object.archivedVersion !== "object")
|
|
2901
|
-
throw TypeError(".file.
|
|
2861
|
+
throw TypeError(".file.VersionedReadFlags.archivedVersion: object expected");
|
|
2902
2862
|
message.archivedVersion = $root.common.UInt64Value.fromObject(object.archivedVersion);
|
|
2903
2863
|
}
|
|
2864
|
+
if (object.remoteVersion != null) {
|
|
2865
|
+
if (typeof object.remoteVersion !== "object")
|
|
2866
|
+
throw TypeError(".file.VersionedReadFlags.remoteVersion: object expected");
|
|
2867
|
+
message.remoteVersion = $root.common.UInt64Value.fromObject(object.remoteVersion);
|
|
2868
|
+
}
|
|
2904
2869
|
return message;
|
|
2905
2870
|
};
|
|
2906
2871
|
|
|
2907
2872
|
/**
|
|
2908
|
-
* Creates a plain object from a
|
|
2873
|
+
* Creates a plain object from a VersionedReadFlags message. Also converts values to other types if specified.
|
|
2909
2874
|
* @function toObject
|
|
2910
|
-
* @memberof file.
|
|
2875
|
+
* @memberof file.VersionedReadFlags
|
|
2911
2876
|
* @static
|
|
2912
|
-
* @param {file.
|
|
2877
|
+
* @param {file.VersionedReadFlags} message VersionedReadFlags
|
|
2913
2878
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
2914
2879
|
* @returns {Object.<string,*>} Plain object
|
|
2915
2880
|
*/
|
|
2916
|
-
|
|
2881
|
+
VersionedReadFlags.toObject = function toObject(message, options) {
|
|
2917
2882
|
if (!options)
|
|
2918
2883
|
options = {};
|
|
2919
2884
|
var object = {};
|
|
2920
2885
|
if (options.defaults) {
|
|
2921
|
-
object.type = "";
|
|
2922
|
-
object.path = "";
|
|
2923
|
-
object.src = null;
|
|
2924
|
-
object.newVersion = null;
|
|
2925
|
-
object.removedArchVer = null;
|
|
2926
2886
|
object.archivedVersion = null;
|
|
2887
|
+
object.remoteVersion = null;
|
|
2927
2888
|
}
|
|
2928
|
-
if (message.type != null && message.hasOwnProperty("type"))
|
|
2929
|
-
object.type = message.type;
|
|
2930
|
-
if (message.path != null && message.hasOwnProperty("path"))
|
|
2931
|
-
object.path = message.path;
|
|
2932
|
-
if (message.src != null && message.hasOwnProperty("src"))
|
|
2933
|
-
object.src = $root.common.StringValue.toObject(message.src, options);
|
|
2934
|
-
if (message.newVersion != null && message.hasOwnProperty("newVersion"))
|
|
2935
|
-
object.newVersion = $root.common.UInt64Value.toObject(message.newVersion, options);
|
|
2936
|
-
if (message.removedArchVer != null && message.hasOwnProperty("removedArchVer"))
|
|
2937
|
-
object.removedArchVer = $root.common.UInt64Value.toObject(message.removedArchVer, options);
|
|
2938
2889
|
if (message.archivedVersion != null && message.hasOwnProperty("archivedVersion"))
|
|
2939
2890
|
object.archivedVersion = $root.common.UInt64Value.toObject(message.archivedVersion, options);
|
|
2891
|
+
if (message.remoteVersion != null && message.hasOwnProperty("remoteVersion"))
|
|
2892
|
+
object.remoteVersion = $root.common.UInt64Value.toObject(message.remoteVersion, options);
|
|
2940
2893
|
return object;
|
|
2941
2894
|
};
|
|
2942
2895
|
|
|
2943
2896
|
/**
|
|
2944
|
-
* Converts this
|
|
2897
|
+
* Converts this VersionedReadFlags to JSON.
|
|
2945
2898
|
* @function toJSON
|
|
2946
|
-
* @memberof file.
|
|
2899
|
+
* @memberof file.VersionedReadFlags
|
|
2947
2900
|
* @instance
|
|
2948
2901
|
* @returns {Object.<string,*>} JSON object
|
|
2949
2902
|
*/
|
|
2950
|
-
|
|
2903
|
+
VersionedReadFlags.prototype.toJSON = function toJSON() {
|
|
2951
2904
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
2952
2905
|
};
|
|
2953
2906
|
|
|
2954
2907
|
/**
|
|
2955
|
-
* Gets the default type url for
|
|
2908
|
+
* Gets the default type url for VersionedReadFlags
|
|
2956
2909
|
* @function getTypeUrl
|
|
2957
|
-
* @memberof file.
|
|
2910
|
+
* @memberof file.VersionedReadFlags
|
|
2958
2911
|
* @static
|
|
2959
2912
|
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
2960
2913
|
* @returns {string} The default type url
|
|
2961
2914
|
*/
|
|
2962
|
-
|
|
2915
|
+
VersionedReadFlags.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
2963
2916
|
if (typeUrlPrefix === undefined) {
|
|
2964
2917
|
typeUrlPrefix = "type.googleapis.com";
|
|
2965
2918
|
}
|
|
2966
|
-
return typeUrlPrefix + "/file.
|
|
2919
|
+
return typeUrlPrefix + "/file.VersionedReadFlags";
|
|
2967
2920
|
};
|
|
2968
2921
|
|
|
2969
|
-
return
|
|
2922
|
+
return VersionedReadFlags;
|
|
2970
2923
|
})();
|
|
2971
2924
|
|
|
2972
|
-
file.
|
|
2925
|
+
file.RequestWithVersionedReadFlags = (function() {
|
|
2973
2926
|
|
|
2974
2927
|
/**
|
|
2975
|
-
* Properties of a
|
|
2928
|
+
* Properties of a RequestWithVersionedReadFlags.
|
|
2976
2929
|
* @memberof file
|
|
2977
|
-
* @interface
|
|
2978
|
-
* @property {
|
|
2979
|
-
* @property {common.IUInt64Value|null} [remoteVersion] VersionedReadFlags remoteVersion
|
|
2930
|
+
* @interface IRequestWithVersionedReadFlags
|
|
2931
|
+
* @property {file.IVersionedReadFlags|null} [flags] RequestWithVersionedReadFlags flags
|
|
2980
2932
|
*/
|
|
2981
2933
|
|
|
2982
2934
|
/**
|
|
2983
|
-
* Constructs a new
|
|
2935
|
+
* Constructs a new RequestWithVersionedReadFlags.
|
|
2984
2936
|
* @memberof file
|
|
2985
|
-
* @classdesc Represents a
|
|
2986
|
-
* @implements
|
|
2937
|
+
* @classdesc Represents a RequestWithVersionedReadFlags.
|
|
2938
|
+
* @implements IRequestWithVersionedReadFlags
|
|
2987
2939
|
* @constructor
|
|
2988
|
-
* @param {file.
|
|
2940
|
+
* @param {file.IRequestWithVersionedReadFlags=} [properties] Properties to set
|
|
2989
2941
|
*/
|
|
2990
|
-
function
|
|
2942
|
+
function RequestWithVersionedReadFlags(properties) {
|
|
2991
2943
|
if (properties)
|
|
2992
2944
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
2993
2945
|
if (properties[keys[i]] != null)
|
|
@@ -2995,273 +2947,35 @@ $root.file = (function() {
|
|
|
2995
2947
|
}
|
|
2996
2948
|
|
|
2997
2949
|
/**
|
|
2998
|
-
*
|
|
2999
|
-
* @member {
|
|
3000
|
-
* @memberof file.
|
|
3001
|
-
* @instance
|
|
3002
|
-
*/
|
|
3003
|
-
VersionedReadFlags.prototype.archivedVersion = null;
|
|
3004
|
-
|
|
3005
|
-
/**
|
|
3006
|
-
* VersionedReadFlags remoteVersion.
|
|
3007
|
-
* @member {common.IUInt64Value|null|undefined} remoteVersion
|
|
3008
|
-
* @memberof file.VersionedReadFlags
|
|
2950
|
+
* RequestWithVersionedReadFlags flags.
|
|
2951
|
+
* @member {file.IVersionedReadFlags|null|undefined} flags
|
|
2952
|
+
* @memberof file.RequestWithVersionedReadFlags
|
|
3009
2953
|
* @instance
|
|
3010
2954
|
*/
|
|
3011
|
-
|
|
2955
|
+
RequestWithVersionedReadFlags.prototype.flags = null;
|
|
3012
2956
|
|
|
3013
2957
|
/**
|
|
3014
|
-
* Creates a new
|
|
2958
|
+
* Creates a new RequestWithVersionedReadFlags instance using the specified properties.
|
|
3015
2959
|
* @function create
|
|
3016
|
-
* @memberof file.
|
|
2960
|
+
* @memberof file.RequestWithVersionedReadFlags
|
|
3017
2961
|
* @static
|
|
3018
|
-
* @param {file.
|
|
3019
|
-
* @returns {file.
|
|
2962
|
+
* @param {file.IRequestWithVersionedReadFlags=} [properties] Properties to set
|
|
2963
|
+
* @returns {file.RequestWithVersionedReadFlags} RequestWithVersionedReadFlags instance
|
|
3020
2964
|
*/
|
|
3021
|
-
|
|
3022
|
-
return new
|
|
2965
|
+
RequestWithVersionedReadFlags.create = function create(properties) {
|
|
2966
|
+
return new RequestWithVersionedReadFlags(properties);
|
|
3023
2967
|
};
|
|
3024
2968
|
|
|
3025
2969
|
/**
|
|
3026
|
-
* Encodes the specified
|
|
2970
|
+
* Encodes the specified RequestWithVersionedReadFlags message. Does not implicitly {@link file.RequestWithVersionedReadFlags.verify|verify} messages.
|
|
3027
2971
|
* @function encode
|
|
3028
|
-
* @memberof file.
|
|
2972
|
+
* @memberof file.RequestWithVersionedReadFlags
|
|
3029
2973
|
* @static
|
|
3030
|
-
* @param {file.
|
|
2974
|
+
* @param {file.IRequestWithVersionedReadFlags} message RequestWithVersionedReadFlags message or plain object to encode
|
|
3031
2975
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
3032
2976
|
* @returns {$protobuf.Writer} Writer
|
|
3033
2977
|
*/
|
|
3034
|
-
|
|
3035
|
-
if (!writer)
|
|
3036
|
-
writer = $Writer.create();
|
|
3037
|
-
if (message.archivedVersion != null && Object.hasOwnProperty.call(message, "archivedVersion"))
|
|
3038
|
-
$root.common.UInt64Value.encode(message.archivedVersion, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
3039
|
-
if (message.remoteVersion != null && Object.hasOwnProperty.call(message, "remoteVersion"))
|
|
3040
|
-
$root.common.UInt64Value.encode(message.remoteVersion, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
3041
|
-
return writer;
|
|
3042
|
-
};
|
|
3043
|
-
|
|
3044
|
-
/**
|
|
3045
|
-
* Encodes the specified VersionedReadFlags message, length delimited. Does not implicitly {@link file.VersionedReadFlags.verify|verify} messages.
|
|
3046
|
-
* @function encodeDelimited
|
|
3047
|
-
* @memberof file.VersionedReadFlags
|
|
3048
|
-
* @static
|
|
3049
|
-
* @param {file.IVersionedReadFlags} message VersionedReadFlags message or plain object to encode
|
|
3050
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
3051
|
-
* @returns {$protobuf.Writer} Writer
|
|
3052
|
-
*/
|
|
3053
|
-
VersionedReadFlags.encodeDelimited = function encodeDelimited(message, writer) {
|
|
3054
|
-
return this.encode(message, writer).ldelim();
|
|
3055
|
-
};
|
|
3056
|
-
|
|
3057
|
-
/**
|
|
3058
|
-
* Decodes a VersionedReadFlags message from the specified reader or buffer.
|
|
3059
|
-
* @function decode
|
|
3060
|
-
* @memberof file.VersionedReadFlags
|
|
3061
|
-
* @static
|
|
3062
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
3063
|
-
* @param {number} [length] Message length if known beforehand
|
|
3064
|
-
* @returns {file.VersionedReadFlags} VersionedReadFlags
|
|
3065
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3066
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3067
|
-
*/
|
|
3068
|
-
VersionedReadFlags.decode = function decode(reader, length, error) {
|
|
3069
|
-
if (!(reader instanceof $Reader))
|
|
3070
|
-
reader = $Reader.create(reader);
|
|
3071
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.VersionedReadFlags();
|
|
3072
|
-
while (reader.pos < end) {
|
|
3073
|
-
var tag = reader.uint32();
|
|
3074
|
-
if (tag === error)
|
|
3075
|
-
break;
|
|
3076
|
-
switch (tag >>> 3) {
|
|
3077
|
-
case 1: {
|
|
3078
|
-
message.archivedVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
|
|
3079
|
-
break;
|
|
3080
|
-
}
|
|
3081
|
-
case 2: {
|
|
3082
|
-
message.remoteVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
|
|
3083
|
-
break;
|
|
3084
|
-
}
|
|
3085
|
-
default:
|
|
3086
|
-
reader.skipType(tag & 7);
|
|
3087
|
-
break;
|
|
3088
|
-
}
|
|
3089
|
-
}
|
|
3090
|
-
return message;
|
|
3091
|
-
};
|
|
3092
|
-
|
|
3093
|
-
/**
|
|
3094
|
-
* Decodes a VersionedReadFlags message from the specified reader or buffer, length delimited.
|
|
3095
|
-
* @function decodeDelimited
|
|
3096
|
-
* @memberof file.VersionedReadFlags
|
|
3097
|
-
* @static
|
|
3098
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
3099
|
-
* @returns {file.VersionedReadFlags} VersionedReadFlags
|
|
3100
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3101
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3102
|
-
*/
|
|
3103
|
-
VersionedReadFlags.decodeDelimited = function decodeDelimited(reader) {
|
|
3104
|
-
if (!(reader instanceof $Reader))
|
|
3105
|
-
reader = new $Reader(reader);
|
|
3106
|
-
return this.decode(reader, reader.uint32());
|
|
3107
|
-
};
|
|
3108
|
-
|
|
3109
|
-
/**
|
|
3110
|
-
* Verifies a VersionedReadFlags message.
|
|
3111
|
-
* @function verify
|
|
3112
|
-
* @memberof file.VersionedReadFlags
|
|
3113
|
-
* @static
|
|
3114
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
3115
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
3116
|
-
*/
|
|
3117
|
-
VersionedReadFlags.verify = function verify(message) {
|
|
3118
|
-
if (typeof message !== "object" || message === null)
|
|
3119
|
-
return "object expected";
|
|
3120
|
-
if (message.archivedVersion != null && message.hasOwnProperty("archivedVersion")) {
|
|
3121
|
-
var error = $root.common.UInt64Value.verify(message.archivedVersion);
|
|
3122
|
-
if (error)
|
|
3123
|
-
return "archivedVersion." + error;
|
|
3124
|
-
}
|
|
3125
|
-
if (message.remoteVersion != null && message.hasOwnProperty("remoteVersion")) {
|
|
3126
|
-
var error = $root.common.UInt64Value.verify(message.remoteVersion);
|
|
3127
|
-
if (error)
|
|
3128
|
-
return "remoteVersion." + error;
|
|
3129
|
-
}
|
|
3130
|
-
return null;
|
|
3131
|
-
};
|
|
3132
|
-
|
|
3133
|
-
/**
|
|
3134
|
-
* Creates a VersionedReadFlags message from a plain object. Also converts values to their respective internal types.
|
|
3135
|
-
* @function fromObject
|
|
3136
|
-
* @memberof file.VersionedReadFlags
|
|
3137
|
-
* @static
|
|
3138
|
-
* @param {Object.<string,*>} object Plain object
|
|
3139
|
-
* @returns {file.VersionedReadFlags} VersionedReadFlags
|
|
3140
|
-
*/
|
|
3141
|
-
VersionedReadFlags.fromObject = function fromObject(object) {
|
|
3142
|
-
if (object instanceof $root.file.VersionedReadFlags)
|
|
3143
|
-
return object;
|
|
3144
|
-
var message = new $root.file.VersionedReadFlags();
|
|
3145
|
-
if (object.archivedVersion != null) {
|
|
3146
|
-
if (typeof object.archivedVersion !== "object")
|
|
3147
|
-
throw TypeError(".file.VersionedReadFlags.archivedVersion: object expected");
|
|
3148
|
-
message.archivedVersion = $root.common.UInt64Value.fromObject(object.archivedVersion);
|
|
3149
|
-
}
|
|
3150
|
-
if (object.remoteVersion != null) {
|
|
3151
|
-
if (typeof object.remoteVersion !== "object")
|
|
3152
|
-
throw TypeError(".file.VersionedReadFlags.remoteVersion: object expected");
|
|
3153
|
-
message.remoteVersion = $root.common.UInt64Value.fromObject(object.remoteVersion);
|
|
3154
|
-
}
|
|
3155
|
-
return message;
|
|
3156
|
-
};
|
|
3157
|
-
|
|
3158
|
-
/**
|
|
3159
|
-
* Creates a plain object from a VersionedReadFlags message. Also converts values to other types if specified.
|
|
3160
|
-
* @function toObject
|
|
3161
|
-
* @memberof file.VersionedReadFlags
|
|
3162
|
-
* @static
|
|
3163
|
-
* @param {file.VersionedReadFlags} message VersionedReadFlags
|
|
3164
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
3165
|
-
* @returns {Object.<string,*>} Plain object
|
|
3166
|
-
*/
|
|
3167
|
-
VersionedReadFlags.toObject = function toObject(message, options) {
|
|
3168
|
-
if (!options)
|
|
3169
|
-
options = {};
|
|
3170
|
-
var object = {};
|
|
3171
|
-
if (options.defaults) {
|
|
3172
|
-
object.archivedVersion = null;
|
|
3173
|
-
object.remoteVersion = null;
|
|
3174
|
-
}
|
|
3175
|
-
if (message.archivedVersion != null && message.hasOwnProperty("archivedVersion"))
|
|
3176
|
-
object.archivedVersion = $root.common.UInt64Value.toObject(message.archivedVersion, options);
|
|
3177
|
-
if (message.remoteVersion != null && message.hasOwnProperty("remoteVersion"))
|
|
3178
|
-
object.remoteVersion = $root.common.UInt64Value.toObject(message.remoteVersion, options);
|
|
3179
|
-
return object;
|
|
3180
|
-
};
|
|
3181
|
-
|
|
3182
|
-
/**
|
|
3183
|
-
* Converts this VersionedReadFlags to JSON.
|
|
3184
|
-
* @function toJSON
|
|
3185
|
-
* @memberof file.VersionedReadFlags
|
|
3186
|
-
* @instance
|
|
3187
|
-
* @returns {Object.<string,*>} JSON object
|
|
3188
|
-
*/
|
|
3189
|
-
VersionedReadFlags.prototype.toJSON = function toJSON() {
|
|
3190
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
3191
|
-
};
|
|
3192
|
-
|
|
3193
|
-
/**
|
|
3194
|
-
* Gets the default type url for VersionedReadFlags
|
|
3195
|
-
* @function getTypeUrl
|
|
3196
|
-
* @memberof file.VersionedReadFlags
|
|
3197
|
-
* @static
|
|
3198
|
-
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
3199
|
-
* @returns {string} The default type url
|
|
3200
|
-
*/
|
|
3201
|
-
VersionedReadFlags.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
3202
|
-
if (typeUrlPrefix === undefined) {
|
|
3203
|
-
typeUrlPrefix = "type.googleapis.com";
|
|
3204
|
-
}
|
|
3205
|
-
return typeUrlPrefix + "/file.VersionedReadFlags";
|
|
3206
|
-
};
|
|
3207
|
-
|
|
3208
|
-
return VersionedReadFlags;
|
|
3209
|
-
})();
|
|
3210
|
-
|
|
3211
|
-
file.RequestWithVersionedReadFlags = (function() {
|
|
3212
|
-
|
|
3213
|
-
/**
|
|
3214
|
-
* Properties of a RequestWithVersionedReadFlags.
|
|
3215
|
-
* @memberof file
|
|
3216
|
-
* @interface IRequestWithVersionedReadFlags
|
|
3217
|
-
* @property {file.IVersionedReadFlags|null} [flags] RequestWithVersionedReadFlags flags
|
|
3218
|
-
*/
|
|
3219
|
-
|
|
3220
|
-
/**
|
|
3221
|
-
* Constructs a new RequestWithVersionedReadFlags.
|
|
3222
|
-
* @memberof file
|
|
3223
|
-
* @classdesc Represents a RequestWithVersionedReadFlags.
|
|
3224
|
-
* @implements IRequestWithVersionedReadFlags
|
|
3225
|
-
* @constructor
|
|
3226
|
-
* @param {file.IRequestWithVersionedReadFlags=} [properties] Properties to set
|
|
3227
|
-
*/
|
|
3228
|
-
function RequestWithVersionedReadFlags(properties) {
|
|
3229
|
-
if (properties)
|
|
3230
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
3231
|
-
if (properties[keys[i]] != null)
|
|
3232
|
-
this[keys[i]] = properties[keys[i]];
|
|
3233
|
-
}
|
|
3234
|
-
|
|
3235
|
-
/**
|
|
3236
|
-
* RequestWithVersionedReadFlags flags.
|
|
3237
|
-
* @member {file.IVersionedReadFlags|null|undefined} flags
|
|
3238
|
-
* @memberof file.RequestWithVersionedReadFlags
|
|
3239
|
-
* @instance
|
|
3240
|
-
*/
|
|
3241
|
-
RequestWithVersionedReadFlags.prototype.flags = null;
|
|
3242
|
-
|
|
3243
|
-
/**
|
|
3244
|
-
* Creates a new RequestWithVersionedReadFlags instance using the specified properties.
|
|
3245
|
-
* @function create
|
|
3246
|
-
* @memberof file.RequestWithVersionedReadFlags
|
|
3247
|
-
* @static
|
|
3248
|
-
* @param {file.IRequestWithVersionedReadFlags=} [properties] Properties to set
|
|
3249
|
-
* @returns {file.RequestWithVersionedReadFlags} RequestWithVersionedReadFlags instance
|
|
3250
|
-
*/
|
|
3251
|
-
RequestWithVersionedReadFlags.create = function create(properties) {
|
|
3252
|
-
return new RequestWithVersionedReadFlags(properties);
|
|
3253
|
-
};
|
|
3254
|
-
|
|
3255
|
-
/**
|
|
3256
|
-
* Encodes the specified RequestWithVersionedReadFlags message. Does not implicitly {@link file.RequestWithVersionedReadFlags.verify|verify} messages.
|
|
3257
|
-
* @function encode
|
|
3258
|
-
* @memberof file.RequestWithVersionedReadFlags
|
|
3259
|
-
* @static
|
|
3260
|
-
* @param {file.IRequestWithVersionedReadFlags} message RequestWithVersionedReadFlags message or plain object to encode
|
|
3261
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
3262
|
-
* @returns {$protobuf.Writer} Writer
|
|
3263
|
-
*/
|
|
3264
|
-
RequestWithVersionedReadFlags.encode = function encode(message, writer) {
|
|
2978
|
+
RequestWithVersionedReadFlags.encode = function encode(message, writer) {
|
|
3265
2979
|
if (!writer)
|
|
3266
2980
|
writer = $Writer.create();
|
|
3267
2981
|
if (message.flags != null && Object.hasOwnProperty.call(message, "flags"))
|
|
@@ -9751,25 +9465,24 @@ $root.file = (function() {
|
|
|
9751
9465
|
return FileSyncUploadReplyBody;
|
|
9752
9466
|
})();
|
|
9753
9467
|
|
|
9754
|
-
file.
|
|
9468
|
+
file.FileSyncStartUploadReplyBody = (function() {
|
|
9755
9469
|
|
|
9756
9470
|
/**
|
|
9757
|
-
* Properties of
|
|
9471
|
+
* Properties of a FileSyncStartUploadReplyBody.
|
|
9758
9472
|
* @memberof file
|
|
9759
|
-
* @interface
|
|
9760
|
-
* @property {
|
|
9761
|
-
* @property {common.IUInt64Value|null} [uploadVersion] OptionsToUploadLocal uploadVersion
|
|
9473
|
+
* @interface IFileSyncStartUploadReplyBody
|
|
9474
|
+
* @property {file.FileSyncStartUploadReplyBody.IUploadInfo|null} [startedUpload] FileSyncStartUploadReplyBody startedUpload
|
|
9762
9475
|
*/
|
|
9763
9476
|
|
|
9764
9477
|
/**
|
|
9765
|
-
* Constructs a new
|
|
9478
|
+
* Constructs a new FileSyncStartUploadReplyBody.
|
|
9766
9479
|
* @memberof file
|
|
9767
|
-
* @classdesc Represents
|
|
9768
|
-
* @implements
|
|
9480
|
+
* @classdesc Represents a FileSyncStartUploadReplyBody.
|
|
9481
|
+
* @implements IFileSyncStartUploadReplyBody
|
|
9769
9482
|
* @constructor
|
|
9770
|
-
* @param {file.
|
|
9483
|
+
* @param {file.IFileSyncStartUploadReplyBody=} [properties] Properties to set
|
|
9771
9484
|
*/
|
|
9772
|
-
function
|
|
9485
|
+
function FileSyncStartUploadReplyBody(properties) {
|
|
9773
9486
|
if (properties)
|
|
9774
9487
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
9775
9488
|
if (properties[keys[i]] != null)
|
|
@@ -9777,31 +9490,499 @@ $root.file = (function() {
|
|
|
9777
9490
|
}
|
|
9778
9491
|
|
|
9779
9492
|
/**
|
|
9780
|
-
*
|
|
9781
|
-
* @member {
|
|
9782
|
-
* @memberof file.
|
|
9783
|
-
* @instance
|
|
9784
|
-
*/
|
|
9785
|
-
OptionsToUploadLocal.prototype.localVersion = null;
|
|
9786
|
-
|
|
9787
|
-
/**
|
|
9788
|
-
* OptionsToUploadLocal uploadVersion.
|
|
9789
|
-
* @member {common.IUInt64Value|null|undefined} uploadVersion
|
|
9790
|
-
* @memberof file.OptionsToUploadLocal
|
|
9493
|
+
* FileSyncStartUploadReplyBody startedUpload.
|
|
9494
|
+
* @member {file.FileSyncStartUploadReplyBody.IUploadInfo|null|undefined} startedUpload
|
|
9495
|
+
* @memberof file.FileSyncStartUploadReplyBody
|
|
9791
9496
|
* @instance
|
|
9792
9497
|
*/
|
|
9793
|
-
|
|
9498
|
+
FileSyncStartUploadReplyBody.prototype.startedUpload = null;
|
|
9794
9499
|
|
|
9795
9500
|
/**
|
|
9796
|
-
* Creates a new
|
|
9501
|
+
* Creates a new FileSyncStartUploadReplyBody instance using the specified properties.
|
|
9797
9502
|
* @function create
|
|
9798
|
-
* @memberof file.
|
|
9503
|
+
* @memberof file.FileSyncStartUploadReplyBody
|
|
9799
9504
|
* @static
|
|
9800
|
-
* @param {file.
|
|
9801
|
-
* @returns {file.
|
|
9505
|
+
* @param {file.IFileSyncStartUploadReplyBody=} [properties] Properties to set
|
|
9506
|
+
* @returns {file.FileSyncStartUploadReplyBody} FileSyncStartUploadReplyBody instance
|
|
9802
9507
|
*/
|
|
9803
|
-
|
|
9804
|
-
return new
|
|
9508
|
+
FileSyncStartUploadReplyBody.create = function create(properties) {
|
|
9509
|
+
return new FileSyncStartUploadReplyBody(properties);
|
|
9510
|
+
};
|
|
9511
|
+
|
|
9512
|
+
/**
|
|
9513
|
+
* Encodes the specified FileSyncStartUploadReplyBody message. Does not implicitly {@link file.FileSyncStartUploadReplyBody.verify|verify} messages.
|
|
9514
|
+
* @function encode
|
|
9515
|
+
* @memberof file.FileSyncStartUploadReplyBody
|
|
9516
|
+
* @static
|
|
9517
|
+
* @param {file.IFileSyncStartUploadReplyBody} message FileSyncStartUploadReplyBody message or plain object to encode
|
|
9518
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
9519
|
+
* @returns {$protobuf.Writer} Writer
|
|
9520
|
+
*/
|
|
9521
|
+
FileSyncStartUploadReplyBody.encode = function encode(message, writer) {
|
|
9522
|
+
if (!writer)
|
|
9523
|
+
writer = $Writer.create();
|
|
9524
|
+
if (message.startedUpload != null && Object.hasOwnProperty.call(message, "startedUpload"))
|
|
9525
|
+
$root.file.FileSyncStartUploadReplyBody.UploadInfo.encode(message.startedUpload, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
9526
|
+
return writer;
|
|
9527
|
+
};
|
|
9528
|
+
|
|
9529
|
+
/**
|
|
9530
|
+
* Encodes the specified FileSyncStartUploadReplyBody message, length delimited. Does not implicitly {@link file.FileSyncStartUploadReplyBody.verify|verify} messages.
|
|
9531
|
+
* @function encodeDelimited
|
|
9532
|
+
* @memberof file.FileSyncStartUploadReplyBody
|
|
9533
|
+
* @static
|
|
9534
|
+
* @param {file.IFileSyncStartUploadReplyBody} message FileSyncStartUploadReplyBody message or plain object to encode
|
|
9535
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
9536
|
+
* @returns {$protobuf.Writer} Writer
|
|
9537
|
+
*/
|
|
9538
|
+
FileSyncStartUploadReplyBody.encodeDelimited = function encodeDelimited(message, writer) {
|
|
9539
|
+
return this.encode(message, writer).ldelim();
|
|
9540
|
+
};
|
|
9541
|
+
|
|
9542
|
+
/**
|
|
9543
|
+
* Decodes a FileSyncStartUploadReplyBody message from the specified reader or buffer.
|
|
9544
|
+
* @function decode
|
|
9545
|
+
* @memberof file.FileSyncStartUploadReplyBody
|
|
9546
|
+
* @static
|
|
9547
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
9548
|
+
* @param {number} [length] Message length if known beforehand
|
|
9549
|
+
* @returns {file.FileSyncStartUploadReplyBody} FileSyncStartUploadReplyBody
|
|
9550
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
9551
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
9552
|
+
*/
|
|
9553
|
+
FileSyncStartUploadReplyBody.decode = function decode(reader, length, error) {
|
|
9554
|
+
if (!(reader instanceof $Reader))
|
|
9555
|
+
reader = $Reader.create(reader);
|
|
9556
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.FileSyncStartUploadReplyBody();
|
|
9557
|
+
while (reader.pos < end) {
|
|
9558
|
+
var tag = reader.uint32();
|
|
9559
|
+
if (tag === error)
|
|
9560
|
+
break;
|
|
9561
|
+
switch (tag >>> 3) {
|
|
9562
|
+
case 1: {
|
|
9563
|
+
message.startedUpload = $root.file.FileSyncStartUploadReplyBody.UploadInfo.decode(reader, reader.uint32());
|
|
9564
|
+
break;
|
|
9565
|
+
}
|
|
9566
|
+
default:
|
|
9567
|
+
reader.skipType(tag & 7);
|
|
9568
|
+
break;
|
|
9569
|
+
}
|
|
9570
|
+
}
|
|
9571
|
+
return message;
|
|
9572
|
+
};
|
|
9573
|
+
|
|
9574
|
+
/**
|
|
9575
|
+
* Decodes a FileSyncStartUploadReplyBody message from the specified reader or buffer, length delimited.
|
|
9576
|
+
* @function decodeDelimited
|
|
9577
|
+
* @memberof file.FileSyncStartUploadReplyBody
|
|
9578
|
+
* @static
|
|
9579
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
9580
|
+
* @returns {file.FileSyncStartUploadReplyBody} FileSyncStartUploadReplyBody
|
|
9581
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
9582
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
9583
|
+
*/
|
|
9584
|
+
FileSyncStartUploadReplyBody.decodeDelimited = function decodeDelimited(reader) {
|
|
9585
|
+
if (!(reader instanceof $Reader))
|
|
9586
|
+
reader = new $Reader(reader);
|
|
9587
|
+
return this.decode(reader, reader.uint32());
|
|
9588
|
+
};
|
|
9589
|
+
|
|
9590
|
+
/**
|
|
9591
|
+
* Verifies a FileSyncStartUploadReplyBody message.
|
|
9592
|
+
* @function verify
|
|
9593
|
+
* @memberof file.FileSyncStartUploadReplyBody
|
|
9594
|
+
* @static
|
|
9595
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
9596
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
9597
|
+
*/
|
|
9598
|
+
FileSyncStartUploadReplyBody.verify = function verify(message) {
|
|
9599
|
+
if (typeof message !== "object" || message === null)
|
|
9600
|
+
return "object expected";
|
|
9601
|
+
if (message.startedUpload != null && message.hasOwnProperty("startedUpload")) {
|
|
9602
|
+
var error = $root.file.FileSyncStartUploadReplyBody.UploadInfo.verify(message.startedUpload);
|
|
9603
|
+
if (error)
|
|
9604
|
+
return "startedUpload." + error;
|
|
9605
|
+
}
|
|
9606
|
+
return null;
|
|
9607
|
+
};
|
|
9608
|
+
|
|
9609
|
+
/**
|
|
9610
|
+
* Creates a FileSyncStartUploadReplyBody message from a plain object. Also converts values to their respective internal types.
|
|
9611
|
+
* @function fromObject
|
|
9612
|
+
* @memberof file.FileSyncStartUploadReplyBody
|
|
9613
|
+
* @static
|
|
9614
|
+
* @param {Object.<string,*>} object Plain object
|
|
9615
|
+
* @returns {file.FileSyncStartUploadReplyBody} FileSyncStartUploadReplyBody
|
|
9616
|
+
*/
|
|
9617
|
+
FileSyncStartUploadReplyBody.fromObject = function fromObject(object) {
|
|
9618
|
+
if (object instanceof $root.file.FileSyncStartUploadReplyBody)
|
|
9619
|
+
return object;
|
|
9620
|
+
var message = new $root.file.FileSyncStartUploadReplyBody();
|
|
9621
|
+
if (object.startedUpload != null) {
|
|
9622
|
+
if (typeof object.startedUpload !== "object")
|
|
9623
|
+
throw TypeError(".file.FileSyncStartUploadReplyBody.startedUpload: object expected");
|
|
9624
|
+
message.startedUpload = $root.file.FileSyncStartUploadReplyBody.UploadInfo.fromObject(object.startedUpload);
|
|
9625
|
+
}
|
|
9626
|
+
return message;
|
|
9627
|
+
};
|
|
9628
|
+
|
|
9629
|
+
/**
|
|
9630
|
+
* Creates a plain object from a FileSyncStartUploadReplyBody message. Also converts values to other types if specified.
|
|
9631
|
+
* @function toObject
|
|
9632
|
+
* @memberof file.FileSyncStartUploadReplyBody
|
|
9633
|
+
* @static
|
|
9634
|
+
* @param {file.FileSyncStartUploadReplyBody} message FileSyncStartUploadReplyBody
|
|
9635
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
9636
|
+
* @returns {Object.<string,*>} Plain object
|
|
9637
|
+
*/
|
|
9638
|
+
FileSyncStartUploadReplyBody.toObject = function toObject(message, options) {
|
|
9639
|
+
if (!options)
|
|
9640
|
+
options = {};
|
|
9641
|
+
var object = {};
|
|
9642
|
+
if (options.defaults)
|
|
9643
|
+
object.startedUpload = null;
|
|
9644
|
+
if (message.startedUpload != null && message.hasOwnProperty("startedUpload"))
|
|
9645
|
+
object.startedUpload = $root.file.FileSyncStartUploadReplyBody.UploadInfo.toObject(message.startedUpload, options);
|
|
9646
|
+
return object;
|
|
9647
|
+
};
|
|
9648
|
+
|
|
9649
|
+
/**
|
|
9650
|
+
* Converts this FileSyncStartUploadReplyBody to JSON.
|
|
9651
|
+
* @function toJSON
|
|
9652
|
+
* @memberof file.FileSyncStartUploadReplyBody
|
|
9653
|
+
* @instance
|
|
9654
|
+
* @returns {Object.<string,*>} JSON object
|
|
9655
|
+
*/
|
|
9656
|
+
FileSyncStartUploadReplyBody.prototype.toJSON = function toJSON() {
|
|
9657
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
9658
|
+
};
|
|
9659
|
+
|
|
9660
|
+
/**
|
|
9661
|
+
* Gets the default type url for FileSyncStartUploadReplyBody
|
|
9662
|
+
* @function getTypeUrl
|
|
9663
|
+
* @memberof file.FileSyncStartUploadReplyBody
|
|
9664
|
+
* @static
|
|
9665
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
9666
|
+
* @returns {string} The default type url
|
|
9667
|
+
*/
|
|
9668
|
+
FileSyncStartUploadReplyBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
9669
|
+
if (typeUrlPrefix === undefined) {
|
|
9670
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
9671
|
+
}
|
|
9672
|
+
return typeUrlPrefix + "/file.FileSyncStartUploadReplyBody";
|
|
9673
|
+
};
|
|
9674
|
+
|
|
9675
|
+
FileSyncStartUploadReplyBody.UploadInfo = (function() {
|
|
9676
|
+
|
|
9677
|
+
/**
|
|
9678
|
+
* Properties of an UploadInfo.
|
|
9679
|
+
* @memberof file.FileSyncStartUploadReplyBody
|
|
9680
|
+
* @interface IUploadInfo
|
|
9681
|
+
* @property {number|Long|null} [uploadVersion] UploadInfo uploadVersion
|
|
9682
|
+
* @property {number|Long|null} [uploadTaskId] UploadInfo uploadTaskId
|
|
9683
|
+
*/
|
|
9684
|
+
|
|
9685
|
+
/**
|
|
9686
|
+
* Constructs a new UploadInfo.
|
|
9687
|
+
* @memberof file.FileSyncStartUploadReplyBody
|
|
9688
|
+
* @classdesc Represents an UploadInfo.
|
|
9689
|
+
* @implements IUploadInfo
|
|
9690
|
+
* @constructor
|
|
9691
|
+
* @param {file.FileSyncStartUploadReplyBody.IUploadInfo=} [properties] Properties to set
|
|
9692
|
+
*/
|
|
9693
|
+
function UploadInfo(properties) {
|
|
9694
|
+
if (properties)
|
|
9695
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
9696
|
+
if (properties[keys[i]] != null)
|
|
9697
|
+
this[keys[i]] = properties[keys[i]];
|
|
9698
|
+
}
|
|
9699
|
+
|
|
9700
|
+
/**
|
|
9701
|
+
* UploadInfo uploadVersion.
|
|
9702
|
+
* @member {number|Long} uploadVersion
|
|
9703
|
+
* @memberof file.FileSyncStartUploadReplyBody.UploadInfo
|
|
9704
|
+
* @instance
|
|
9705
|
+
*/
|
|
9706
|
+
UploadInfo.prototype.uploadVersion = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
9707
|
+
|
|
9708
|
+
/**
|
|
9709
|
+
* UploadInfo uploadTaskId.
|
|
9710
|
+
* @member {number|Long} uploadTaskId
|
|
9711
|
+
* @memberof file.FileSyncStartUploadReplyBody.UploadInfo
|
|
9712
|
+
* @instance
|
|
9713
|
+
*/
|
|
9714
|
+
UploadInfo.prototype.uploadTaskId = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
9715
|
+
|
|
9716
|
+
/**
|
|
9717
|
+
* Creates a new UploadInfo instance using the specified properties.
|
|
9718
|
+
* @function create
|
|
9719
|
+
* @memberof file.FileSyncStartUploadReplyBody.UploadInfo
|
|
9720
|
+
* @static
|
|
9721
|
+
* @param {file.FileSyncStartUploadReplyBody.IUploadInfo=} [properties] Properties to set
|
|
9722
|
+
* @returns {file.FileSyncStartUploadReplyBody.UploadInfo} UploadInfo instance
|
|
9723
|
+
*/
|
|
9724
|
+
UploadInfo.create = function create(properties) {
|
|
9725
|
+
return new UploadInfo(properties);
|
|
9726
|
+
};
|
|
9727
|
+
|
|
9728
|
+
/**
|
|
9729
|
+
* Encodes the specified UploadInfo message. Does not implicitly {@link file.FileSyncStartUploadReplyBody.UploadInfo.verify|verify} messages.
|
|
9730
|
+
* @function encode
|
|
9731
|
+
* @memberof file.FileSyncStartUploadReplyBody.UploadInfo
|
|
9732
|
+
* @static
|
|
9733
|
+
* @param {file.FileSyncStartUploadReplyBody.IUploadInfo} message UploadInfo message or plain object to encode
|
|
9734
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
9735
|
+
* @returns {$protobuf.Writer} Writer
|
|
9736
|
+
*/
|
|
9737
|
+
UploadInfo.encode = function encode(message, writer) {
|
|
9738
|
+
if (!writer)
|
|
9739
|
+
writer = $Writer.create();
|
|
9740
|
+
if (message.uploadVersion != null && Object.hasOwnProperty.call(message, "uploadVersion"))
|
|
9741
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.uploadVersion);
|
|
9742
|
+
if (message.uploadTaskId != null && Object.hasOwnProperty.call(message, "uploadTaskId"))
|
|
9743
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.uploadTaskId);
|
|
9744
|
+
return writer;
|
|
9745
|
+
};
|
|
9746
|
+
|
|
9747
|
+
/**
|
|
9748
|
+
* Encodes the specified UploadInfo message, length delimited. Does not implicitly {@link file.FileSyncStartUploadReplyBody.UploadInfo.verify|verify} messages.
|
|
9749
|
+
* @function encodeDelimited
|
|
9750
|
+
* @memberof file.FileSyncStartUploadReplyBody.UploadInfo
|
|
9751
|
+
* @static
|
|
9752
|
+
* @param {file.FileSyncStartUploadReplyBody.IUploadInfo} message UploadInfo message or plain object to encode
|
|
9753
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
9754
|
+
* @returns {$protobuf.Writer} Writer
|
|
9755
|
+
*/
|
|
9756
|
+
UploadInfo.encodeDelimited = function encodeDelimited(message, writer) {
|
|
9757
|
+
return this.encode(message, writer).ldelim();
|
|
9758
|
+
};
|
|
9759
|
+
|
|
9760
|
+
/**
|
|
9761
|
+
* Decodes an UploadInfo message from the specified reader or buffer.
|
|
9762
|
+
* @function decode
|
|
9763
|
+
* @memberof file.FileSyncStartUploadReplyBody.UploadInfo
|
|
9764
|
+
* @static
|
|
9765
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
9766
|
+
* @param {number} [length] Message length if known beforehand
|
|
9767
|
+
* @returns {file.FileSyncStartUploadReplyBody.UploadInfo} UploadInfo
|
|
9768
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
9769
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
9770
|
+
*/
|
|
9771
|
+
UploadInfo.decode = function decode(reader, length, error) {
|
|
9772
|
+
if (!(reader instanceof $Reader))
|
|
9773
|
+
reader = $Reader.create(reader);
|
|
9774
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.FileSyncStartUploadReplyBody.UploadInfo();
|
|
9775
|
+
while (reader.pos < end) {
|
|
9776
|
+
var tag = reader.uint32();
|
|
9777
|
+
if (tag === error)
|
|
9778
|
+
break;
|
|
9779
|
+
switch (tag >>> 3) {
|
|
9780
|
+
case 1: {
|
|
9781
|
+
message.uploadVersion = reader.uint64();
|
|
9782
|
+
break;
|
|
9783
|
+
}
|
|
9784
|
+
case 2: {
|
|
9785
|
+
message.uploadTaskId = reader.uint64();
|
|
9786
|
+
break;
|
|
9787
|
+
}
|
|
9788
|
+
default:
|
|
9789
|
+
reader.skipType(tag & 7);
|
|
9790
|
+
break;
|
|
9791
|
+
}
|
|
9792
|
+
}
|
|
9793
|
+
return message;
|
|
9794
|
+
};
|
|
9795
|
+
|
|
9796
|
+
/**
|
|
9797
|
+
* Decodes an UploadInfo message from the specified reader or buffer, length delimited.
|
|
9798
|
+
* @function decodeDelimited
|
|
9799
|
+
* @memberof file.FileSyncStartUploadReplyBody.UploadInfo
|
|
9800
|
+
* @static
|
|
9801
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
9802
|
+
* @returns {file.FileSyncStartUploadReplyBody.UploadInfo} UploadInfo
|
|
9803
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
9804
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
9805
|
+
*/
|
|
9806
|
+
UploadInfo.decodeDelimited = function decodeDelimited(reader) {
|
|
9807
|
+
if (!(reader instanceof $Reader))
|
|
9808
|
+
reader = new $Reader(reader);
|
|
9809
|
+
return this.decode(reader, reader.uint32());
|
|
9810
|
+
};
|
|
9811
|
+
|
|
9812
|
+
/**
|
|
9813
|
+
* Verifies an UploadInfo message.
|
|
9814
|
+
* @function verify
|
|
9815
|
+
* @memberof file.FileSyncStartUploadReplyBody.UploadInfo
|
|
9816
|
+
* @static
|
|
9817
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
9818
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
9819
|
+
*/
|
|
9820
|
+
UploadInfo.verify = function verify(message) {
|
|
9821
|
+
if (typeof message !== "object" || message === null)
|
|
9822
|
+
return "object expected";
|
|
9823
|
+
if (message.uploadVersion != null && message.hasOwnProperty("uploadVersion"))
|
|
9824
|
+
if (!$util.isInteger(message.uploadVersion) && !(message.uploadVersion && $util.isInteger(message.uploadVersion.low) && $util.isInteger(message.uploadVersion.high)))
|
|
9825
|
+
return "uploadVersion: integer|Long expected";
|
|
9826
|
+
if (message.uploadTaskId != null && message.hasOwnProperty("uploadTaskId"))
|
|
9827
|
+
if (!$util.isInteger(message.uploadTaskId) && !(message.uploadTaskId && $util.isInteger(message.uploadTaskId.low) && $util.isInteger(message.uploadTaskId.high)))
|
|
9828
|
+
return "uploadTaskId: integer|Long expected";
|
|
9829
|
+
return null;
|
|
9830
|
+
};
|
|
9831
|
+
|
|
9832
|
+
/**
|
|
9833
|
+
* Creates an UploadInfo message from a plain object. Also converts values to their respective internal types.
|
|
9834
|
+
* @function fromObject
|
|
9835
|
+
* @memberof file.FileSyncStartUploadReplyBody.UploadInfo
|
|
9836
|
+
* @static
|
|
9837
|
+
* @param {Object.<string,*>} object Plain object
|
|
9838
|
+
* @returns {file.FileSyncStartUploadReplyBody.UploadInfo} UploadInfo
|
|
9839
|
+
*/
|
|
9840
|
+
UploadInfo.fromObject = function fromObject(object) {
|
|
9841
|
+
if (object instanceof $root.file.FileSyncStartUploadReplyBody.UploadInfo)
|
|
9842
|
+
return object;
|
|
9843
|
+
var message = new $root.file.FileSyncStartUploadReplyBody.UploadInfo();
|
|
9844
|
+
if (object.uploadVersion != null)
|
|
9845
|
+
if ($util.Long)
|
|
9846
|
+
(message.uploadVersion = $util.Long.fromValue(object.uploadVersion)).unsigned = true;
|
|
9847
|
+
else if (typeof object.uploadVersion === "string")
|
|
9848
|
+
message.uploadVersion = parseInt(object.uploadVersion, 10);
|
|
9849
|
+
else if (typeof object.uploadVersion === "number")
|
|
9850
|
+
message.uploadVersion = object.uploadVersion;
|
|
9851
|
+
else if (typeof object.uploadVersion === "object")
|
|
9852
|
+
message.uploadVersion = new $util.LongBits(object.uploadVersion.low >>> 0, object.uploadVersion.high >>> 0).toNumber(true);
|
|
9853
|
+
if (object.uploadTaskId != null)
|
|
9854
|
+
if ($util.Long)
|
|
9855
|
+
(message.uploadTaskId = $util.Long.fromValue(object.uploadTaskId)).unsigned = true;
|
|
9856
|
+
else if (typeof object.uploadTaskId === "string")
|
|
9857
|
+
message.uploadTaskId = parseInt(object.uploadTaskId, 10);
|
|
9858
|
+
else if (typeof object.uploadTaskId === "number")
|
|
9859
|
+
message.uploadTaskId = object.uploadTaskId;
|
|
9860
|
+
else if (typeof object.uploadTaskId === "object")
|
|
9861
|
+
message.uploadTaskId = new $util.LongBits(object.uploadTaskId.low >>> 0, object.uploadTaskId.high >>> 0).toNumber(true);
|
|
9862
|
+
return message;
|
|
9863
|
+
};
|
|
9864
|
+
|
|
9865
|
+
/**
|
|
9866
|
+
* Creates a plain object from an UploadInfo message. Also converts values to other types if specified.
|
|
9867
|
+
* @function toObject
|
|
9868
|
+
* @memberof file.FileSyncStartUploadReplyBody.UploadInfo
|
|
9869
|
+
* @static
|
|
9870
|
+
* @param {file.FileSyncStartUploadReplyBody.UploadInfo} message UploadInfo
|
|
9871
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
9872
|
+
* @returns {Object.<string,*>} Plain object
|
|
9873
|
+
*/
|
|
9874
|
+
UploadInfo.toObject = function toObject(message, options) {
|
|
9875
|
+
if (!options)
|
|
9876
|
+
options = {};
|
|
9877
|
+
var object = {};
|
|
9878
|
+
if (options.defaults) {
|
|
9879
|
+
if ($util.Long) {
|
|
9880
|
+
var long = new $util.Long(0, 0, true);
|
|
9881
|
+
object.uploadVersion = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
9882
|
+
} else
|
|
9883
|
+
object.uploadVersion = options.longs === String ? "0" : 0;
|
|
9884
|
+
if ($util.Long) {
|
|
9885
|
+
var long = new $util.Long(0, 0, true);
|
|
9886
|
+
object.uploadTaskId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
9887
|
+
} else
|
|
9888
|
+
object.uploadTaskId = options.longs === String ? "0" : 0;
|
|
9889
|
+
}
|
|
9890
|
+
if (message.uploadVersion != null && message.hasOwnProperty("uploadVersion"))
|
|
9891
|
+
if (typeof message.uploadVersion === "number")
|
|
9892
|
+
object.uploadVersion = options.longs === String ? String(message.uploadVersion) : message.uploadVersion;
|
|
9893
|
+
else
|
|
9894
|
+
object.uploadVersion = options.longs === String ? $util.Long.prototype.toString.call(message.uploadVersion) : options.longs === Number ? new $util.LongBits(message.uploadVersion.low >>> 0, message.uploadVersion.high >>> 0).toNumber(true) : message.uploadVersion;
|
|
9895
|
+
if (message.uploadTaskId != null && message.hasOwnProperty("uploadTaskId"))
|
|
9896
|
+
if (typeof message.uploadTaskId === "number")
|
|
9897
|
+
object.uploadTaskId = options.longs === String ? String(message.uploadTaskId) : message.uploadTaskId;
|
|
9898
|
+
else
|
|
9899
|
+
object.uploadTaskId = options.longs === String ? $util.Long.prototype.toString.call(message.uploadTaskId) : options.longs === Number ? new $util.LongBits(message.uploadTaskId.low >>> 0, message.uploadTaskId.high >>> 0).toNumber(true) : message.uploadTaskId;
|
|
9900
|
+
return object;
|
|
9901
|
+
};
|
|
9902
|
+
|
|
9903
|
+
/**
|
|
9904
|
+
* Converts this UploadInfo to JSON.
|
|
9905
|
+
* @function toJSON
|
|
9906
|
+
* @memberof file.FileSyncStartUploadReplyBody.UploadInfo
|
|
9907
|
+
* @instance
|
|
9908
|
+
* @returns {Object.<string,*>} JSON object
|
|
9909
|
+
*/
|
|
9910
|
+
UploadInfo.prototype.toJSON = function toJSON() {
|
|
9911
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
9912
|
+
};
|
|
9913
|
+
|
|
9914
|
+
/**
|
|
9915
|
+
* Gets the default type url for UploadInfo
|
|
9916
|
+
* @function getTypeUrl
|
|
9917
|
+
* @memberof file.FileSyncStartUploadReplyBody.UploadInfo
|
|
9918
|
+
* @static
|
|
9919
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
9920
|
+
* @returns {string} The default type url
|
|
9921
|
+
*/
|
|
9922
|
+
UploadInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
9923
|
+
if (typeUrlPrefix === undefined) {
|
|
9924
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
9925
|
+
}
|
|
9926
|
+
return typeUrlPrefix + "/file.FileSyncStartUploadReplyBody.UploadInfo";
|
|
9927
|
+
};
|
|
9928
|
+
|
|
9929
|
+
return UploadInfo;
|
|
9930
|
+
})();
|
|
9931
|
+
|
|
9932
|
+
return FileSyncStartUploadReplyBody;
|
|
9933
|
+
})();
|
|
9934
|
+
|
|
9935
|
+
file.OptionsToUploadLocal = (function() {
|
|
9936
|
+
|
|
9937
|
+
/**
|
|
9938
|
+
* Properties of an OptionsToUploadLocal.
|
|
9939
|
+
* @memberof file
|
|
9940
|
+
* @interface IOptionsToUploadLocal
|
|
9941
|
+
* @property {common.IUInt64Value|null} [localVersion] OptionsToUploadLocal localVersion
|
|
9942
|
+
* @property {common.IUInt64Value|null} [uploadVersion] OptionsToUploadLocal uploadVersion
|
|
9943
|
+
*/
|
|
9944
|
+
|
|
9945
|
+
/**
|
|
9946
|
+
* Constructs a new OptionsToUploadLocal.
|
|
9947
|
+
* @memberof file
|
|
9948
|
+
* @classdesc Represents an OptionsToUploadLocal.
|
|
9949
|
+
* @implements IOptionsToUploadLocal
|
|
9950
|
+
* @constructor
|
|
9951
|
+
* @param {file.IOptionsToUploadLocal=} [properties] Properties to set
|
|
9952
|
+
*/
|
|
9953
|
+
function OptionsToUploadLocal(properties) {
|
|
9954
|
+
if (properties)
|
|
9955
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
9956
|
+
if (properties[keys[i]] != null)
|
|
9957
|
+
this[keys[i]] = properties[keys[i]];
|
|
9958
|
+
}
|
|
9959
|
+
|
|
9960
|
+
/**
|
|
9961
|
+
* OptionsToUploadLocal localVersion.
|
|
9962
|
+
* @member {common.IUInt64Value|null|undefined} localVersion
|
|
9963
|
+
* @memberof file.OptionsToUploadLocal
|
|
9964
|
+
* @instance
|
|
9965
|
+
*/
|
|
9966
|
+
OptionsToUploadLocal.prototype.localVersion = null;
|
|
9967
|
+
|
|
9968
|
+
/**
|
|
9969
|
+
* OptionsToUploadLocal uploadVersion.
|
|
9970
|
+
* @member {common.IUInt64Value|null|undefined} uploadVersion
|
|
9971
|
+
* @memberof file.OptionsToUploadLocal
|
|
9972
|
+
* @instance
|
|
9973
|
+
*/
|
|
9974
|
+
OptionsToUploadLocal.prototype.uploadVersion = null;
|
|
9975
|
+
|
|
9976
|
+
/**
|
|
9977
|
+
* Creates a new OptionsToUploadLocal instance using the specified properties.
|
|
9978
|
+
* @function create
|
|
9979
|
+
* @memberof file.OptionsToUploadLocal
|
|
9980
|
+
* @static
|
|
9981
|
+
* @param {file.IOptionsToUploadLocal=} [properties] Properties to set
|
|
9982
|
+
* @returns {file.OptionsToUploadLocal} OptionsToUploadLocal instance
|
|
9983
|
+
*/
|
|
9984
|
+
OptionsToUploadLocal.create = function create(properties) {
|
|
9985
|
+
return new OptionsToUploadLocal(properties);
|
|
9805
9986
|
};
|
|
9806
9987
|
|
|
9807
9988
|
/**
|
|
@@ -9990,6 +10171,542 @@ $root.file = (function() {
|
|
|
9990
10171
|
return OptionsToUploadLocal;
|
|
9991
10172
|
})();
|
|
9992
10173
|
|
|
10174
|
+
file.WatchUploadRequestBody = (function() {
|
|
10175
|
+
|
|
10176
|
+
/**
|
|
10177
|
+
* Properties of a WatchUploadRequestBody.
|
|
10178
|
+
* @memberof file
|
|
10179
|
+
* @interface IWatchUploadRequestBody
|
|
10180
|
+
* @property {number|Long|null} [uploadTaskId] WatchUploadRequestBody uploadTaskId
|
|
10181
|
+
*/
|
|
10182
|
+
|
|
10183
|
+
/**
|
|
10184
|
+
* Constructs a new WatchUploadRequestBody.
|
|
10185
|
+
* @memberof file
|
|
10186
|
+
* @classdesc Represents a WatchUploadRequestBody.
|
|
10187
|
+
* @implements IWatchUploadRequestBody
|
|
10188
|
+
* @constructor
|
|
10189
|
+
* @param {file.IWatchUploadRequestBody=} [properties] Properties to set
|
|
10190
|
+
*/
|
|
10191
|
+
function WatchUploadRequestBody(properties) {
|
|
10192
|
+
if (properties)
|
|
10193
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
10194
|
+
if (properties[keys[i]] != null)
|
|
10195
|
+
this[keys[i]] = properties[keys[i]];
|
|
10196
|
+
}
|
|
10197
|
+
|
|
10198
|
+
/**
|
|
10199
|
+
* WatchUploadRequestBody uploadTaskId.
|
|
10200
|
+
* @member {number|Long} uploadTaskId
|
|
10201
|
+
* @memberof file.WatchUploadRequestBody
|
|
10202
|
+
* @instance
|
|
10203
|
+
*/
|
|
10204
|
+
WatchUploadRequestBody.prototype.uploadTaskId = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
10205
|
+
|
|
10206
|
+
/**
|
|
10207
|
+
* Creates a new WatchUploadRequestBody instance using the specified properties.
|
|
10208
|
+
* @function create
|
|
10209
|
+
* @memberof file.WatchUploadRequestBody
|
|
10210
|
+
* @static
|
|
10211
|
+
* @param {file.IWatchUploadRequestBody=} [properties] Properties to set
|
|
10212
|
+
* @returns {file.WatchUploadRequestBody} WatchUploadRequestBody instance
|
|
10213
|
+
*/
|
|
10214
|
+
WatchUploadRequestBody.create = function create(properties) {
|
|
10215
|
+
return new WatchUploadRequestBody(properties);
|
|
10216
|
+
};
|
|
10217
|
+
|
|
10218
|
+
/**
|
|
10219
|
+
* Encodes the specified WatchUploadRequestBody message. Does not implicitly {@link file.WatchUploadRequestBody.verify|verify} messages.
|
|
10220
|
+
* @function encode
|
|
10221
|
+
* @memberof file.WatchUploadRequestBody
|
|
10222
|
+
* @static
|
|
10223
|
+
* @param {file.IWatchUploadRequestBody} message WatchUploadRequestBody message or plain object to encode
|
|
10224
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
10225
|
+
* @returns {$protobuf.Writer} Writer
|
|
10226
|
+
*/
|
|
10227
|
+
WatchUploadRequestBody.encode = function encode(message, writer) {
|
|
10228
|
+
if (!writer)
|
|
10229
|
+
writer = $Writer.create();
|
|
10230
|
+
if (message.uploadTaskId != null && Object.hasOwnProperty.call(message, "uploadTaskId"))
|
|
10231
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.uploadTaskId);
|
|
10232
|
+
return writer;
|
|
10233
|
+
};
|
|
10234
|
+
|
|
10235
|
+
/**
|
|
10236
|
+
* Encodes the specified WatchUploadRequestBody message, length delimited. Does not implicitly {@link file.WatchUploadRequestBody.verify|verify} messages.
|
|
10237
|
+
* @function encodeDelimited
|
|
10238
|
+
* @memberof file.WatchUploadRequestBody
|
|
10239
|
+
* @static
|
|
10240
|
+
* @param {file.IWatchUploadRequestBody} message WatchUploadRequestBody message or plain object to encode
|
|
10241
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
10242
|
+
* @returns {$protobuf.Writer} Writer
|
|
10243
|
+
*/
|
|
10244
|
+
WatchUploadRequestBody.encodeDelimited = function encodeDelimited(message, writer) {
|
|
10245
|
+
return this.encode(message, writer).ldelim();
|
|
10246
|
+
};
|
|
10247
|
+
|
|
10248
|
+
/**
|
|
10249
|
+
* Decodes a WatchUploadRequestBody message from the specified reader or buffer.
|
|
10250
|
+
* @function decode
|
|
10251
|
+
* @memberof file.WatchUploadRequestBody
|
|
10252
|
+
* @static
|
|
10253
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
10254
|
+
* @param {number} [length] Message length if known beforehand
|
|
10255
|
+
* @returns {file.WatchUploadRequestBody} WatchUploadRequestBody
|
|
10256
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
10257
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
10258
|
+
*/
|
|
10259
|
+
WatchUploadRequestBody.decode = function decode(reader, length, error) {
|
|
10260
|
+
if (!(reader instanceof $Reader))
|
|
10261
|
+
reader = $Reader.create(reader);
|
|
10262
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.WatchUploadRequestBody();
|
|
10263
|
+
while (reader.pos < end) {
|
|
10264
|
+
var tag = reader.uint32();
|
|
10265
|
+
if (tag === error)
|
|
10266
|
+
break;
|
|
10267
|
+
switch (tag >>> 3) {
|
|
10268
|
+
case 1: {
|
|
10269
|
+
message.uploadTaskId = reader.uint64();
|
|
10270
|
+
break;
|
|
10271
|
+
}
|
|
10272
|
+
default:
|
|
10273
|
+
reader.skipType(tag & 7);
|
|
10274
|
+
break;
|
|
10275
|
+
}
|
|
10276
|
+
}
|
|
10277
|
+
return message;
|
|
10278
|
+
};
|
|
10279
|
+
|
|
10280
|
+
/**
|
|
10281
|
+
* Decodes a WatchUploadRequestBody message from the specified reader or buffer, length delimited.
|
|
10282
|
+
* @function decodeDelimited
|
|
10283
|
+
* @memberof file.WatchUploadRequestBody
|
|
10284
|
+
* @static
|
|
10285
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
10286
|
+
* @returns {file.WatchUploadRequestBody} WatchUploadRequestBody
|
|
10287
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
10288
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
10289
|
+
*/
|
|
10290
|
+
WatchUploadRequestBody.decodeDelimited = function decodeDelimited(reader) {
|
|
10291
|
+
if (!(reader instanceof $Reader))
|
|
10292
|
+
reader = new $Reader(reader);
|
|
10293
|
+
return this.decode(reader, reader.uint32());
|
|
10294
|
+
};
|
|
10295
|
+
|
|
10296
|
+
/**
|
|
10297
|
+
* Verifies a WatchUploadRequestBody message.
|
|
10298
|
+
* @function verify
|
|
10299
|
+
* @memberof file.WatchUploadRequestBody
|
|
10300
|
+
* @static
|
|
10301
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
10302
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
10303
|
+
*/
|
|
10304
|
+
WatchUploadRequestBody.verify = function verify(message) {
|
|
10305
|
+
if (typeof message !== "object" || message === null)
|
|
10306
|
+
return "object expected";
|
|
10307
|
+
if (message.uploadTaskId != null && message.hasOwnProperty("uploadTaskId"))
|
|
10308
|
+
if (!$util.isInteger(message.uploadTaskId) && !(message.uploadTaskId && $util.isInteger(message.uploadTaskId.low) && $util.isInteger(message.uploadTaskId.high)))
|
|
10309
|
+
return "uploadTaskId: integer|Long expected";
|
|
10310
|
+
return null;
|
|
10311
|
+
};
|
|
10312
|
+
|
|
10313
|
+
/**
|
|
10314
|
+
* Creates a WatchUploadRequestBody message from a plain object. Also converts values to their respective internal types.
|
|
10315
|
+
* @function fromObject
|
|
10316
|
+
* @memberof file.WatchUploadRequestBody
|
|
10317
|
+
* @static
|
|
10318
|
+
* @param {Object.<string,*>} object Plain object
|
|
10319
|
+
* @returns {file.WatchUploadRequestBody} WatchUploadRequestBody
|
|
10320
|
+
*/
|
|
10321
|
+
WatchUploadRequestBody.fromObject = function fromObject(object) {
|
|
10322
|
+
if (object instanceof $root.file.WatchUploadRequestBody)
|
|
10323
|
+
return object;
|
|
10324
|
+
var message = new $root.file.WatchUploadRequestBody();
|
|
10325
|
+
if (object.uploadTaskId != null)
|
|
10326
|
+
if ($util.Long)
|
|
10327
|
+
(message.uploadTaskId = $util.Long.fromValue(object.uploadTaskId)).unsigned = true;
|
|
10328
|
+
else if (typeof object.uploadTaskId === "string")
|
|
10329
|
+
message.uploadTaskId = parseInt(object.uploadTaskId, 10);
|
|
10330
|
+
else if (typeof object.uploadTaskId === "number")
|
|
10331
|
+
message.uploadTaskId = object.uploadTaskId;
|
|
10332
|
+
else if (typeof object.uploadTaskId === "object")
|
|
10333
|
+
message.uploadTaskId = new $util.LongBits(object.uploadTaskId.low >>> 0, object.uploadTaskId.high >>> 0).toNumber(true);
|
|
10334
|
+
return message;
|
|
10335
|
+
};
|
|
10336
|
+
|
|
10337
|
+
/**
|
|
10338
|
+
* Creates a plain object from a WatchUploadRequestBody message. Also converts values to other types if specified.
|
|
10339
|
+
* @function toObject
|
|
10340
|
+
* @memberof file.WatchUploadRequestBody
|
|
10341
|
+
* @static
|
|
10342
|
+
* @param {file.WatchUploadRequestBody} message WatchUploadRequestBody
|
|
10343
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
10344
|
+
* @returns {Object.<string,*>} Plain object
|
|
10345
|
+
*/
|
|
10346
|
+
WatchUploadRequestBody.toObject = function toObject(message, options) {
|
|
10347
|
+
if (!options)
|
|
10348
|
+
options = {};
|
|
10349
|
+
var object = {};
|
|
10350
|
+
if (options.defaults)
|
|
10351
|
+
if ($util.Long) {
|
|
10352
|
+
var long = new $util.Long(0, 0, true);
|
|
10353
|
+
object.uploadTaskId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
10354
|
+
} else
|
|
10355
|
+
object.uploadTaskId = options.longs === String ? "0" : 0;
|
|
10356
|
+
if (message.uploadTaskId != null && message.hasOwnProperty("uploadTaskId"))
|
|
10357
|
+
if (typeof message.uploadTaskId === "number")
|
|
10358
|
+
object.uploadTaskId = options.longs === String ? String(message.uploadTaskId) : message.uploadTaskId;
|
|
10359
|
+
else
|
|
10360
|
+
object.uploadTaskId = options.longs === String ? $util.Long.prototype.toString.call(message.uploadTaskId) : options.longs === Number ? new $util.LongBits(message.uploadTaskId.low >>> 0, message.uploadTaskId.high >>> 0).toNumber(true) : message.uploadTaskId;
|
|
10361
|
+
return object;
|
|
10362
|
+
};
|
|
10363
|
+
|
|
10364
|
+
/**
|
|
10365
|
+
* Converts this WatchUploadRequestBody to JSON.
|
|
10366
|
+
* @function toJSON
|
|
10367
|
+
* @memberof file.WatchUploadRequestBody
|
|
10368
|
+
* @instance
|
|
10369
|
+
* @returns {Object.<string,*>} JSON object
|
|
10370
|
+
*/
|
|
10371
|
+
WatchUploadRequestBody.prototype.toJSON = function toJSON() {
|
|
10372
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
10373
|
+
};
|
|
10374
|
+
|
|
10375
|
+
/**
|
|
10376
|
+
* Gets the default type url for WatchUploadRequestBody
|
|
10377
|
+
* @function getTypeUrl
|
|
10378
|
+
* @memberof file.WatchUploadRequestBody
|
|
10379
|
+
* @static
|
|
10380
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
10381
|
+
* @returns {string} The default type url
|
|
10382
|
+
*/
|
|
10383
|
+
WatchUploadRequestBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
10384
|
+
if (typeUrlPrefix === undefined) {
|
|
10385
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
10386
|
+
}
|
|
10387
|
+
return typeUrlPrefix + "/file.WatchUploadRequestBody";
|
|
10388
|
+
};
|
|
10389
|
+
|
|
10390
|
+
return WatchUploadRequestBody;
|
|
10391
|
+
})();
|
|
10392
|
+
|
|
10393
|
+
file.UploadEventMsg = (function() {
|
|
10394
|
+
|
|
10395
|
+
/**
|
|
10396
|
+
* Properties of an UploadEventMsg.
|
|
10397
|
+
* @memberof file
|
|
10398
|
+
* @interface IUploadEventMsg
|
|
10399
|
+
* @property {string|null} [type] UploadEventMsg type
|
|
10400
|
+
* @property {number|Long|null} [uploadTaskId] UploadEventMsg uploadTaskId
|
|
10401
|
+
* @property {number|Long|null} [localVersion] UploadEventMsg localVersion
|
|
10402
|
+
* @property {number|Long|null} [uploadVersion] UploadEventMsg uploadVersion
|
|
10403
|
+
*/
|
|
10404
|
+
|
|
10405
|
+
/**
|
|
10406
|
+
* Constructs a new UploadEventMsg.
|
|
10407
|
+
* @memberof file
|
|
10408
|
+
* @classdesc Represents an UploadEventMsg.
|
|
10409
|
+
* @implements IUploadEventMsg
|
|
10410
|
+
* @constructor
|
|
10411
|
+
* @param {file.IUploadEventMsg=} [properties] Properties to set
|
|
10412
|
+
*/
|
|
10413
|
+
function UploadEventMsg(properties) {
|
|
10414
|
+
if (properties)
|
|
10415
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
10416
|
+
if (properties[keys[i]] != null)
|
|
10417
|
+
this[keys[i]] = properties[keys[i]];
|
|
10418
|
+
}
|
|
10419
|
+
|
|
10420
|
+
/**
|
|
10421
|
+
* UploadEventMsg type.
|
|
10422
|
+
* @member {string} type
|
|
10423
|
+
* @memberof file.UploadEventMsg
|
|
10424
|
+
* @instance
|
|
10425
|
+
*/
|
|
10426
|
+
UploadEventMsg.prototype.type = "";
|
|
10427
|
+
|
|
10428
|
+
/**
|
|
10429
|
+
* UploadEventMsg uploadTaskId.
|
|
10430
|
+
* @member {number|Long} uploadTaskId
|
|
10431
|
+
* @memberof file.UploadEventMsg
|
|
10432
|
+
* @instance
|
|
10433
|
+
*/
|
|
10434
|
+
UploadEventMsg.prototype.uploadTaskId = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
10435
|
+
|
|
10436
|
+
/**
|
|
10437
|
+
* UploadEventMsg localVersion.
|
|
10438
|
+
* @member {number|Long} localVersion
|
|
10439
|
+
* @memberof file.UploadEventMsg
|
|
10440
|
+
* @instance
|
|
10441
|
+
*/
|
|
10442
|
+
UploadEventMsg.prototype.localVersion = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
10443
|
+
|
|
10444
|
+
/**
|
|
10445
|
+
* UploadEventMsg uploadVersion.
|
|
10446
|
+
* @member {number|Long} uploadVersion
|
|
10447
|
+
* @memberof file.UploadEventMsg
|
|
10448
|
+
* @instance
|
|
10449
|
+
*/
|
|
10450
|
+
UploadEventMsg.prototype.uploadVersion = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
10451
|
+
|
|
10452
|
+
/**
|
|
10453
|
+
* Creates a new UploadEventMsg instance using the specified properties.
|
|
10454
|
+
* @function create
|
|
10455
|
+
* @memberof file.UploadEventMsg
|
|
10456
|
+
* @static
|
|
10457
|
+
* @param {file.IUploadEventMsg=} [properties] Properties to set
|
|
10458
|
+
* @returns {file.UploadEventMsg} UploadEventMsg instance
|
|
10459
|
+
*/
|
|
10460
|
+
UploadEventMsg.create = function create(properties) {
|
|
10461
|
+
return new UploadEventMsg(properties);
|
|
10462
|
+
};
|
|
10463
|
+
|
|
10464
|
+
/**
|
|
10465
|
+
* Encodes the specified UploadEventMsg message. Does not implicitly {@link file.UploadEventMsg.verify|verify} messages.
|
|
10466
|
+
* @function encode
|
|
10467
|
+
* @memberof file.UploadEventMsg
|
|
10468
|
+
* @static
|
|
10469
|
+
* @param {file.IUploadEventMsg} message UploadEventMsg message or plain object to encode
|
|
10470
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
10471
|
+
* @returns {$protobuf.Writer} Writer
|
|
10472
|
+
*/
|
|
10473
|
+
UploadEventMsg.encode = function encode(message, writer) {
|
|
10474
|
+
if (!writer)
|
|
10475
|
+
writer = $Writer.create();
|
|
10476
|
+
if (message.type != null && Object.hasOwnProperty.call(message, "type"))
|
|
10477
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.type);
|
|
10478
|
+
if (message.uploadTaskId != null && Object.hasOwnProperty.call(message, "uploadTaskId"))
|
|
10479
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.uploadTaskId);
|
|
10480
|
+
if (message.localVersion != null && Object.hasOwnProperty.call(message, "localVersion"))
|
|
10481
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.localVersion);
|
|
10482
|
+
if (message.uploadVersion != null && Object.hasOwnProperty.call(message, "uploadVersion"))
|
|
10483
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.uploadVersion);
|
|
10484
|
+
return writer;
|
|
10485
|
+
};
|
|
10486
|
+
|
|
10487
|
+
/**
|
|
10488
|
+
* Encodes the specified UploadEventMsg message, length delimited. Does not implicitly {@link file.UploadEventMsg.verify|verify} messages.
|
|
10489
|
+
* @function encodeDelimited
|
|
10490
|
+
* @memberof file.UploadEventMsg
|
|
10491
|
+
* @static
|
|
10492
|
+
* @param {file.IUploadEventMsg} message UploadEventMsg message or plain object to encode
|
|
10493
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
10494
|
+
* @returns {$protobuf.Writer} Writer
|
|
10495
|
+
*/
|
|
10496
|
+
UploadEventMsg.encodeDelimited = function encodeDelimited(message, writer) {
|
|
10497
|
+
return this.encode(message, writer).ldelim();
|
|
10498
|
+
};
|
|
10499
|
+
|
|
10500
|
+
/**
|
|
10501
|
+
* Decodes an UploadEventMsg message from the specified reader or buffer.
|
|
10502
|
+
* @function decode
|
|
10503
|
+
* @memberof file.UploadEventMsg
|
|
10504
|
+
* @static
|
|
10505
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
10506
|
+
* @param {number} [length] Message length if known beforehand
|
|
10507
|
+
* @returns {file.UploadEventMsg} UploadEventMsg
|
|
10508
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
10509
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
10510
|
+
*/
|
|
10511
|
+
UploadEventMsg.decode = function decode(reader, length, error) {
|
|
10512
|
+
if (!(reader instanceof $Reader))
|
|
10513
|
+
reader = $Reader.create(reader);
|
|
10514
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.UploadEventMsg();
|
|
10515
|
+
while (reader.pos < end) {
|
|
10516
|
+
var tag = reader.uint32();
|
|
10517
|
+
if (tag === error)
|
|
10518
|
+
break;
|
|
10519
|
+
switch (tag >>> 3) {
|
|
10520
|
+
case 1: {
|
|
10521
|
+
message.type = reader.string();
|
|
10522
|
+
break;
|
|
10523
|
+
}
|
|
10524
|
+
case 2: {
|
|
10525
|
+
message.uploadTaskId = reader.uint64();
|
|
10526
|
+
break;
|
|
10527
|
+
}
|
|
10528
|
+
case 3: {
|
|
10529
|
+
message.localVersion = reader.uint64();
|
|
10530
|
+
break;
|
|
10531
|
+
}
|
|
10532
|
+
case 4: {
|
|
10533
|
+
message.uploadVersion = reader.uint64();
|
|
10534
|
+
break;
|
|
10535
|
+
}
|
|
10536
|
+
default:
|
|
10537
|
+
reader.skipType(tag & 7);
|
|
10538
|
+
break;
|
|
10539
|
+
}
|
|
10540
|
+
}
|
|
10541
|
+
return message;
|
|
10542
|
+
};
|
|
10543
|
+
|
|
10544
|
+
/**
|
|
10545
|
+
* Decodes an UploadEventMsg message from the specified reader or buffer, length delimited.
|
|
10546
|
+
* @function decodeDelimited
|
|
10547
|
+
* @memberof file.UploadEventMsg
|
|
10548
|
+
* @static
|
|
10549
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
10550
|
+
* @returns {file.UploadEventMsg} UploadEventMsg
|
|
10551
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
10552
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
10553
|
+
*/
|
|
10554
|
+
UploadEventMsg.decodeDelimited = function decodeDelimited(reader) {
|
|
10555
|
+
if (!(reader instanceof $Reader))
|
|
10556
|
+
reader = new $Reader(reader);
|
|
10557
|
+
return this.decode(reader, reader.uint32());
|
|
10558
|
+
};
|
|
10559
|
+
|
|
10560
|
+
/**
|
|
10561
|
+
* Verifies an UploadEventMsg message.
|
|
10562
|
+
* @function verify
|
|
10563
|
+
* @memberof file.UploadEventMsg
|
|
10564
|
+
* @static
|
|
10565
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
10566
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
10567
|
+
*/
|
|
10568
|
+
UploadEventMsg.verify = function verify(message) {
|
|
10569
|
+
if (typeof message !== "object" || message === null)
|
|
10570
|
+
return "object expected";
|
|
10571
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
10572
|
+
if (!$util.isString(message.type))
|
|
10573
|
+
return "type: string expected";
|
|
10574
|
+
if (message.uploadTaskId != null && message.hasOwnProperty("uploadTaskId"))
|
|
10575
|
+
if (!$util.isInteger(message.uploadTaskId) && !(message.uploadTaskId && $util.isInteger(message.uploadTaskId.low) && $util.isInteger(message.uploadTaskId.high)))
|
|
10576
|
+
return "uploadTaskId: integer|Long expected";
|
|
10577
|
+
if (message.localVersion != null && message.hasOwnProperty("localVersion"))
|
|
10578
|
+
if (!$util.isInteger(message.localVersion) && !(message.localVersion && $util.isInteger(message.localVersion.low) && $util.isInteger(message.localVersion.high)))
|
|
10579
|
+
return "localVersion: integer|Long expected";
|
|
10580
|
+
if (message.uploadVersion != null && message.hasOwnProperty("uploadVersion"))
|
|
10581
|
+
if (!$util.isInteger(message.uploadVersion) && !(message.uploadVersion && $util.isInteger(message.uploadVersion.low) && $util.isInteger(message.uploadVersion.high)))
|
|
10582
|
+
return "uploadVersion: integer|Long expected";
|
|
10583
|
+
return null;
|
|
10584
|
+
};
|
|
10585
|
+
|
|
10586
|
+
/**
|
|
10587
|
+
* Creates an UploadEventMsg message from a plain object. Also converts values to their respective internal types.
|
|
10588
|
+
* @function fromObject
|
|
10589
|
+
* @memberof file.UploadEventMsg
|
|
10590
|
+
* @static
|
|
10591
|
+
* @param {Object.<string,*>} object Plain object
|
|
10592
|
+
* @returns {file.UploadEventMsg} UploadEventMsg
|
|
10593
|
+
*/
|
|
10594
|
+
UploadEventMsg.fromObject = function fromObject(object) {
|
|
10595
|
+
if (object instanceof $root.file.UploadEventMsg)
|
|
10596
|
+
return object;
|
|
10597
|
+
var message = new $root.file.UploadEventMsg();
|
|
10598
|
+
if (object.type != null)
|
|
10599
|
+
message.type = String(object.type);
|
|
10600
|
+
if (object.uploadTaskId != null)
|
|
10601
|
+
if ($util.Long)
|
|
10602
|
+
(message.uploadTaskId = $util.Long.fromValue(object.uploadTaskId)).unsigned = true;
|
|
10603
|
+
else if (typeof object.uploadTaskId === "string")
|
|
10604
|
+
message.uploadTaskId = parseInt(object.uploadTaskId, 10);
|
|
10605
|
+
else if (typeof object.uploadTaskId === "number")
|
|
10606
|
+
message.uploadTaskId = object.uploadTaskId;
|
|
10607
|
+
else if (typeof object.uploadTaskId === "object")
|
|
10608
|
+
message.uploadTaskId = new $util.LongBits(object.uploadTaskId.low >>> 0, object.uploadTaskId.high >>> 0).toNumber(true);
|
|
10609
|
+
if (object.localVersion != null)
|
|
10610
|
+
if ($util.Long)
|
|
10611
|
+
(message.localVersion = $util.Long.fromValue(object.localVersion)).unsigned = true;
|
|
10612
|
+
else if (typeof object.localVersion === "string")
|
|
10613
|
+
message.localVersion = parseInt(object.localVersion, 10);
|
|
10614
|
+
else if (typeof object.localVersion === "number")
|
|
10615
|
+
message.localVersion = object.localVersion;
|
|
10616
|
+
else if (typeof object.localVersion === "object")
|
|
10617
|
+
message.localVersion = new $util.LongBits(object.localVersion.low >>> 0, object.localVersion.high >>> 0).toNumber(true);
|
|
10618
|
+
if (object.uploadVersion != null)
|
|
10619
|
+
if ($util.Long)
|
|
10620
|
+
(message.uploadVersion = $util.Long.fromValue(object.uploadVersion)).unsigned = true;
|
|
10621
|
+
else if (typeof object.uploadVersion === "string")
|
|
10622
|
+
message.uploadVersion = parseInt(object.uploadVersion, 10);
|
|
10623
|
+
else if (typeof object.uploadVersion === "number")
|
|
10624
|
+
message.uploadVersion = object.uploadVersion;
|
|
10625
|
+
else if (typeof object.uploadVersion === "object")
|
|
10626
|
+
message.uploadVersion = new $util.LongBits(object.uploadVersion.low >>> 0, object.uploadVersion.high >>> 0).toNumber(true);
|
|
10627
|
+
return message;
|
|
10628
|
+
};
|
|
10629
|
+
|
|
10630
|
+
/**
|
|
10631
|
+
* Creates a plain object from an UploadEventMsg message. Also converts values to other types if specified.
|
|
10632
|
+
* @function toObject
|
|
10633
|
+
* @memberof file.UploadEventMsg
|
|
10634
|
+
* @static
|
|
10635
|
+
* @param {file.UploadEventMsg} message UploadEventMsg
|
|
10636
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
10637
|
+
* @returns {Object.<string,*>} Plain object
|
|
10638
|
+
*/
|
|
10639
|
+
UploadEventMsg.toObject = function toObject(message, options) {
|
|
10640
|
+
if (!options)
|
|
10641
|
+
options = {};
|
|
10642
|
+
var object = {};
|
|
10643
|
+
if (options.defaults) {
|
|
10644
|
+
object.type = "";
|
|
10645
|
+
if ($util.Long) {
|
|
10646
|
+
var long = new $util.Long(0, 0, true);
|
|
10647
|
+
object.uploadTaskId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
10648
|
+
} else
|
|
10649
|
+
object.uploadTaskId = options.longs === String ? "0" : 0;
|
|
10650
|
+
if ($util.Long) {
|
|
10651
|
+
var long = new $util.Long(0, 0, true);
|
|
10652
|
+
object.localVersion = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
10653
|
+
} else
|
|
10654
|
+
object.localVersion = options.longs === String ? "0" : 0;
|
|
10655
|
+
if ($util.Long) {
|
|
10656
|
+
var long = new $util.Long(0, 0, true);
|
|
10657
|
+
object.uploadVersion = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
10658
|
+
} else
|
|
10659
|
+
object.uploadVersion = options.longs === String ? "0" : 0;
|
|
10660
|
+
}
|
|
10661
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
10662
|
+
object.type = message.type;
|
|
10663
|
+
if (message.uploadTaskId != null && message.hasOwnProperty("uploadTaskId"))
|
|
10664
|
+
if (typeof message.uploadTaskId === "number")
|
|
10665
|
+
object.uploadTaskId = options.longs === String ? String(message.uploadTaskId) : message.uploadTaskId;
|
|
10666
|
+
else
|
|
10667
|
+
object.uploadTaskId = options.longs === String ? $util.Long.prototype.toString.call(message.uploadTaskId) : options.longs === Number ? new $util.LongBits(message.uploadTaskId.low >>> 0, message.uploadTaskId.high >>> 0).toNumber(true) : message.uploadTaskId;
|
|
10668
|
+
if (message.localVersion != null && message.hasOwnProperty("localVersion"))
|
|
10669
|
+
if (typeof message.localVersion === "number")
|
|
10670
|
+
object.localVersion = options.longs === String ? String(message.localVersion) : message.localVersion;
|
|
10671
|
+
else
|
|
10672
|
+
object.localVersion = options.longs === String ? $util.Long.prototype.toString.call(message.localVersion) : options.longs === Number ? new $util.LongBits(message.localVersion.low >>> 0, message.localVersion.high >>> 0).toNumber(true) : message.localVersion;
|
|
10673
|
+
if (message.uploadVersion != null && message.hasOwnProperty("uploadVersion"))
|
|
10674
|
+
if (typeof message.uploadVersion === "number")
|
|
10675
|
+
object.uploadVersion = options.longs === String ? String(message.uploadVersion) : message.uploadVersion;
|
|
10676
|
+
else
|
|
10677
|
+
object.uploadVersion = options.longs === String ? $util.Long.prototype.toString.call(message.uploadVersion) : options.longs === Number ? new $util.LongBits(message.uploadVersion.low >>> 0, message.uploadVersion.high >>> 0).toNumber(true) : message.uploadVersion;
|
|
10678
|
+
return object;
|
|
10679
|
+
};
|
|
10680
|
+
|
|
10681
|
+
/**
|
|
10682
|
+
* Converts this UploadEventMsg to JSON.
|
|
10683
|
+
* @function toJSON
|
|
10684
|
+
* @memberof file.UploadEventMsg
|
|
10685
|
+
* @instance
|
|
10686
|
+
* @returns {Object.<string,*>} JSON object
|
|
10687
|
+
*/
|
|
10688
|
+
UploadEventMsg.prototype.toJSON = function toJSON() {
|
|
10689
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
10690
|
+
};
|
|
10691
|
+
|
|
10692
|
+
/**
|
|
10693
|
+
* Gets the default type url for UploadEventMsg
|
|
10694
|
+
* @function getTypeUrl
|
|
10695
|
+
* @memberof file.UploadEventMsg
|
|
10696
|
+
* @static
|
|
10697
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
10698
|
+
* @returns {string} The default type url
|
|
10699
|
+
*/
|
|
10700
|
+
UploadEventMsg.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
10701
|
+
if (typeUrlPrefix === undefined) {
|
|
10702
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
10703
|
+
}
|
|
10704
|
+
return typeUrlPrefix + "/file.UploadEventMsg";
|
|
10705
|
+
};
|
|
10706
|
+
|
|
10707
|
+
return UploadEventMsg;
|
|
10708
|
+
})();
|
|
10709
|
+
|
|
9993
10710
|
return file;
|
|
9994
10711
|
})();
|
|
9995
10712
|
|